summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/devopt.cpp
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/devopt.cpp
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/devopt.cpp')
-rw-r--r--src/frontend/mame/ui/devopt.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/frontend/mame/ui/devopt.cpp b/src/frontend/mame/ui/devopt.cpp
index 3ebc5974506..3b8fa1442c1 100644
--- a/src/frontend/mame/ui/devopt.cpp
+++ b/src/frontend/mame/ui/devopt.cpp
@@ -10,22 +10,24 @@
#include "emu.h"
#include "ui/ui.h"
-#include "ui/menu.h"
#include "ui/devopt.h"
+
+namespace ui {
+
/*-------------------------------------------------
- ui_device_config - handle the game information
+ device_config - handle the game information
menu
-------------------------------------------------*/
-ui_menu_device_config::ui_menu_device_config(mame_ui_manager &mui, render_container *container, device_slot_interface *slot, device_slot_option *option) : ui_menu(mui, container)
+menu_device_config::menu_device_config(mame_ui_manager &mui, render_container *container, device_slot_interface *slot, device_slot_option *option) : menu(mui, container)
{
m_option = option;
m_owner = slot;
m_mounted = slot->device().subdevice(option->name()) != nullptr;
}
-void ui_menu_device_config::populate()
+void menu_device_config::populate()
{
std::ostringstream str;
device_t *dev;
@@ -265,15 +267,17 @@ void ui_menu_device_config::populate()
str << "[None]\n";
const_cast<machine_config &>(machine().config()).device_remove(&machine().config().root_device(), m_option->name());
- item_append(str.str().c_str(), nullptr, MENU_FLAG_MULTILINE, nullptr);
+ item_append(str.str().c_str(), nullptr, FLAG_MULTILINE, nullptr);
}
-void ui_menu_device_config::handle()
+void menu_device_config::handle()
{
/* process the menu */
process(0);
}
-ui_menu_device_config::~ui_menu_device_config()
+menu_device_config::~menu_device_config()
{
}
+
+} // namespace ui