Mercurial > minori
annotate src/include/window.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 5af270662505 |
children | 07a9095eaeed |
rev | line source |
---|---|
2 | 1 #ifndef __window_h |
2 # define __window_h | |
3 /* FIXME: include these in specific .cpp files */ | |
4 # include <QApplication> | |
5 # include <QMainWindow> | |
6 # include <QToolBar> | |
7 # include <QMenuBar> | |
8 # include <QWidget> | |
9 # include <QTreeView> | |
10 # include <QMessageBox> | |
11 # include <QDesktopServices> | |
12 # include <QUrl> | |
13 # include <QInputDialog> | |
14 # include <QDate> | |
15 # include <QHeaderView> | |
16 # include <QShortcut> | |
17 # include <QFile> | |
18 # include <QTextStream> | |
19 # include <QCloseEvent> | |
20 # include <QPlainTextEdit> | |
21 # include <QLabel> | |
22 # include <QHBoxLayout> | |
23 # include <QTextStream> | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
4
diff
changeset
|
24 # include <QSortFilterProxyModel> |
2 | 25 # include "config.h" |
26 //# include "statistics.h" | |
27 //# include "now_playing.h" | |
28 | |
29 class MainWindow : public QMainWindow { | |
30 public: | |
31 MainWindow(QWidget* parent = nullptr); | |
32 void SetActivePage(QWidget* page); | |
33 void SetStyleSheet(enum Themes theme); | |
34 void ThemeChanged(); | |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
35 void closeEvent(QCloseEvent* event) override; |
2 | 36 |
37 private: | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
4
diff
changeset
|
38 QWidget* main_widget; |
2 | 39 QWidget* anime_list_page; |
40 }; | |
41 | |
42 struct Session { | |
43 Config config; | |
44 }; | |
45 | |
46 extern Session session; | |
47 #endif // __window_h |