1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Reorder accel argument and unify two overloads of AddItem

This commit is contained in:
Paul Licameli
2018-10-17 11:42:14 -04:00
parent c376ffb165
commit de4132d66c
3 changed files with 239 additions and 256 deletions

View File

@@ -170,22 +170,13 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
int checkmark = 0,
CommandFlag flags = NoFlagsSpecified);
void AddItem(const wxChar *name,
const wxChar *label,
bool hasDialog,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
CommandFlag flags = NoFlagsSpecified,
bool bIsEffect = false,
const CommandParameter &parameter = CommandParameter{});
void AddItem(const wxChar *name,
const wxChar *label_in,
bool hasDialog,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
const wxChar *accel,
CommandFlag flags = NoFlagsSpecified,
const wxChar *accel = wxT(""),
int checkmark = -1,
bool bIsEffect = false,
const CommandParameter &parameter = CommandParameter{},