Audacity  3.0.3
Variables
anonymous_namespace{CommandManager.cpp} Namespace Reference

Variables

constexpr auto JournalCode = wxT("CM")
 
Journal::RegisteredCommand sCommand
 

Variable Documentation

◆ JournalCode

constexpr auto anonymous_namespace{CommandManager.cpp}::JournalCode = wxT("CM")
constexpr

Definition at line 1216 of file CommandManager.cpp.

Referenced by CommandManager::HandleCommandEntry().

◆ sCommand

Journal::RegisteredCommand anonymous_namespace{CommandManager.cpp}::sCommand
Initial value:
[]( const wxArrayStringEx &fields )
{
bool handled = false;
if ( fields.size() == 2 ) {
if (auto project = GetActiveProject().lock()) {
auto pManager = &CommandManager::Get( *project );
auto flags = MenuManager::Get( *project ).GetUpdateFlags();
const CommandContext context( *project );
auto &command = fields[1];
handled =
pManager->HandleTextualCommand( command, context, flags, false );
}
}
return handled;
}
}

Definition at line 1219 of file CommandManager.cpp.

GetActiveProject
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
Definition: ActiveProject.cpp:24
wxArrayStringEx
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
Definition: wxArrayStringEx.h:18
anonymous_namespace{CommandManager.cpp}::JournalCode
constexpr auto JournalCode
Definition: CommandManager.cpp:1216
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition: CommandContext.h:34
MenuManager::Get
static MenuManager & Get(AudacityProject &project)
Definition: Menus.cpp:70
CommandManager::Get
static CommandManager & Get(AudacityProject &project)
Definition: CommandManager.cpp:207
MenuManager::GetUpdateFlags
CommandFlag GetUpdateFlags(bool checkActive=false) const
Definition: Menus.cpp:545