-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
58 lines (44 loc) · 1.07 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "analogclock.h"
#include "tabdialog.h"
#include "customdialog.h"
#include "simplewizard.h"
#include "controllerwindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void createTab();
void showMainWidget();
void clear();
void on_actionShow_sample_dialog_triggered();
void on_actionCreate_Custom_Dialog_triggered();
void on_actionCreate_Wizard_Page_triggered();
void on_actionCreate_Controller_triggered();
private:
Ui::MainWindow *ui;
// Tool Bars (better use ui design tool)
void createActions();
void createMenus();
QMenu *fileMenu;
QMenu *helpMenu;
QAction *createTabAct;
QAction *dialogAct;
QAction *showAct;
QAction *clearAct;
QAction *exitAct;
// Widgets
AnalogClock *analogClock;
TabDialog *tabDialog;
CustomDialog *customDialog;
ControllerWindow *controller;
};
#endif // MAINWINDOW_H