comparison include/gui/window.h @ 79:c489dd4434af

*: what did I do again? I really forgot what I did here :)
author Paper <mrpapersonic@gmail.com>
date Thu, 12 Oct 2023 11:31:39 -0400
parents d0adc4aedfc8
children 8043152ef9d4
comparison
equal deleted inserted replaced
78:1ce00c1c8ddc 79:c489dd4434af
1 #ifndef __window_h 1 #ifndef __window_h
2 #define __window_h 2 #define __window_h
3 #include "core/config.h" 3 #include "core/config.h"
4 #include <QCloseEvent>
5 #include <QMainWindow> 4 #include <QMainWindow>
6 #include <QWidget> 5
6 class QWidget;
7 class QStackedWidget;
8 class QCloseEvent;
9 class SideBar;
7 10
8 class MainWindow : public QMainWindow { 11 class MainWindow : public QMainWindow {
9 Q_OBJECT 12 Q_OBJECT
10 13
11 public: 14 public:
12 MainWindow(QWidget* parent = nullptr); 15 MainWindow(QWidget* parent = nullptr);
13 void SetActivePage(QWidget* page); 16 void SetActivePage(QWidget* page);
17 void CreateBars();
14 void closeEvent(QCloseEvent* event) override; 18 void closeEvent(QCloseEvent* event) override;
15 19
16 private: 20 private:
17 QWidget* main_widget; 21 QWidget* main_widget;
22 QStackedWidget* stack;
23 SideBar* sidebar;
18 }; 24 };
19 25
20 #endif // __window_h 26 #endif // __window_h