comparison src/include/window.h @ 1:1ae666fdf9e2

*: initial commit
author Paper <mrpapersonic@gmail.com>
date Tue, 08 Aug 2023 19:49:15 -0400
parents
children 23d0d9319a00
comparison
equal deleted inserted replaced
0:5a76e1b94163 1:1ae666fdf9e2
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 "config.h"
21 //# include "statistics.h"
22 //# include "now_playing.h"
23
24 class MainWindow : public QMainWindow {
25 public:
26 MainWindow(QWidget* parent = nullptr);
27 void SetActivePage(QWidget* page);
28 void SetStyleSheet(enum Themes theme);
29 void ThemeChanged();
30 void closeEvent(QCloseEvent* event);
31
32 private:
33 QWidget* anime_list_page;
34 };
35
36 struct Session {
37 Config config;
38 };
39
40 extern Session session;
41 #endif // __window_h