CODE
Edit/Clear
Edit/Redo
Edit/Selection/Crop
Edit/Sort/Sort by...
File/Exit
etc...
Edit/Redo
Edit/Selection/Crop
Edit/Sort/Sort by...
File/Exit
etc...
So I'm iterating over commands:
CODE
pfc::string8_fastalloc name;
service_enum_t<mainmenu_commands> e; service_ptr_t<mainmenu_commands> ptr;
while(e.next(ptr)) {
const t_uint32 total = ptr->get_command_count();
for (t_uint32 walk = 0; walk < total; ++walk) { ptr->get_name(walk, name); ... }
}
service_enum_t<mainmenu_commands> e; service_ptr_t<mainmenu_commands> ptr;
while(e.next(ptr)) {
const t_uint32 total = ptr->get_command_count();
for (t_uint32 walk = 0; walk < total; ++walk) { ptr->get_name(walk, name); ... }
}
In addition to command's name (e.g. "Randomize"), I would like to retrieve its "path" (e.g. "Edit/Sort/Randomize"). Is there some simple way to achieve this, or do I have to construct the paths by myself?