pineapple-files/mainwindow.h
2020-09-24 17:47:56 +08:00

38 lines
799 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
class QFileSystemModel;
QT_END_NAMESPACE
class VerticalPreviewWidget;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void viewGotoModelIndex(const QModelIndex &index);
void gotoModelIndexOrOpenFile(const QModelIndex &index);
bool gotoUrl(const QString & path);
private slots:
void on_treeView_clicked(const QModelIndex &index);
void on_cdUpButton_clicked();
void on_addressEdit_returnPressed();
private:
Ui::MainWindow *ui;
QFileSystemModel * m_fsmodel;
VerticalPreviewWidget * m_previewWidget;
};
#endif // MAINWINDOW_H