Mercurial > minori
annotate include/gui/window.h @ 96:bd68e4393e6f
statistics: forward declare Graph
graph: fix missing #include (does this fix the build errors??)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 15:16:49 -0400 |
parents | 8043152ef9d4 |
children | 6d8da6e64d61 |
rev | line source |
---|---|
2 | 1 #ifndef __window_h |
7 | 2 #define __window_h |
9 | 3 #include "core/config.h" |
7 | 4 #include <QMainWindow> |
79 | 5 |
6 class QWidget; | |
7 class QStackedWidget; | |
8 class QCloseEvent; | |
9 class SideBar; | |
2 | 10 |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
79
diff
changeset
|
11 class MainWindow final : public QMainWindow { |
9 | 12 Q_OBJECT |
13 | |
2 | 14 public: |
15 MainWindow(QWidget* parent = nullptr); | |
16 void SetActivePage(QWidget* page); | |
79 | 17 void CreateBars(); |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
18 void closeEvent(QCloseEvent* event) override; |
2 | 19 |
20 private: | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
4
diff
changeset
|
21 QWidget* main_widget; |
79 | 22 QStackedWidget* stack; |
23 SideBar* sidebar; | |
2 | 24 }; |
25 | |
26 #endif // __window_h |