-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget.h
52 lines (40 loc) · 884 Bytes
/
widget.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
45
46
47
48
49
50
51
52
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QtWidgets>
#include "mainboard.h"
#include "bottombar.h"
#include "toolbar.h"
#include "leftbar.h"
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
void connectWidgets();
public slots:
void showBars();
void showBottomBar();
void showToolBar();
void hideBars();
void hideBottomBar();
void hideToolBar();
void showMenuButton();
void hideMenuButton();
signals:
void exitGame();
private:
QHBoxLayout *_mainLayout;
QVBoxLayout *_leftLayout;
QVBoxLayout *_middleLayout;
QVBoxLayout *_rightLayout;
MainBoard *_mainBoard;
BottomBar *_bottomBar;
ToolBar *_toolBar;
LeftBar *_leftBar;
LeftBar *_rightBar;
QPushButton *_menuButton;
bool _connectedBars;
};
#endif // WIDGET_H