From 876c829512301e3f20161f05d7c193540e6d1710 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 17:39:03 -0500 Subject: Working through file picker. --- src/bookmouse.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/bookmouse.hpp') diff --git a/src/bookmouse.hpp b/src/bookmouse.hpp index 95cbd61..29a6caf 100644 --- a/src/bookmouse.hpp +++ b/src/bookmouse.hpp @@ -1,6 +1,7 @@ #ifndef BOOKMOUSE_HPP #define BOOKMOUSE_HPP +#include "file_dialog.hpp" #include "archive.hpp" #include "gl_context.hpp" #include "imgui_context.hpp" @@ -8,6 +9,7 @@ #include "sdl_main_window.hpp" #include +#include namespace bookmouse { @@ -34,6 +36,7 @@ class Bookmouse { void menuing(); void openDialog(); + void openDialog2(); void setArchive(std::unique_ptr&& archive); @@ -42,9 +45,24 @@ class Bookmouse { GlContext m_glContext; ImguiContext m_imgui; + TimeFormat m_timeFormat{"%Y-%m-%d %H:%M"}; + bool m_running{true}; bool m_openDialog{false}; + std::unique_ptr m_fileDialog{nullptr}; + + bool m_getContents{false}; + fud::String m_directoryName{"./"}; + fud::Directory m_directory; + + bool m_typeSelected{false}; + bool m_nameSelectede{false}; + bool m_sizeSelected{false}; + bool m_dateSelected{false}; + + std::vector m_directoryContents{}; + std::unique_ptr m_archive{nullptr}; PageLayout m_pageLayout{PageLayout::Single}; -- cgit v1.2.3