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();
|
|
34 void closeEvent(QCloseEvent* event);
|
|
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
|