1 #ifndef _plat_wxwidgets__menu_loadrom__hpp__included__
2 #define _plat_wxwidgets__menu_loadrom__hpp__included__
7 #include "interface/romtype.hpp"
8 #include "core/dispatch.hpp"
11 class loadrom_menu
: public wxMenu
14 loadrom_menu(wxWindow
* win
, int wxid_low
, int wxid_high
, std::function
<void(core_type
* name
)> cb
);
15 void on_select(wxCommandEvent
& e
);
19 std::map
<int, core_type
*> entries
;
20 std::map
<int, wxMenuItem
*> items
;
23 std::function
<void(core_type
* name
)> callback
;
24 struct dispatch::target
<> corelistener
;