Mercurial > minori
annotate src/include/window.h @ 4:5af270662505
Set override functions as override
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 12:08:16 -0400 |
parents | 23d0d9319a00 |
children | 1d82f6e04d7d |
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> | |
24 # include "config.h" | |
25 //# include "statistics.h" | |
26 //# include "now_playing.h" | |
27 | |
28 class MainWindow : public QMainWindow { | |
29 public: | |
30 MainWindow(QWidget* parent = nullptr); | |
31 void SetActivePage(QWidget* page); | |
32 void SetStyleSheet(enum Themes theme); | |
33 void ThemeChanged(); | |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
34 void closeEvent(QCloseEvent* event) override; |
2 | 35 |
36 private: | |
37 QWidget* anime_list_page; | |
38 }; | |
39 | |
40 struct Session { | |
41 Config config; | |
42 }; | |
43 | |
44 extern Session session; | |
45 #endif // __window_h |