Previous 199869 Revisions Next

r44665 Thursday 4th February, 2016 at 14:14:26 UTC by Miodrag Milanović
some MEWUI to UI renames (nw)
[src/emu/drivers]empty.cpp
[src/emu/ui]auditmenu.cpp auditmenu.h cmddata.h cmdrender.h ctrlmenu.cpp ctrlmenu.h custmenu.cpp custmenu.h custui.cpp custui.h datfile.cpp datfile.h datmenu.cpp datmenu.h dirmenu.cpp dirmenu.h dsplmenu.cpp dsplmenu.h icorender.h inifile.cpp inifile.h moptions.cpp moptions.h optsmenu.cpp optsmenu.h selector.cpp selector.h selgame.cpp selgame.h selsoft.cpp selsoft.h sndmenu.cpp sndmenu.h utils.cpp utils.h

trunk/src/emu/drivers/empty.cpp
r253176r253177
2929   virtual void machine_start() override
3030   {
3131      // force the UI to show the game select screen
32      ui_mewui_select_game::force_game_select(machine(), &machine().render().ui_container());
32      ui_menu_select_game::force_game_select(machine(), &machine().render().ui_container());
3333   }
3434
3535   UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
trunk/src/emu/ui/auditmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/auditmenu.cpp
5    ui/auditmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/auditmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/auditmenu.h
5    ui/auditmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_AUDIT_H__
14#define __MEWUI_AUDIT_H__
13#ifndef __UI_AUDIT_H__
14#define __UI_AUDIT_H__
1515
1616//-------------------------------------------------
1717//  class audit menu
r253176r253177
3434   bool m_first;
3535};
3636
37#endif /* __MEWUI_AUDIT_H__ */
37#endif /* __UI_AUDIT_H__ */
trunk/src/emu/ui/cmddata.h
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/cmddata.h
5    ui/cmddata.h
66
77*********************************************************************/
88#pragma once
99
10#ifndef __MEWUI_CMDDATA_H__
11#define __MEWUI_CMDDATA_H__
10#ifndef __UI_CMDDATA_H__
11#define __UI_CMDDATA_H__
1212
1313#define BUTTON_COLOR_RED        rgb_t(255,64,64)
1414#define BUTTON_COLOR_YELLOW     rgb_t(255,238,0)
r253176r253177
401401   { 0, 0 }    // end of array
402402};
403403
404#endif /* __MEWUI_CMDDATA_H__ */
404#endif /* __UI_CMDDATA_H__ */
trunk/src/emu/ui/cmdrender.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/cmdrender.h
5    ui/cmdrender.h
66
77    MEWUI rendfont.
88
trunk/src/emu/ui/ctrlmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/ctrlmenu.cpp
5    ui/ctrlmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/ctrlmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/ctrlmenu.h
5    ui/ctrlmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010#pragma once
1111
12#ifndef __MEWUI_CTRLMENU_H__
13#define __MEWUI_CTRLMENU_H__
12#ifndef __UI_CTRLMENU_H__
13#define __UI_CTRLMENU_H__
1414
1515//-------------------------------------------------
1616//  class controller mapping menu
r253176r253177
3838   int check_status(const char *status, const char *option);
3939};
4040
41#endif /* __MEWUI_CTRLMENU_H__ */
41#endif /* __UI_CTRLMENU_H__ */
trunk/src/emu/ui/custmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/custmenu.cpp
5    ui/custmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/custmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/custmenu.h
5    ui/custmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99
1010***************************************************************************/
1111
1212#pragma once
1313
14#ifndef __MEWUI_CUSTMENU_H__
15#define __MEWUI_CUSTMENU_H__
14#ifndef __UI_CUSTMENU_H__
15#define __UI_CUSTMENU_H__
1616
1717#include "ui/utils.h"
1818
r253176r253177
128128   void save_custom_filters();
129129};
130130
131#endif  /* __MEWUI_CUSTMENU_H__ */
131#endif  /* __UI_CUSTMENU_H__ */
trunk/src/emu/ui/custui.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/custui.cpp
5    ui/custui.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
r253176r253177
141141ui_menu_font_ui::ui_menu_font_ui(running_machine &machine, render_container *container) : ui_menu(machine, container)
142142{
143143   emu_options &moptions = machine.options();
144#ifdef MEWUI_WINDOWS
144#ifdef OSD_WINDOWS
145145
146146   std::string name(moptions.ui_font());
147147   list();
r253176r253177
180180
181181}
182182
183#ifdef MEWUI_WINDOWS
183#ifdef OSD_WINDOWS
184184//-------------------------------------------------
185185//  fonts enumerator CALLBACK
186186//-------------------------------------------------
r253176r253177
227227   std::string error_string;
228228   emu_options &moptions = machine().options();
229229
230#ifdef MEWUI_WINDOWS
230#ifdef OSD_WINDOWS
231231   std::string name(m_fonts[m_actual]);
232232   if (m_fonts[m_actual] != "default")
233233   {
r253176r253177
273273            }
274274            break;
275275
276#ifdef MEWUI_WINDOWS
276#ifdef OSD_WINDOWS
277277
278278         case MUI_FNT:
279279            if (m_event->iptkey == IPT_UI_LEFT || m_event->iptkey == IPT_UI_RIGHT)
r253176r253177
313313   UINT32 arrow_flags;
314314   std::string tmptxt;
315315
316#ifdef MEWUI_WINDOWS
316#ifdef OSD_WINDOWS
317317   // add fonts option
318318   arrow_flags = get_arrow_flags(0, m_fonts.size() - 1, m_actual);
319319   std::string name(m_fonts[m_actual]);
trunk/src/emu/ui/custui.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/custui.h
5    ui/custui.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_CUSTUI_H__
14#define __MEWUI_CUSTUI_H__
13#ifndef __UI_CUSTUI_H__
14#define __UI_CUSTUI_H__
1515
16#ifdef MEWUI_WINDOWS
16#ifdef OSD_WINDOWS
1717#define WIN32_LEAN_AND_MEAN
1818#include <windows.h>
1919#endif
r253176r253177
6464      MUI_ITALIC
6565   };
6666
67#ifdef MEWUI_WINDOWS
67#ifdef OSD_WINDOWS
6868   UINT16                  m_actual;
6969   std::vector<std::string>   m_fonts;
7070   bool                  m_bold, m_italic;
r253176r253177
179179   rgb_t &m_original;
180180};
181181
182#endif /* __MEWUI_CUSTUI_H__ */
182#endif /* __UI_CUSTUI_H__ */
trunk/src/emu/ui/datfile.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/datfile.cpp
5    ui/datfile.cpp
66
77    MEWUI DATs manager.
88
trunk/src/emu/ui/datfile.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/datfile.h
5    ui/datfile.h
66
77    MEWUI DATs manager.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_DATFILE_H__
14#define __MEWUI_DATFILE_H__
13#ifndef __UI_DATFILE_H__
14#define __UI_DATFILE_H__
1515
1616//-------------------------------------------------
1717//  Datafile Manager
r253176r253177
7676};
7777
7878
79#endif  /* __MEWUI_DATFILE_H__ */
79#endif  /* __UI_DATFILE_H__ */
trunk/src/emu/ui/datmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/datmenu.cpp
5    ui/datmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/datmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/datmenu.h
5    ui/datmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99
1010***************************************************************************/
1111
1212#pragma once
1313
14#ifndef __MEWUI_DATMENU_H__
15#define __MEWUI_DATMENU_H__
14#ifndef __UI_DATMENU_H__
15#define __UI_DATMENU_H__
1616
1717struct ui_software_info;
1818
r253176r253177
9090   const game_driver *m_driver;
9191};
9292
93#endif  /* __MEWUI_DATMENU_H__ */
93#endif  /* __UI_DATMENU_H__ */
trunk/src/emu/ui/dirmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/dirmenu.cpp
5    ui/dirmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/dirmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/dirmenu.h
5    ui/dirmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_DIRMENU_H__
14#define __MEWUI_DIRMENU_H__
13#ifndef __UI_DIRMENU_H__
14#define __UI_DIRMENU_H__
1515
1616//-------------------------------------------------
1717//  class directory menu
r253176r253177
125125   bool         m_change;
126126};
127127
128#endif /* __MEWUI_DIRMENU_H__ */
128#endif /* __UI_DIRMENU_H__ */
trunk/src/emu/ui/dsplmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/dsplmenu.cpp
5    ui/dsplmenu.cpp
66
77    MEWUI video options menu.
88
r253176r253177
1515#include "ui/selector.h"
1616#include "ui/utils.h"
1717
18#if defined(MEWUI_WINDOWS) && !defined(MEWUI_SDL)
18#if defined(OSD_WINDOWS) && !defined(OSD_SDL)
1919#include "../osd/windows/winmain.h"
2020#else
2121#include "../osd/modules/lib/osdobj_common.h"
r253176r253177
2424ui_menu_display_options::video_modes ui_menu_display_options::m_video[] = {
2525   { "auto",    "Auto" },
2626   { "opengl",  "OpenGL" },
27#if defined(MEWUI_WINDOWS) && !defined(MEWUI_SDL)
27#if defined(OSD_WINDOWS) && !defined(OSD_SDL)
2828   { "d3d",     "Direct3D" },
2929   { "gdi",     "GDI" },
3030   { "ddraw",   "DirectDraw" }
r253176r253177
3737ui_menu_display_options::dspl_option ui_menu_display_options::m_options[] = {
3838   { 0, nullptr, nullptr },
3939   { 0, "Video Mode",               OSDOPTION_VIDEO },
40#if defined(MEWUI_WINDOWS) && !defined(MEWUI_SDL)
40#if defined(OSD_WINDOWS) && !defined(OSD_SDL)
4141   { 0, "Hardware Stretch",         WINOPTION_HWSTRETCH },
4242   { 0, "Triple Buffering",         WINOPTION_TRIPLEBUFFER },
4343   { 0, "HLSL",                     WINOPTION_HLSL_ENABLE },
r253176r253177
6060
6161ui_menu_display_options::ui_menu_display_options(running_machine &machine, render_container *container) : ui_menu(machine, container)
6262{
63#if defined(MEWUI_WINDOWS) && !defined(MEWUI_SDL)
63#if defined(OSD_WINDOWS) && !defined(OSD_SDL)
6464   windows_options &options = downcast<windows_options &>(machine.options());
6565#else
6666   osd_options &options = downcast<osd_options &>(machine.options());
trunk/src/emu/ui/dsplmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/dsplmenu.h
5    ui/dsplmenu.h
66
77    MEWUI video options menu.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_DSPLMENU_H__
14#define __MEWUI_DSPLMENU_H__
13#ifndef __UI_DSPLMENU_H__
14#define __UI_DSPLMENU_H__
1515
1616//-------------------------------------------------
1717//  class display options menu
r253176r253177
4343   static dspl_option m_options[];
4444};
4545
46#endif /* __MEWUI_DSPLMENU_H__ */
46#endif /* __UI_DSPLMENU_H__ */
trunk/src/emu/ui/icorender.h
r253176r253177
22// copyright-holders:Dankan1890;Victor Laskin
33/***************************************************************************
44
5    mewui/icorender.h
5    ui/icorender.h
66
77    ICOns file loader.
88
r253176r253177
1414***************************************************************************/
1515#pragma once
1616
17#ifndef __MEWUI_ICORENDER_H__
18#define __MEWUI_ICORENDER_H__
17#ifndef __UI_ICORENDER_H__
18#define __UI_ICORENDER_H__
1919
2020// These next two structs represent how the icon information is stored
2121// in an ICO file.
r253176r253177
232232   global_free_array(buffer);
233233}
234234
235#endif /* __MEWUI_ICORENDER_H__ */
235#endif /* __UI_ICORENDER_H__ */
trunk/src/emu/ui/inifile.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/inifile.cpp
5    ui/inifile.cpp
66
77    MEWUI INIs file manager.
88
trunk/src/emu/ui/inifile.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/inifile.h
5    ui/inifile.h
66
77    MEWUI INIs file manager.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_INIFILE_H__
14#define __MEWUI_INIFILE_H__
13#ifndef __UI_INIFILE_H__
14#define __UI_INIFILE_H__
1515
1616#include "ui/utils.h"
1717
r253176r253177
119119   running_machine &m_machine;  // reference to our machine
120120};
121121
122#endif  /* __MEWUI_INIFILE_H__ */
122#endif  /* __UI_INIFILE_H__ */
trunk/src/emu/ui/moptions.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/moptions.c
5    ui/moptions.c
66
77    MEWUI main options manager.
88
trunk/src/emu/ui/moptions.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/moptions.h
5    ui/moptions.h
66
77    MEWUI main options manager.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_OPTS_H__
14#define __MEWUI_OPTS_H__
13#ifndef __UI_OPTS_H__
14#define __UI_OPTS_H__
1515
1616#include "options.h"
1717
r253176r253177
137137   static const options_entry s_option_entries[];
138138};
139139
140#endif /* __MEWUI_OPTS_H__ */
140#endif /* __UI_OPTS_H__ */
trunk/src/emu/ui/optsmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/optsmenu.cpp
5    ui/optsmenu.cpp
66
77    MEWUI main options menu manager.
88
trunk/src/emu/ui/optsmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/optsmenu.h
5    ui/optsmenu.h
66
77    MEWUI main options menu manager.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_OPTSMENU_H__
14#define __MEWUI_OPTSMENU_H__
13#ifndef __UI_OPTSMENU_H__
14#define __UI_OPTSMENU_H__
1515
1616class ui_menu_game_options : public ui_menu
1717{
r253176r253177
4646// save options to file
4747void save_game_options(running_machine &machine);
4848
49#endif /* __MEWUI_OPTSMENU_H__ */
49#endif /* __UI_OPTSMENU_H__ */
trunk/src/emu/ui/selector.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/m_selector.cpp
5    ui/m_selector.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/selector.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/selector.h
5    ui/selector.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_SELECTOR_H__
14#define __MEWUI_SELECTOR_H__
13#ifndef __UI_SELECTOR_H__
14#define __UI_SELECTOR_H__
1515
1616enum
1717{
r253176r253177
4848   void find_matches(const char *str);
4949};
5050
51#endif /* __MEWUI_SELECTOR_H__ */
51#endif /* __UI_SELECTOR_H__ */
trunk/src/emu/ui/selgame.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/selgame.cpp
5    ui/selgame.cpp
66
77    Main MEWUI menu.
88
r253176r253177
105105//  ctor
106106//-------------------------------------------------
107107
108ui_mewui_select_game::ui_mewui_select_game(running_machine &machine, render_container *container, const char *gamename) : ui_menu(machine, container)
108ui_menu_select_game::ui_menu_select_game(running_machine &machine, render_container *container, const char *gamename) : ui_menu(machine, container)
109109{
110110   std::string error_string, last_filter, sub_filter;
111111   emu_options &moptions = machine.options();
r253176r253177
181181//  dtor
182182//-------------------------------------------------
183183
184ui_mewui_select_game::~ui_mewui_select_game()
184ui_menu_select_game::~ui_menu_select_game()
185185{
186186   std::string error_string, last_driver;
187187   const game_driver *driver = nullptr;
r253176r253177
217217//  handle
218218//-------------------------------------------------
219219
220void ui_mewui_select_game::handle()
220void ui_menu_select_game::handle()
221221{
222222   bool check_filter = false;
223223   bool enabled_dats = machine().options().enabled_dats();
r253176r253177
545545//  populate
546546//-------------------------------------------------
547547
548void ui_mewui_select_game::populate()
548void ui_menu_select_game::populate()
549549{
550550   mewui_globals::redraw_icon = true;
551551   mewui_globals::switch_image = true;
r253176r253177
684684//  build a list of available drivers
685685//-------------------------------------------------
686686
687void ui_mewui_select_game::build_available_list()
687void ui_menu_select_game::build_available_list()
688688{
689689   int m_total = driver_list::total();
690690   std::vector<bool> m_included(m_total, false);
r253176r253177
744744//  perform our special rendering
745745//-------------------------------------------------
746746
747void ui_mewui_select_game::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
747void ui_menu_select_game::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
748748{
749749   const game_driver *driver = nullptr;
750750   ui_software_info *swinfo = nullptr;
r253176r253177
980980//  and inescapable
981981//-------------------------------------------------
982982
983void ui_mewui_select_game::force_game_select(running_machine &machine, render_container *container)
983void ui_menu_select_game::force_game_select(running_machine &machine, render_container *container)
984984{
985985   // reset the menu stack
986986   ui_menu::stack_reset(machine);
r253176r253177
989989   ui_menu *quit = global_alloc_clear<ui_menu_quit_game>(machine, container);
990990   quit->set_special_main_menu(true);
991991   ui_menu::stack_push(quit);
992   ui_menu::stack_push(global_alloc_clear<ui_mewui_select_game>(machine, container, nullptr));
992   ui_menu::stack_push(global_alloc_clear<ui_menu_select_game>(machine, container, nullptr));
993993
994994   // force the menus on
995995   machine.ui().show_menu();
r253176r253177
10021002//  handle select key event
10031003//-------------------------------------------------
10041004
1005void ui_mewui_select_game::inkey_select(const ui_menu_event *m_event)
1005void ui_menu_select_game::inkey_select(const ui_menu_event *m_event)
10061006{
10071007   const game_driver *driver = (const game_driver *)m_event->itemref;
10081008
r253176r253177
10611061//  handle select key event for favorites menu
10621062//-------------------------------------------------
10631063
1064void ui_mewui_select_game::inkey_select_favorite(const ui_menu_event *m_event)
1064void ui_menu_select_game::inkey_select_favorite(const ui_menu_event *m_event)
10651065{
10661066   ui_software_info *ui_swinfo = (ui_software_info *)m_event->itemref;
10671067   emu_options &mopt = machine().options();
r253176r253177
11661166//  returns if the search can be activated
11671167//-------------------------------------------------
11681168
1169inline bool ui_mewui_select_game::no_active_search()
1169inline bool ui_menu_select_game::no_active_search()
11701170{
11711171   return (main_filters::actual == FILTER_FAVORITE_GAME);
11721172}
r253176r253177
11751175//  handle special key event
11761176//-------------------------------------------------
11771177
1178void ui_mewui_select_game::inkey_special(const ui_menu_event *m_event)
1178void ui_menu_select_game::inkey_special(const ui_menu_event *m_event)
11791179{
11801180   int buflen = strlen(m_search);
11811181
r253176r253177
12141214//  build list
12151215//-------------------------------------------------
12161216
1217void ui_mewui_select_game::build_list(std::vector<const game_driver *> &s_drivers, const char *filter_text, int filter, bool bioscheck)
1217void ui_menu_select_game::build_list(std::vector<const game_driver *> &s_drivers, const char *filter_text, int filter, bool bioscheck)
12181218{
12191219   int cx = 0;
12201220   bool cloneof = false;
r253176r253177
13301330//  build custom display list
13311331//-------------------------------------------------
13321332
1333void ui_mewui_select_game::build_custom()
1333void ui_menu_select_game::build_custom()
13341334{
13351335   std::vector<const game_driver *> s_drivers;
13361336   bool bioscheck = false;
r253176r253177
13951395//  build category list
13961396//-------------------------------------------------
13971397
1398void ui_mewui_select_game::build_category()
1398void ui_menu_select_game::build_category()
13991399{
14001400   std::vector<int> temp_filter;
14011401   machine().inifile().load_ini_category(temp_filter);
r253176r253177
14111411//  build list from cache
14121412//-------------------------------------------------
14131413
1414void ui_mewui_select_game::build_from_cache(std::vector<const game_driver *> &s_drivers, int screens, int filter, bool bioscheck)
1414void ui_menu_select_game::build_from_cache(std::vector<const game_driver *> &s_drivers, int screens, int filter, bool bioscheck)
14151415{
14161416   if (s_drivers.empty())
14171417   {
r253176r253177
14711471//  populate search list
14721472//-------------------------------------------------
14731473
1474void ui_mewui_select_game::populate_search()
1474void ui_menu_select_game::populate_search()
14751475{
14761476   // allocate memory to track the penalty value
14771477   std::vector<int> penalty(VISIBLE_GAMES_IN_SEARCH, 9999);
r253176r253177
15221522//  generate general info
15231523//-------------------------------------------------
15241524
1525void ui_mewui_select_game::general_info(const game_driver *driver, std::string &buffer)
1525void ui_menu_select_game::general_info(const game_driver *driver, std::string &buffer)
15261526{
15271527   strprintf(buffer, "Romset: %-.100s\n", driver->name);
15281528   buffer.append("Year: ").append(driver->year).append("\n");
r253176r253177
15981598      buffer.append("Roms Audit Pass: Disabled\nSamples Audit Pass: Disabled\n");
15991599}
16001600
1601void ui_mewui_select_game::inkey_export()
1601void ui_menu_select_game::inkey_export()
16021602{
16031603   std::string filename("exported");
16041604   emu_file infile(machine().options().mewui_path(), OPEN_FLAG_READ);
r253176r253177
16541654//  save drivers infos to file
16551655//-------------------------------------------------
16561656
1657void ui_mewui_select_game::save_cache_info()
1657void ui_menu_select_game::save_cache_info()
16581658{
16591659   // attempt to open the output file
16601660   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
r253176r253177
17431743//  load drivers infos from file
17441744//-------------------------------------------------
17451745
1746void ui_mewui_select_game::load_cache_info()
1746void ui_menu_select_game::load_cache_info()
17471747{
17481748   driver_cache.resize(driver_list::total() + 1);
17491749
r253176r253177
18171817//  load drivers infos from file
18181818//-------------------------------------------------
18191819
1820bool ui_mewui_select_game::load_available_machines()
1820bool ui_menu_select_game::load_available_machines()
18211821{
18221822   // try to load available drivers from file
18231823   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
r253176r253177
18691869//  load custom filters info from file
18701870//-------------------------------------------------
18711871
1872void ui_mewui_select_game::load_custom_filters()
1872void ui_menu_select_game::load_custom_filters()
18731873{
18741874   // attempt to open the output file
18751875   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
r253176r253177
19371937//  draw left box
19381938//-------------------------------------------------
19391939
1940float ui_mewui_select_game::draw_left_panel(float x1, float y1, float x2, float y2)
1940float ui_menu_select_game::draw_left_panel(float x1, float y1, float x2, float y2)
19411941{
19421942   ui_manager &mui = machine().ui();
19431943   float line_height = mui.get_line_height();
r253176r253177
20912091//  draw infos
20922092//-------------------------------------------------
20932093
2094void ui_mewui_select_game::infos_render(void *selectedref, float origx1, float origy1, float origx2, float origy2)
2094void ui_menu_select_game::infos_render(void *selectedref, float origx1, float origy1, float origx2, float origy2)
20952095{
20962096   ui_manager &mui = machine().ui();
20972097   float line_height = mui.get_line_height();
r253176r253177
23692369   }
23702370}
23712371
2372void ui_mewui_select_game::draw_right_panel(void *selectedref, float origx1, float origy1, float origx2, float origy2)
2372void ui_menu_select_game::draw_right_panel(void *selectedref, float origx1, float origy1, float origx2, float origy2)
23732373{
23742374   ui_manager &mui = machine().ui();
23752375   float line_height = mui.get_line_height();
r253176r253177
24132413//  perform our special rendering
24142414//-------------------------------------------------
24152415
2416void ui_mewui_select_game::arts_render(void *selectedref, float origx1, float origy1, float origx2, float origy2)
2416void ui_menu_select_game::arts_render(void *selectedref, float origx1, float origy1, float origx2, float origy2)
24172417{
24182418   ui_manager &mui = machine().ui();
24192419   float line_height = mui.get_line_height();
trunk/src/emu/ui/selgame.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/selgame.h
5    ui/selgame.h
66
77    Main MEWUI menu.
88
r253176r253177
1010
1111#pragma once
1212
13#ifndef __MEWUI_MAIN_H__
14#define __MEWUI_MAIN_H__
13#ifndef __UI_MAIN_H__
14#define __UI_MAIN_H__
1515
1616#include "drivenum.h"
1717#include "ui/menu.h"
1818
19class ui_mewui_select_game : public ui_menu
19class ui_menu_select_game : public ui_menu
2020{
2121public:
22   ui_mewui_select_game(running_machine &machine, render_container *container, const char *gamename);
23   virtual ~ui_mewui_select_game();
22   ui_menu_select_game(running_machine &machine, render_container *container, const char *gamename);
23   virtual ~ui_menu_select_game();
2424   virtual void populate() override;
2525   virtual void handle() override;
2626   virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
r253176r253177
8585};
8686
8787
88#endif  /* __MEWUI_MAIN_H__ */
88#endif  /* __UI_MAIN_H__ */
trunk/src/emu/ui/selsoft.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/selsoft.cpp
5    ui/selsoft.cpp
66
77    MEWUI softwares menu.
88
trunk/src/emu/ui/selsoft.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/selsoft.h
5    ui/selsoft.h
66
77    MEWUI softwares menu.
88
99***************************************************************************/
1010#pragma once
1111
12#ifndef __MEWUI_SELSOFT_H__
13#define __MEWUI_SELSOFT_H__
12#ifndef __UI_SELSOFT_H__
13#define __UI_SELSOFT_H__
1414
1515#include "ui/custmenu.h"
1616
r253176r253177
109109bool has_multiple_bios(const game_driver *driver, std::vector<s_bios> &biosname);
110110
111111
112#endif /* __MEWUI_SELSOFT_H__ */
112#endif /* __UI_SELSOFT_H__ */
trunk/src/emu/ui/sndmenu.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/*********************************************************************
44
5    mewui/sndmenu.cpp
5    ui/sndmenu.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99*********************************************************************/
1010
trunk/src/emu/ui/sndmenu.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/sndmenu.h
5    ui/sndmenu.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_SNDMENU_H__
14#define __MEWUI_SNDMENU_H__
13#ifndef __UI_SNDMENU_H__
14#define __UI_SNDMENU_H__
1515
1616//-------------------------------------------------
1717//  class sound options menu
r253176r253177
3939   bool              m_samples, m_sound;
4040};
4141
42#endif /* __MEWUI_SNDMENU_H__ */
42#endif /* __UI_SNDMENU_H__ */
trunk/src/emu/ui/utils.cpp
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/utils.cpp
5    ui/utils.cpp
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
trunk/src/emu/ui/utils.h
r253176r253177
22// copyright-holders:Dankan1890
33/***************************************************************************
44
5    mewui/utils.h
5    ui/utils.h
66
7    Internal MEWUI user interface.
7    Internal UI user interface.
88
99***************************************************************************/
1010
1111#pragma once
1212
13#ifndef __MEWUI_UTILS_H__
14#define __MEWUI_UTILS_H__
13#ifndef __UI_UTILS_H__
14#define __UI_UTILS_H__
1515
1616#include "osdepend.h"
1717#include "render.h"
r253176r253177
364364   global_free_array(jpg_buffer);
365365}
366366
367#endif /* __MEWUI_UTILS_H__ */
367#endif /* __UI_UTILS_H__ */


Previous 199869 Revisions Next


© 1997-2024 The MAME Team