-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
100 lines (87 loc) · 2.52 KB
/
mainwindow.h
File metadata and controls
100 lines (87 loc) · 2.52 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLabel>
#include <QScopedPointer>
#include <QPointer>
#include "systeminfodialog.h"
#include "benchmarkdialog.h"
#include "toolextendedsettingswindow.h"
#include "canvaswidget.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
bool eventFilter(QObject *obj, QEvent *event);
void closeEvent(QCloseEvent *event);
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent * event);
private:
std::unique_ptr<Ui::MainWindow> ui;
QScopedPointer<SystemInfoDialog> infoWindow;
QScopedPointer<BenchmarkDialog> benchmarkWindow;
QPointer<ToolExtendedSettingsWindow> toolSettingsWindow;
CanvasWidget *canvas;
QLabel *statusBarLabel;
void connectActions();
void updateTitle();
void updateStatus();
bool doSave(QString filename);
bool promptSave();
void openFile(QString const &filename);
private slots:
void canvasModified();
public slots:
void showOpenCLInfo();
void showDeviceSelect();
void showResourcePaths();
void runCircleBenchmark();
void actionCopyStrokeData();
void actionQuit();
void actionNewFile();
void actionOpenFile();
void actionOpenAsLayer();
void actionSave();
void actionSaveAs();
void actionExport();
void actionUndo();
void actionRedo();
void actionZoomIn();
void actionZoomOut();
void actionResetView();
void actionViewMirrorVertical();
void actionViewMirrorHorizontal();
void actionViewRotateCounterclockwise();
void actionViewRotateClockwise();
void actionToolSizeIncrease();
void actionToolSizeDecrease();
void actionResetTool();
void actionAdvancedToolSettings();
void actionSetBackgroundColor();
void actionMergeLayerDown();
void actionDuplicateLayer();
void actionNewLayer();
void actionNewGroup();
void actionDrawLine();
void actionToggleEditFrame();
void actionToggleFrame();
void actionToggleQuickmask();
void actionClearQuickmask();
void actionQuickmaskCut();
void actionQuickmaskCopy();
void actionQuickmaskErase();
void actionRotateLayer();
void actionScaleLayer();
void canvasStats();
void showStatusBar(bool visible);
void updateTool();
void openFileRequest(QString const &filename);
};
#endif // MAINWINDOW_H