-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
47 lines (36 loc) · 1.05 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStackedWidget>
#include "general.h"
#include "scenes/mainmenu.h"
#include "scenes/learning.h"
#include "scenes/training.h"
#include "scenes/exam.h"
#include "scenes/dictionary.h"
#include "scenes/levelchoice.h"
class MainWindow : public QMainWindow, private General
{
Q_OBJECT
public:
static const int MAIN_MENU_INDEX = 0;
static const int LEARNING_INDEX = 1;
static const int TRAINING_INDEX = 2;
static const int EXAM_INDEX = 3;
static const int DICTIONARY_INDEX = 4;
static const int LEVEL_CHOICE_INDEX = 5;
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
QStackedWidget *mainWidget = new QStackedWidget;
MainMenu *mainMenu = new MainMenu;
Learning *learning = new Learning;
Training *training = new Training;
Exam *exam = new Exam;
Dictionary *dictionary = new Dictionary;
LevelChoice *levelChoice = new LevelChoice;
private slots:
void changeScene();
void quitProgram();
};
#endif // MAINWINDOW_H