Audacity  3.0.3
Classes | Macros | Functions | Variables
CommandManager.cpp File Reference
#include "CommandManager.h"
#include "CommandContext.h"
#include "CommandManagerWindowClasses.h"
#include <wx/defs.h>
#include <wx/evtloop.h>
#include <wx/frame.h>
#include <wx/hash.h>
#include <wx/intl.h>
#include <wx/log.h>
#include <wx/menu.h>
#include <wx/tokenzr.h>
#include "../Menus.h"
#include "../Project.h"
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/HelpSystem.h"
#include "../KeyboardCapture.h"
Include dependency graph for CommandManager.cpp:

Go to the source code of this file.

Classes

class  MenuBarListEntry
 MenuBarListEntry is a structure used by CommandManager. More...
 
class  SubMenuListEntry
 SubMenuListEntry is a structure used by CommandManager. More...
 
class  CommandListEntry
 CommandListEntry is a structure used by CommandManager. More...
 
struct  InstallHandlers
 

Macros

#define MAX_MENU_LEN   1000
 
#define MAX_SUBMENU_LEN   1000
 
#define COMMAND   XO("Command")
 

Functions

static CommandManager::MenuHooksMenuHook ()
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory key
 
static struct InstallHandlers installHandlers
 

Macro Definition Documentation

◆ COMMAND

#define COMMAND   XO("Command")

Definition at line 113 of file CommandManager.cpp.

◆ MAX_MENU_LEN

#define MAX_MENU_LEN   1000

Definition at line 109 of file CommandManager.cpp.

◆ MAX_SUBMENU_LEN

#define MAX_SUBMENU_LEN   1000

Definition at line 110 of file CommandManager.cpp.

Function Documentation

◆ sMenuHook()

static CommandManager::MenuHook& sMenuHook ( )
static

Definition at line 212 of file CommandManager.cpp.

213 {
214  static CommandManager::MenuHook theHook;
215  return theHook;
216 }

Referenced by CommandManager::HandleMenuID(), and CommandManager::SetMenuHook().

Here is the caller graph for this function:

Variable Documentation

◆ installHandlers

struct InstallHandlers installHandlers
static

◆ key

Initial value:
{
return std::make_unique<CommandManager>();
}
}

Definition at line 196 of file CommandManager.cpp.

Referenced by LV2Effect::AddOption(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Assign(), anonymous_namespace{Registry.cpp}::BadPath(), CommandManager::Options::CheckTest(), ChoiceSetting::ChoiceSetting(), KeyConfigPrefs::Commit(), ShuttleSetAutomation::CouldGet(), ShuttleGetAutomation::Define(), ShuttleSetAutomation::Define(), ShuttleGetDefinition::Define(), ShuttleGetAutomation::DefineEnum(), ShuttleSetAutomation::DefineEnum(), ShuttleGetDefinition::DefineEnum(), FileConfig::DeleteEntry(), FileConfig::DeleteGroup(), VSTEffectsModule::DiscoverPluginsAtPath(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::DoFind(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::DoGet(), CommandParameters::DoReadDouble(), CommandParameters::DoReadLong(), FileConfig::DoReadLong(), CommandParameters::DoReadString(), FileConfig::DoReadString(), CommandParameters::DoWriteDouble(), CommandParameters::DoWriteLong(), FileConfig::DoWriteLong(), CommandParameters::DoWriteString(), FileConfig::DoWriteString(), EnumSettingBase::EnumSettingBase(), anonymous_namespace{ExtraMenus.cpp}::ExtraMiscItems(), EventMonitor::FilterEvent(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Find(), VampEffectsModule::FindPlugin(), CommandManager::FormatLabelWithDisabledAccel(), anonymous_namespace{Registry.cpp}::ItemOrdering::Get(), CommandManager::Get(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), VampEffect::GetAutomationParameters(), PluginManager::GetConfig(), KeyView::GetIndexByKey(), KeyView::GetNameByKey(), CommandParameters::GetParameters(), PluginManager::GetPrivateConfig(), Effect::GetPrivateConfig(), PluginManager::GetSharedConfig(), Effect::GetSharedConfig(), CommandManager::HandleXMLTag(), AudacityApp::InitPart2(), InstallHandlers::InstallHandlers(), anonymous_namespace{Registry.cpp}::ItemOrdering::ItemOrdering(), MeterPanel::Key(), KeyEventToKeyString(), CommandManager::Options::MakeCheckFn(), KeyConfigPrefs::NameFromKey(), NormalizedKeyString::NormalizedKeyString(), KeyConfigPrefs::OnFilterKeyDown(), Registry::OrderingPreferenceInitializer::operator()(), PluginManager::PrivateKey(), CommandParameters::ReadAndVerify(), CommandParameters::ReadEnum(), CommandParameters::ReadFloat(), PluginManager::RemovePrivateConfig(), Effect::RemovePrivateConfig(), PluginManager::RemoveSharedConfig(), Effect::RemoveSharedConfig(), anonymous_namespace{Registry.cpp}::ReportConflictingPlacements(), anonymous_namespace{Registry.cpp}::ReportGroupGroupCollision(), anonymous_namespace{Registry.cpp}::ReportItemItemCollision(), set_dict_int(), VampEffect::SetAutomationParameters(), PluginManager::SetConfig(), KeyView::SetKey(), KeyView::SetKeyByName(), KeyConfigPrefs::SetKeyForSelected(), CommandManager::SetKeyFromIndex(), CommandManager::SetKeyFromName(), CommandParameters::SetParameters(), PluginManager::SetPrivateConfig(), Effect::SetPrivateConfig(), PluginManager::SetSharedConfig(), Effect::SetSharedConfig(), PluginManager::SharedKey(), ShowWarningDialog(), CommandParameters::WriteEnum(), and CommandParameters::WriteFloat().

CommandManager::MenuHook
std::function< bool(const CommandID &) > MenuHook
Definition: CommandManager.h:66
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:112