-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.hpp
More file actions
44 lines (30 loc) · 823 Bytes
/
mainwindow.hpp
File metadata and controls
44 lines (30 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "file_system_model.hpp"
#include <QMainWindow>
#include <QSortFilterProxyModel>
namespace Ui
{
class MainWindow;
} // namespace Ui
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
void LoadState();
void SaveState();
private:
Q_SLOT void onRootDialogCall();
Q_SLOT void onRootSpecified();
Q_SLOT void onTreeSelectionChanged(QItemSelection const & selected, QItemSelection const & deselected);
Q_SLOT void onTableSelectionChanged(QItemSelection const & selected, QItemSelection const & deselected);
Q_SLOT void onResizeColumns();
Q_SLOT void onSetRegExp();
private:
Ui::MainWindow * m_ui;
FileSystemModel * m_fileModel;
QSortFilterProxyModel * m_model;
bool m_ignoreTableSelection;
};