From 8477ffbfba2f15edb9f87e9336e2c4599000c32a Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 25 Sep 2024 12:16:30 -0500 Subject: Moving forward. --- src/bookmouse.hpp | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/bookmouse.hpp') 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 + 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); + 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 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 -- cgit v1.2.3