summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/optsmenu.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/optsmenu.h
parent01657a63c13c79c5f045ba4ecb4c2fd7f7c5a1f8 (diff)
Split UI and frontend part from core [Miodrag Milanovic]
Diffstat (limited to 'src/frontend/mame/ui/optsmenu.h')
-rw-r--r--src/frontend/mame/ui/optsmenu.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/optsmenu.h b/src/frontend/mame/ui/optsmenu.h
new file mode 100644
index 00000000000..f6b4243afa0
--- /dev/null
+++ b/src/frontend/mame/ui/optsmenu.h
@@ -0,0 +1,53 @@
+// license:BSD-3-Clause
+// copyright-holders:Maurizio Petrarota
+/***************************************************************************
+
+ ui/optsmenu.h
+
+ UI main options menu manager.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_OPTSMENU_H__
+#define __UI_OPTSMENU_H__
+
+class ui_menu_game_options : public ui_menu
+{
+public:
+ ui_menu_game_options(running_machine &machine, render_container *container);
+ virtual ~ui_menu_game_options();
+ 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;
+
+private:
+ UINT16 m_main;
+
+ enum
+ {
+ FILTER_MENU = 1,
+ FILE_CATEGORY_FILTER,
+ MANUFACT_CAT_FILTER,
+ YEAR_CAT_FILTER,
+ CATEGORY_FILTER,
+ CONF_DIR,
+ DISPLAY_MENU,
+ CUSTOM_MENU,
+ SOUND_MENU,
+ CONTROLLER_MENU,
+ MISC_MENU,
+ ADVANCED_MENU,
+ SAVE_OPTIONS,
+ CGI_MENU,
+ CUSTOM_FILTER,
+ SAVE_CONFIG
+ };
+};
+
+// save options to file
+void save_ui_options(running_machine &machine);
+void save_main_option(running_machine &machine);
+
+#endif /* __UI_OPTSMENU_H__ */