From fa4b4097d3283e1d6e6376c70910e245f0b1f6ec Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 18 Sep 2024 21:59:54 -0500 Subject: Save progress of qt6 implementation. --- src/main_window.hpp | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src/main_window.hpp') diff --git a/src/main_window.hpp b/src/main_window.hpp index 886ba42..bc23b01 100644 --- a/src/main_window.hpp +++ b/src/main_window.hpp @@ -1,3 +1,9 @@ +#ifndef MAIN_WINDOW_HPP +#define MAIN_WINDOW_HPP + +#include "archive.hpp" +#include "getsuyomi.hpp" + #include namespace getsuyomi { @@ -5,8 +11,6 @@ namespace getsuyomi { constexpr const char* AppName = "GetsuYomi"; constexpr const char* AppVersionString = "1.0.0"; -class Getsuyomi; - class GetsuyomiApp : public QMainWindow { Q_OBJECT @@ -17,28 +21,28 @@ class GetsuyomiApp : public QMainWindow { void setup(); void createActions(); void createMenus(); + void createToolBar(); Getsuyomi* m_getsuyomi; QAction* m_openFile; QAction* m_openDirectory; QAction* m_quitAction; + QAction* m_nextAction; + QAction* m_backAction; - QMenu* m_fileMenu; + QMenu* m_menuBar; + QToolBar* m_toolBar; private slots: void openFile(); void openDirectory(); void quit(); -}; -class Getsuyomi : public QWidget { - Q_OBJECT - public: - Getsuyomi(); - - private: - QLayout* m_layout{nullptr}; + void next(); + void back(); }; } // namespace getsuyomi + +#endif -- cgit v1.2.3