summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/filemngr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/filemngr.h')
-rw-r--r--src/frontend/mame/ui/filemngr.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/filemngr.h b/src/frontend/mame/ui/filemngr.h
new file mode 100644
index 00000000000..38c4e068281
--- /dev/null
+++ b/src/frontend/mame/ui/filemngr.h
@@ -0,0 +1,37 @@
+// license:BSD-3-Clause
+// copyright-holders:Nathan Woods
+/***************************************************************************
+
+ ui/filemngr.h
+
+ MESS's clunky built-in file manager
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_FILEMNGR_H__
+#define __UI_FILEMNGR_H__
+
+class ui_menu_file_manager : public ui_menu {
+public:
+ std::string current_directory;
+ std::string current_file;
+ device_image_interface *selected_device;
+
+ static void force_file_manager(running_machine &machine, render_container *container, const char *warnings);
+
+ ui_menu_file_manager(running_machine &machine, render_container *container, const char *warnings);
+ virtual ~ui_menu_file_manager();
+ virtual void populate() override;
+ virtual void handle() override;
+ virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+
+ void fill_image_line(device_image_interface *img, std::string &instance, std::string &filename);
+
+private:
+ std::string m_warnings;
+ bool m_curr_selected;
+};
+
+#endif /* __UI_FILEMNGR_H__ */