summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/filemngr.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-05-27 02:59:42 +1000
committer Vas Crabb <vas@vastheman.com>2016-05-27 03:00:20 +1000
commit87429e74d90481317db41dfc45c7751039cd8b48 (patch)
tree662d3fd49661f4dc98611ebedcf8ffee62ed8b42 /src/frontend/mame/ui/filemngr.h
parent4efb2fe8257a7ce35696f8942122358822079056 (diff)
ui refactoring [Vas Crabb]
* move menu classes into ::ui namesapce * reduce scope of many symbols (first step in making UI code less rage-inducing so I can fix text input)
Diffstat (limited to 'src/frontend/mame/ui/filemngr.h')
-rw-r--r--src/frontend/mame/ui/filemngr.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/frontend/mame/ui/filemngr.h b/src/frontend/mame/ui/filemngr.h
index 74c1c6dcacf..4fa88531290 100644
--- a/src/frontend/mame/ui/filemngr.h
+++ b/src/frontend/mame/ui/filemngr.h
@@ -10,10 +10,13 @@
#pragma once
-#ifndef __UI_FILEMNGR_H__
-#define __UI_FILEMNGR_H__
+#ifndef MAME_FRONTEND_UI_FILEMNGR_H
+#define MAME_FRONTEND_UI_FILEMNGR_H
-class ui_menu_file_manager : public ui_menu {
+namespace ui {
+
+class menu_file_manager : public menu
+{
public:
std::string current_directory;
std::string current_file;
@@ -21,8 +24,8 @@ public:
static void force_file_manager(mame_ui_manager &mui, render_container *container, const char *warnings);
- ui_menu_file_manager(mame_ui_manager &mui, render_container *container, const char *warnings);
- virtual ~ui_menu_file_manager();
+ menu_file_manager(mame_ui_manager &mui, render_container *container, const char *warnings);
+ virtual ~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;
@@ -34,4 +37,6 @@ private:
bool m_curr_selected;
};
-#endif /* __UI_FILEMNGR_H__ */
+} // namespace ui
+
+#endif /* MAME_FRONTEND_UI_FILEMNGR_H */