summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/filemngr.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-23 11:25:03 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-23 11:26:47 +0200
commit1c726824f2b2cc7c6c03ff975e548b72f9b2c0a9 (patch)
tree020f20da5a8cd822065c1839bc7a53f826803a3d /src/frontend/mame/ui/filemngr.h
parent01657a63c13c79c5f045ba4ecb4c2fd7f7c5a1f8 (diff)
Split UI and frontend part from core [Miodrag Milanovic]
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__ */