summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/optsmenu.h
diff options
context:
space:
mode:
author andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committer andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/frontend/mame/ui/optsmenu.h
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/frontend/mame/ui/optsmenu.h')
-rw-r--r--src/frontend/mame/ui/optsmenu.h53
1 files changed, 11 insertions, 42 deletions
diff --git a/src/frontend/mame/ui/optsmenu.h b/src/frontend/mame/ui/optsmenu.h
index 2afe9b68a89..e9650e3a95b 100644
--- a/src/frontend/mame/ui/optsmenu.h
+++ b/src/frontend/mame/ui/optsmenu.h
@@ -17,27 +17,23 @@
namespace ui {
-
-class menu_simple_game_options : public menu
+class menu_game_options : public menu
{
public:
- menu_simple_game_options(
- mame_ui_manager &mui,
- render_container &container,
- std::function<void ()> &&handler);
- virtual ~menu_simple_game_options() override;
+ menu_game_options(mame_ui_manager &mui, render_container &container);
+ virtual ~menu_game_options() override;
protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
- virtual void handle() override;
- virtual void populate(float &customtop, float &custombottom) override;
-
- void handle_item_event(event const &menu_event);
private:
enum
{
- DISPLAY_MENU = 1001,
+ FILTER_MENU = 1,
+ FILTER_ADJUST,
+ CONF_DIR,
+ DISPLAY_MENU,
+ CUSTOM_MENU,
SOUND_MENU,
CONTROLLER_MENU,
MISC_MENU,
@@ -47,39 +43,12 @@ private:
SAVE_CONFIG
};
- std::function<void ()> const m_handler;
-};
-
-
-class menu_game_options : public menu_simple_game_options
-{
-public:
- menu_game_options(
- mame_ui_manager &mui,
- render_container &container,
- machine_filter_data &filter_data,
- std::function<void ()> &&handler);
- virtual ~menu_game_options() override;
-
-protected:
- virtual void handle() override;
virtual void populate(float &customtop, float &custombottom) override;
+ virtual void handle() override;
- void handle_item_event(event const &menu_event);
-
-private:
- enum
- {
- FILTER_MENU = 2001,
- FILTER_ADJUST,
- CONF_DIR,
- CUSTOM_MENU
- };
-
- machine_filter_data &m_filter_data;
- machine_filter::type m_main_filter;
+ machine_filter::type m_main;
};
} // namespace ui
-#endif // MAME_FRONTEND_UI_OPTSMENU_H
+#endif /* MAME_FRONTEND_UI_OPTSMENU_H */