-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
40 lines (37 loc) · 1.06 KB
/
Copy pathmainwindow.h
File metadata and controls
40 lines (37 loc) · 1.06 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "userdefaults.h"
#include "displaycontroller.h"
#include "helpbook.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
UserDefaults userDefaults;
DisplayController displayController;
HelpBook helpBook;
Ui::MainWindow *ui;
QString GetProgramDataName();
bool ReadProgramData();
bool WriteProgramData();
void UpdateUserInterface();
void SetupDisplayController();
void ExitDisplayController();
void SetupTableView();
void SetupUserInterface();
void HandleAutoStart();
void closeEvent(QCloseEvent *event);
private slots:
void on_standbyButton_clicked();
void on_helpButton_clicked();
void on_activateCheckBox_stateChanged(int arg1);
void on_timeEdit_userTimeChanged(const QTime &time);
void on_horizontalSlider_valueChanged(int value);
void on_logoButton_clicked();
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
};
#endif // MAINWINDOW_H