diff options
author | 2016-07-15 22:24:34 +1000 | |
---|---|---|
committer | 2016-07-15 22:24:34 +1000 | |
commit | ce0162de56e22d0bfde739492ea653a1a0686144 (patch) | |
tree | 9737bb369d82e2156e9681c901974bbc1581244b /src/frontend/mame/ui/selsoft.h | |
parent | 200adb341a40f2981ce34f7470bfda7c20b5f21f (diff) |
UI refactoring: [Vas Crabb]
* more const where it should be
* don't unnecessarily copy big maps
* don't make things members when they shouldn't be
* get rid of a couple more function statics
* move custom render and tab navigate up to base class
Diffstat (limited to 'src/frontend/mame/ui/selsoft.h')
-rw-r--r-- | src/frontend/mame/ui/selsoft.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/selsoft.h b/src/frontend/mame/ui/selsoft.h index 7d5e81ad959..1f18671f9d8 100644 --- a/src/frontend/mame/ui/selsoft.h +++ b/src/frontend/mame/ui/selsoft.h @@ -27,7 +27,6 @@ public: virtual ~menu_select_software() override; protected: - virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override; virtual bool menu_has_search_active() override { return (m_search[0] != 0); } private: @@ -47,6 +46,11 @@ private: // get selected software and/or driver virtual void get_selection(ui_software_info const *&software, game_driver const *&driver) const override; + // text for main top/bottom panels + virtual void make_topbox_text(std::string &line0, std::string &line1, std::string &line2) const override; + virtual std::string make_driver_description(game_driver const &driver) const override; + virtual std::string make_software_description(ui_software_info const &software) const override; + ui_software_info *m_searchlist[VISIBLE_GAMES_IN_SEARCH + 1]; std::vector<ui_software_info *> m_displaylist, m_tmp, m_sortedlist; std::vector<ui_software_info> m_swinfo; @@ -62,7 +66,6 @@ private: // handlers void inkey_select(const event *menu_event); void inkey_special(const event *menu_event); - void inkey_navigation(); }; class software_parts : public menu |