diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-30 00:36:19 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-30 00:36:19 -0500 |
commit | 6f2b61b676a16482fdac70a58a8e875c4d68e713 (patch) | |
tree | e2f8b2376847b5b13b278572c0fae8a6bc4d0e82 /src/main_window.hpp | |
parent | dacd752bbf46f2afb08b4b8d730ba3619528dda4 (diff) |
Add configuration handling.
Diffstat (limited to 'src/main_window.hpp')
-rw-r--r-- | src/main_window.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main_window.hpp b/src/main_window.hpp index 55b200d..2dabf77 100644 --- a/src/main_window.hpp +++ b/src/main_window.hpp @@ -3,6 +3,7 @@ #include "archive.hpp" #include "getsuyomi.hpp" +#include "config.hpp" #include <QtWidgets> #include <fud_status.hpp> @@ -35,11 +36,16 @@ class GetsuyomiApp : public QMainWindow { void createToolBar(); /* Private data */ + GetsuyomiConfig m_config{}; + Getsuyomi* m_getsuyomi{nullptr}; QAction* m_openFile{nullptr}; QAction* m_openDirectory{nullptr}; QAction* m_quitAction{nullptr}; + + QAction* m_settingsAction{nullptr}; + QAction* m_nextAction{nullptr}; QAction* m_backAction{nullptr}; @@ -48,7 +54,9 @@ class GetsuyomiApp : public QMainWindow { QAction* m_setMangaLayout{nullptr}; QActionGroup* m_setPageLayoutGroup{nullptr}; - QMenu* m_menuBar{nullptr}; + QMenu* m_fileMenu{nullptr}; + QMenu* m_SettingsMenu{nullptr}; + QMenu* m_HelpMenu{nullptr}; QToolBar* m_toolBar{nullptr}; QString m_lastOpenedDirectory{}; @@ -58,6 +66,8 @@ class GetsuyomiApp : public QMainWindow { void openDirectory(); void quit(); + void configure(); + void readSettings(); void writeSettings(); void closeEvent(QCloseEvent* event) override; |