3 static const GUID g_mainmenu_group_id = { 0x44963e7a, 0x4b2a, 0x4588, { 0xb0, 0x17, 0xa8, 0x69, 0x18, 0xcb, 0x8a, 0xa5 } };
20 static const GUID guid_test = { 0x7c4726df, 0x3b2d, 0x4c7c, { 0xad, 0xe8, 0x43, 0xd8, 0x46, 0xbe, 0xce, 0xa8 } };
21 static const GUID guid_playbackstate = { 0xbd880c51, 0xf0cc, 0x473f, { 0x9d, 0x14, 0xa6, 0x6e, 0x8c, 0xed, 0x25, 0xae } };
void get_name(t_uint32 p_index, pfc::string_base &p_out)
Retrieves name of item, for list of commands to assign keyboard shortcuts to etc. ...
static mainmenu_commands_factory_t< mainmenu_commands_sample > g_mainmenu_commands_sample_factory
t_uint32 get_command_count()
Retrieves number of implemented commands. Index parameter of other methods must be in 0...
bool get_description(t_uint32 p_index, pfc::string_base &p_out)
Retrieves item's description for statusbar etc.
void RunPlaybackStateDemo()
GUID get_parent()
Retrieves GUID of owning menu group.
static const GUID g_mainmenu_group_id
void execute(t_uint32 p_index, service_ptr_t< service_base > p_callback)
Executes the command. p_callback parameter is reserved for future use and should be ignored / set to ...
static mainmenu_group_popup_factory g_mainmenu_group(g_mainmenu_group_id, mainmenu_groups::file, mainmenu_commands::sort_priority_dontcare,"Sample component")
GUID get_command(t_uint32 p_index)
Retrieves GUID of specified command.