#ifndef _plat_wxwidgets__menu_loadrom__hpp__included__ #define _plat_wxwidgets__menu_loadrom__hpp__included__ #include #include #include "interface/romtype.hpp" #include "core/dispatch.hpp" #include class loadrom_menu : public wxMenu { public: loadrom_menu(wxWindow* win, int wxid_low, int wxid_high, std::function cb); void on_select(wxCommandEvent& e); void update(); private: wxWindow* pwin; std::map entries; std::map items; int wxid_range_low; int wxid_range_high; std::function callback; struct dispatch::target<> corelistener; }; #endif