annotate src/include/window.h @ 7:07a9095eaeed

Update Refactored some code, moved some around
author Paper <mrpapersonic@gmail.com>
date Thu, 24 Aug 2023 23:11:38 -0400
parents 1d82f6e04d7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
1 #ifndef __window_h
7
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
2 #define __window_h
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
3 #include <QMainWindow>
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
4 #include <QWidget>
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
5 #include <QCloseEvent>
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
6 #include "config.h"
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
8 class MainWindow : public QMainWindow {
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
9 public:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
10 MainWindow(QWidget* parent = nullptr);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 void SetActivePage(QWidget* page);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
12 void SetStyleSheet(enum Themes theme);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13 void ThemeChanged();
4
5af270662505 Set override functions as override
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
14 void closeEvent(QCloseEvent* event) override;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16 private:
6
1d82f6e04d7d Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
17 QWidget* main_widget;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
18 };
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
19
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
20 #endif // __window_h