-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.h
More file actions
67 lines (52 loc) · 1.29 KB
/
Copy pathwidget.h
File metadata and controls
67 lines (52 loc) · 1.29 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class QTreeWidget;
class QTreeView;
class QHBoxLayout;
class QVBoxLayout;
class QPushButton;
class QGroupBox;
class QDirModel;
class QSettings;
class QModelIndex;
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
private:
QString dirRoot();
void setupPanels();
void setupButtons();
void centerWindow();
QModelIndex currentIndex();
void loadSettings();
bool eventFilter(QObject *target, QEvent *event);
QDirModel * dirModel;
QTreeView * leftPanel;
QTreeView * rightPanel;
QHBoxLayout * mainLayout;
QVBoxLayout * middleLayout;
QGroupBox * buttonBox;
QPushButton * copyButton;
QPushButton * moveButton;
QPushButton * createDirButton;
QPushButton * deleteButton;
QPushButton * quitButton;
QSettings * settings;
bool leftPanelHasFocus;
bool confirmActions;
private slots:
void onCopyButtonClicked();
void onMoveButtonClicked();
void onCreateDirButtonClicked();
void onDeleteButtonClicked();
void onQuitButtonClicked();
void onLeftPanelClicked(const QModelIndex &);
void onRightPanelClicked(const QModelIndex &);
};
#endif // WIDGET_H