summaryrefslogtreecommitdiff
path: root/src/main_window.hpp
diff options
context:
space:
mode:
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