summaryrefslogtreecommitdiff
path: root/src/bookmouse.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmouse.hpp')
-rw-r--r--src/bookmouse.hpp32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/bookmouse.hpp b/src/bookmouse.hpp
index a983025..95cbd61 100644
--- a/src/bookmouse.hpp
+++ b/src/bookmouse.hpp
@@ -1,13 +1,26 @@
#ifndef BOOKMOUSE_HPP
#define BOOKMOUSE_HPP
+#include "archive.hpp"
#include "gl_context.hpp"
#include "imgui_context.hpp"
#include "sdl_context.hpp"
#include "sdl_main_window.hpp"
+#include <memory>
+
namespace bookmouse {
+constexpr const char* AppName = "Bookmouse";
+constexpr const char* AppVersionString = "1.0.0";
+
+enum class PageLayout : uint8_t
+{
+ Single,
+ Dual,
+ Manga
+};
+
class Bookmouse {
public:
Bookmouse() noexcept(false);
@@ -19,9 +32,11 @@ class Bookmouse {
void updateState();
void renderFrame();
- void menuBar();
+ void menuing();
void openDialog();
+ void setArchive(std::unique_ptr<Archive>&& archive);
+
SdlContext m_sdlContext;
SdlMainWindow m_mainWindow;
GlContext m_glContext;
@@ -29,6 +44,21 @@ class Bookmouse {
bool m_running{true};
bool m_openDialog{false};
+
+ std::unique_ptr<Archive> m_archive{nullptr};
+ PageLayout m_pageLayout{PageLayout::Single};
+
+ size_t m_pageNumber{0};
+
+ // pageLeft
+ // pageRight
+ /*
+ void setPages();
+ void setPages(QLabel& label1, QLabel& label2);
+ void setPagesNormal();
+ void setPagesDual();
+ void setPagesManga();
+ */
};
} // namespace bookmouse