-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
39 lines (33 loc) · 867 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets>
#include "mainmenuwgt.h"
#include "quizwgt.h"
#include "addquestionwgt.h"
#include "delquestionwgt.h"
#include "statisticswgt.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
private:
QPointer<MainMenuWgt> pMainMenuWgt;
QPointer<QuizWgt> pQzWgt;
QPointer<AddQuestionWgt> pAddQuestionWgt;
QPointer<DelQuestionWgt> pDelQuestionWgt;
QPointer<StatisticsWgt> pStatisticsWgt;
QString statsFile;
QString questionsFile;
void setStartMenuWgt();
bool checkFilesExistOrCreate(QString &path_file);
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void onStartClicked();
void onAddClicked();
void onDelClicked();
void onStatisticsClicked();
void setMainMenu();
};
#endif // MAINWINDOW_H