summaryrefslogtreecommitdiff
path: root/src/bookmouse.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-28 17:39:03 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-28 17:39:03 -0500
commit876c829512301e3f20161f05d7c193540e6d1710 (patch)
tree17cb3f1956d88ce87e1bcd980ea67f0592b0bed4 /src/bookmouse.hpp
parentdac2e7507d0172e2a87ed5b2df9c320bc9717da6 (diff)
Working through file picker.
Diffstat (limited to 'src/bookmouse.hpp')
-rw-r--r--src/bookmouse.hpp18
1 files changed, 18 insertions, 0 deletions
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 <memory>
+#include <vector>
namespace bookmouse {
@@ -34,6 +36,7 @@ class Bookmouse {
void menuing();
void openDialog();
+ void openDialog2();
void setArchive(std::unique_ptr<Archive>&& 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<FileDialog> 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<DialogEntry> m_directoryContents{};
+
std::unique_ptr<Archive> m_archive{nullptr};
PageLayout m_pageLayout{PageLayout::Single};