diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
commit | 8477ffbfba2f15edb9f87e9336e2c4599000c32a (patch) | |
tree | 059a36f9d526b0807a7bd0b20979577f9a7e7d0e /src/bookmouse.hpp | |
parent | b6e3cc840e255b78ee53e55b420aeee130e51ce1 (diff) |
Moving forward.
Diffstat (limited to 'src/bookmouse.hpp')
-rw-r--r-- | src/bookmouse.hpp | 32 |
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 |