summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/optsmenu.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-08-09 23:22:19 +1000
committer Vas Crabb <vas@vastheman.com>2017-08-09 23:27:30 +1000
commit651d8ee692ca08541953f73d455663434f50ba02 (patch)
treed8d6c06c19a026d69c8aab92aa19227843545c86 /src/frontend/mame/ui/optsmenu.h
parentba14f72569be7f283602f4e5aacda566ef6995b9 (diff)
Polymorphic machine/software list filters:
* Localisable filter names * Uniform interface for most filters without far less special-casing * Stacking year/manufacturer/etc. does OR rather than useless AND * Prevent stacking contradictory filters (e.g. parents and clones) * Fix alignment of filter list * Removed most of the lambdas added the other day * There's no longer an implicit "not BIOS" filter * Can't add (un)available to custom machine filter (will address)
Diffstat (limited to 'src/frontend/mame/ui/optsmenu.h')
-rw-r--r--src/frontend/mame/ui/optsmenu.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/frontend/mame/ui/optsmenu.h b/src/frontend/mame/ui/optsmenu.h
index 769d0aa9ecf..2ef9d2969c8 100644
--- a/src/frontend/mame/ui/optsmenu.h
+++ b/src/frontend/mame/ui/optsmenu.h
@@ -7,13 +7,14 @@
UI main options menu manager.
***************************************************************************/
-
-#pragma once
-
#ifndef MAME_FRONTEND_UI_OPTSMENU_H
#define MAME_FRONTEND_UI_OPTSMENU_H
+#pragma once
+
#include "ui/menu.h"
+#include "ui/utils.h"
+
namespace ui {
class menu_game_options : public menu
@@ -30,8 +31,7 @@ private:
{
FILTER_MENU = 1,
FILE_CATEGORY_FILTER,
- MANUFACT_CAT_FILTER,
- YEAR_CAT_FILTER,
+ FILTER_ADJUST,
CATEGORY_FILTER,
CONF_DIR,
DISPLAY_MENU,
@@ -42,14 +42,13 @@ private:
ADVANCED_MENU,
SAVE_OPTIONS,
CGI_MENU,
- CUSTOM_FILTER,
SAVE_CONFIG
};
virtual void populate(float &customtop, float &custombottom) override;
virtual void handle() override;
- uint16_t m_main;
+ machine_filter::type m_main;
};
} // namespace ui