-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
44 lines (32 loc) · 901 Bytes
/
mainwindow.h
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include "tools.h"
class QGridLayout;
class Canvas; class LeftMenu; class TopMenu;
class ActionHandler; class StatusBar;
class MainWindow : public QWidget
{
Q_OBJECT
friend class ActionHandler;
friend class MainApplication;
friend class Canvas;
public:
MainWindow(ActionHandler *handler = nullptr);
MainWindow(const MainWindow &) = delete;
MainWindow & operator =(MainWindow) = delete;
private:
void createWindow(ActionHandler *handler = nullptr);
void enableCanvasesUpdates(bool enable);
int canvasMinimumSize() const;
QSize optimalSize() const;
void resizeEvent(QResizeEvent *);
Canvas *leftCanvas;
Canvas *rightCanvas;
QGridLayout *layout;
LeftMenu *leftMenu;
StatusBar *statusBar;
TopMenu *topMenu;
bool verticalCanvases;
};
#endif // MAINWINDOW_H