Audacity 3.2.0
|
#include <CommandManager.h>
Public Types | |
using | CheckFn = std::function< bool(AudacityProject &) > |
Public Member Functions | |
virtual | ~CommandListEntry () |
virtual void | UpdateCheckmark (AudacityProject &project) |
Default implementation does nothing. More... | |
virtual void | Modify (const TranslatableString &newLabel) |
Default implementation simply assigns this->label More... | |
virtual bool | GetEnabled () const |
Default implementation simply returns this->enabled More... | |
virtual void | Check (bool checked) |
Default implementation does nothing. More... | |
virtual void | Enable (bool enabled) |
Default implementation simply assigns this->enabled More... | |
virtual void | EnableMultiItem (bool enabled) |
Default implementation simply assigns this->enabled More... | |
wxString | FormatLabelForMenu () const |
Static Public Member Functions | |
static wxString | FormatLabelForMenu (const TranslatableString &translatableLabel, const NormalizedKeyString &keyStr) |
Public Attributes | |
int | id |
CommandID | name |
TranslatableString | longLabel |
NormalizedKeyString | key |
NormalizedKeyString | defaultKey |
TranslatableString | label |
TranslatableString | labelPrefix |
TranslatableString | labelTop |
CommandHandlerFinder | finder |
CommandFunctorPointer | callback |
CommandParameter | parameter |
CheckFn | checkmarkFn |
bool | multi |
int | index |
int | count |
bool | enabled |
bool | skipKeydown |
bool | wantKeyup |
bool | allowDup |
bool | isGlobal |
bool | isOccult |
bool | isEffect |
bool | excludeFromMacros |
CommandFlag | flags |
bool | useStrictFlags { false } |
Definition at line 374 of file CommandManager.h.
using CommandManager::CommandListEntry::CheckFn = std::function< bool(AudacityProject&) > |
Definition at line 412 of file CommandManager.h.
|
virtualdefault |
|
virtual |
Default implementation does nothing.
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 727 of file CommandManager.cpp.
|
virtual |
Default implementation simply assigns this->enabled
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 653 of file CommandManager.cpp.
|
virtual |
Default implementation simply assigns this->enabled
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 658 of file CommandManager.cpp.
|
inline |
Definition at line 395 of file CommandManager.h.
Referenced by CommandManager::FormatLabelForMenu().
|
static |
Definition at line 614 of file CommandManager.cpp.
References Identifier::GET(), key, label, TranslatableString::Translation(), and wxT().
|
virtual |
Default implementation simply returns this->enabled
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 710 of file CommandManager.cpp.
|
virtual |
Default implementation simply assigns this->label
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 739 of file CommandManager.cpp.
References label.
|
virtual |
Default implementation does nothing.
Reimplemented in anonymous_namespace{MenuCreator.cpp}::MenuItemVisitor::CommandListEntryEx.
Definition at line 345 of file CommandManager.cpp.
bool CommandManager::CommandListEntry::allowDup |
Definition at line 421 of file CommandManager.h.
CommandFunctorPointer CommandManager::CommandListEntry::callback |
Definition at line 408 of file CommandManager.h.
CheckFn CommandManager::CommandListEntry::checkmarkFn |
Definition at line 413 of file CommandManager.h.
int CommandManager::CommandListEntry::count |
Definition at line 417 of file CommandManager.h.
NormalizedKeyString CommandManager::CommandListEntry::defaultKey |
Definition at line 403 of file CommandManager.h.
bool CommandManager::CommandListEntry::enabled |
Definition at line 418 of file CommandManager.h.
bool CommandManager::CommandListEntry::excludeFromMacros |
Definition at line 425 of file CommandManager.h.
CommandHandlerFinder CommandManager::CommandListEntry::finder |
Definition at line 407 of file CommandManager.h.
CommandFlag CommandManager::CommandListEntry::flags |
Definition at line 426 of file CommandManager.h.
int CommandManager::CommandListEntry::id |
Definition at line 399 of file CommandManager.h.
int CommandManager::CommandListEntry::index |
Definition at line 416 of file CommandManager.h.
bool CommandManager::CommandListEntry::isEffect |
Definition at line 424 of file CommandManager.h.
bool CommandManager::CommandListEntry::isGlobal |
Definition at line 422 of file CommandManager.h.
bool CommandManager::CommandListEntry::isOccult |
Definition at line 423 of file CommandManager.h.
NormalizedKeyString CommandManager::CommandListEntry::key |
Definition at line 402 of file CommandManager.h.
TranslatableString CommandManager::CommandListEntry::label |
Definition at line 404 of file CommandManager.h.
Referenced by CommandManager::Populator::NewIdentifier().
TranslatableString CommandManager::CommandListEntry::labelPrefix |
Definition at line 405 of file CommandManager.h.
TranslatableString CommandManager::CommandListEntry::labelTop |
Definition at line 406 of file CommandManager.h.
TranslatableString CommandManager::CommandListEntry::longLabel |
Definition at line 401 of file CommandManager.h.
bool CommandManager::CommandListEntry::multi |
Definition at line 415 of file CommandManager.h.
CommandID CommandManager::CommandListEntry::name |
Definition at line 400 of file CommandManager.h.
CommandParameter CommandManager::CommandListEntry::parameter |
Definition at line 409 of file CommandManager.h.
bool CommandManager::CommandListEntry::skipKeydown |
Definition at line 419 of file CommandManager.h.
bool CommandManager::CommandListEntry::useStrictFlags { false } |
Definition at line 427 of file CommandManager.h.
bool CommandManager::CommandListEntry::wantKeyup |
Definition at line 420 of file CommandManager.h.