From 6f2b61b676a16482fdac70a58a8e875c4d68e713 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 30 Sep 2024 00:36:19 -0500 Subject: Add configuration handling. --- src/main_window.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/main_window.hpp') 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 #include @@ -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; -- cgit v1.2.3