summaryrefslogtreecommitdiff
path: root/src/bookmouse.hpp
diff options
context:
space:
mode:
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};