comparison 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
comparison
equal deleted inserted replaced
6:1d82f6e04d7d 7:07a9095eaeed
1 #ifndef __window_h 1 #ifndef __window_h
2 # define __window_h 2 #define __window_h
3 /* FIXME: include these in specific .cpp files */ 3 #include <QMainWindow>
4 # include <QApplication> 4 #include <QWidget>
5 # include <QMainWindow> 5 #include <QCloseEvent>
6 # include <QToolBar> 6 #include "config.h"
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 <QSortFilterProxyModel>
25 # include "config.h"
26 //# include "statistics.h"
27 //# include "now_playing.h"
28 7
29 class MainWindow : public QMainWindow { 8 class MainWindow : public QMainWindow {
30 public: 9 public:
31 MainWindow(QWidget* parent = nullptr); 10 MainWindow(QWidget* parent = nullptr);
32 void SetActivePage(QWidget* page); 11 void SetActivePage(QWidget* page);
34 void ThemeChanged(); 13 void ThemeChanged();
35 void closeEvent(QCloseEvent* event) override; 14 void closeEvent(QCloseEvent* event) override;
36 15
37 private: 16 private:
38 QWidget* main_widget; 17 QWidget* main_widget;
39 QWidget* anime_list_page;
40 }; 18 };
41 19
42 struct Session {
43 Config config;
44 };
45
46 extern Session session;
47 #endif // __window_h 20 #endif // __window_h