-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.h
More file actions
42 lines (34 loc) · 994 Bytes
/
MainWindow.h
File metadata and controls
42 lines (34 loc) · 994 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "TopListView.h"
#include <QMainWindow>
#include <QSharedPointer>
class QFileSystemModel;
class QItemSelection;
class QSplitter;
class QTableView;
class QTreeView;
class QAbstractItemView;
class PaintedView;
class QStandardItemModel;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void updateWindowTitle(const QItemSelection & selected, const QItemSelection & deselected);
void toggleViewVisibility(const QItemSelection & selected, const QItemSelection & deselected);
void treeSelectionChanged(const QItemSelection&, const QItemSelection&);
private:
QFileSystemModel *_model;
QSharedPointer<QSplitter> _splitter;
QAbstractItemView *_table;
TopListView *_list;
QTreeView *_tree;
PaintedView* _decoratedList;
QStandardItemModel* _customModel;
QStandardItemModel* getPopulatedModel();
};
#endif // MAINWINDOW_H