summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/filemngr.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-07-10 22:10:44 +1000
committer Vas Crabb <vas@vastheman.com>2016-07-10 22:10:59 +1000
commit3258d3feef7ecba3067bde2ed527849811297020 (patch)
tree82295081a7c83835fe8d42a3ddd3d71a854059b1 /src/frontend/mame/ui/filemngr.h
parent9bbf1208e309370371d54b620077c5e2c993bbe3 (diff)
UI refactoring: [Vas Crabb]
* std::bind - accept no substitutes * pointer -> reference conversion * make more menu members private or protected * don't play so fast and loose with integer types * reduce some vector copying * make more static constants const
Diffstat (limited to 'src/frontend/mame/ui/filemngr.h')
-rw-r--r--src/frontend/mame/ui/filemngr.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/filemngr.h b/src/frontend/mame/ui/filemngr.h
index 25f364ea487..34cdb0a98ce 100644
--- a/src/frontend/mame/ui/filemngr.h
+++ b/src/frontend/mame/ui/filemngr.h
@@ -21,19 +21,22 @@ public:
std::string current_file;
device_image_interface *selected_device;
- static void force_file_manager(mame_ui_manager &mui, render_container *container, const char *warnings);
+ static void force_file_manager(mame_ui_manager &mui, render_container &container, const char *warnings);
- menu_file_manager(mame_ui_manager &mui, render_container *container, const char *warnings);
+ menu_file_manager(mame_ui_manager &mui, render_container &container, const char *warnings);
virtual ~menu_file_manager();
+
+protected:
+ virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+
+private:
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;
+ bool m_curr_selected;
};
} // namespace ui