forked from josiahseaman/skittle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MdiChildWindow.h
54 lines (43 loc) · 1.07 KB
/
MdiChildWindow.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
53
54
#ifndef MDI_CHILD_SKITTLE
#define MDI_CHILD_SKITTLE
#include <QMdiArea>
#include <QFrame>
#include <vector>
#include "UiVariables.h"
class GLWidget;
class MainWindow;
class QHBoxLayout;
class QTabWidget;
class QScrollArea;
using std::vector;
class MdiChildWindow : public QFrame
{
Q_OBJECT
public:
QScrollBar* horizontalScrollBar;
QScrollBar* verticalScrollBar;
QFrame* subFrame;
GLWidget* glWidget;
UiVariables* ui;
MdiChildWindow(QTabWidget* settings);
void closeEvent(QCloseEvent *event);
void connectWidget();
void hideSettingsTabs();
void showSettingsTabs();
void mousePressEvent(QMouseEvent *event);
public slots:
void checkScrollBars();
void changeStart(int val);
void setHorizontalWidth(int val);
void setPageSize();
void hideSettingsTab(QScrollArea*);
void showSettingsTab(QScrollArea*);
signals:
void subWindowClosing(MdiChildWindow*);
void IveBeenClicked(MdiChildWindow*);
private:
QTabWidget* settingsDock;
vector<QScrollArea*> settingsTabs;
void createSettingsTabs();
};
#endif