1 #ifndef _plat_wxwidgets__menu_branches__hpp__included__
2 #define _plat_wxwidgets__menu_branches__hpp__included__
4 #include "core/dispatch.hpp"
12 class emulator_instance
;
14 class branches_menu
: public wxMenu
17 branches_menu(wxWindow
* win
, emulator_instance
& inst
, int wxid_low
, int wxid_high
);
19 void on_select(wxCommandEvent
& e
);
24 miteminfo(wxMenuItem
* it
, bool ismenu
, wxMenu
* p
)
25 : item(it
), is_menu(ismenu
), parent(p
)
32 void set_disabler(std::function
<void(bool enabled
)> fn
) { disabler_fn
= fn
; }
34 struct dispatch::target
<> branchchange
;
38 std::map
<int, uint64_t> branch_ids
;
39 std::list
<wxMenu
*> menus
;
40 std::list
<miteminfo
> otheritems
;
41 std::function
<void(bool enabled
)> disabler_fn
;
42 emulator_instance
& inst
;