summaryrefslogtreecommitdiff
path: root/src/main_window.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-18 21:59:54 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-18 21:59:54 -0500
commitfa4b4097d3283e1d6e6376c70910e245f0b1f6ec (patch)
tree74dff4ded82d3f4854b3f10d5dd2e5be1f69b95e /src/main_window.hpp
parent04dbfdc97e94e6f477675b9d3135164752a7cfef (diff)
Save progress of qt6 implementation.
Diffstat (limited to 'src/main_window.hpp')
-rw-r--r--src/main_window.hpp26
1 files changed, 15 insertions, 11 deletions
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 <QtWidgets>
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