pineapple-files/mainwindow.h

38 lines
799 B
C
Raw Normal View History

2020-09-23 01:42:09 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
class QFileSystemModel;
QT_END_NAMESPACE
2020-09-23 18:33:30 +08:00
class VerticalPreviewWidget;
2020-09-23 01:42:09 +08:00
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void viewGotoModelIndex(const QModelIndex &index);
2020-09-24 17:47:56 +08:00
void gotoModelIndexOrOpenFile(const QModelIndex &index);
bool gotoUrl(const QString & path);
2020-09-23 01:42:09 +08:00
private slots:
void on_treeView_clicked(const QModelIndex &index);
void on_cdUpButton_clicked();
2020-09-24 17:47:56 +08:00
void on_addressEdit_returnPressed();
2020-09-23 01:42:09 +08:00
private:
Ui::MainWindow *ui;
QFileSystemModel * m_fsmodel;
2020-09-23 18:33:30 +08:00
VerticalPreviewWidget * m_previewWidget;
2020-09-23 01:42:09 +08:00
};
#endif // MAINWINDOW_H