![]() |
Audacity 3.2.0
|
MenuCreator is responsible for creating the main menu bar. More...
#include <Menus.h>
Public Types | |
enum | { repeattypenone = 0 , repeattypeplugin = 1 , repeattypeunique = 2 , repeattypeapplymacro = 3 } |
Public Member Functions | |
MenuCreator () | |
~MenuCreator () | |
void | CreateMenusAndCommands (AudacityProject &project) |
void | RebuildMenuBar (AudacityProject &project) |
Static Public Member Functions | |
static void | RebuildAllMenuBars () |
Public Attributes | |
CommandFlag | mLastFlags |
PluginID | mLastGenerator {} |
PluginID | mLastEffect {} |
PluginID | mLastAnalyzer {} |
int | mLastAnalyzerRegistration |
int | mLastAnalyzerRegisteredId |
PluginID | mLastTool {} |
int | mLastToolRegistration |
int | mLastToolRegisteredId |
unsigned | mRepeatGeneratorFlags |
unsigned | mRepeatEffectFlags |
unsigned | mRepeatAnalyzerFlags |
unsigned | mRepeatToolFlags |
MenuCreator is responsible for creating the main menu bar.
anonymous enum |
Enumerator | |
---|---|
repeattypenone | |
repeattypeplugin | |
repeattypeunique | |
repeattypeapplymacro |
Definition at line 59 of file Menus.h.
MenuCreator::MenuCreator | ( | ) |
Definition at line 49 of file Menus.cpp.
References mLastAnalyzerRegistration, mLastToolRegistration, mRepeatAnalyzerFlags, mRepeatEffectFlags, mRepeatGeneratorFlags, mRepeatToolFlags, and repeattypenone.
void MenuCreator::CreateMenusAndCommands | ( | AudacityProject & | project | ) |
Definition at line 370 of file Menus.cpp.
References AlwaysEnabledFlag, CommandManager::Get(), GetProjectFrame(), MenuPathStart, project, MenuManager::Visit(), and wxT().
Referenced by ProjectManager::New().
|
static |
The following method moves to the previous track selecting and unselecting depending if you are on the start of a block or not.
Definition at line 614 of file Menus.cpp.
References MenuManager::Get(), GetProjectFrame(), and RebuildMenuBar().
Referenced by anonymous_namespace{PluginMenus.cpp}::DoManagePluginsMenu(), AudacityApp::InitPart2(), ViewActions::Handler::OnAdvancedVZoom(), IncompatiblePluginsDialog::OnPluginManagerClicked(), ViewActions::Handler::OnShowExtraMenus(), anonymous_namespace{SpectrumView.cpp}::SpectrogramSettingsHandler::OnSpectrogramSettings(), ProjectFileManager::OpenFile(), EffectsPrefs::PopulateOrExchange(), and CommandManager::RemoveDuplicateShortcuts().
void MenuCreator::RebuildMenuBar | ( | AudacityProject & | project | ) |
Definition at line 486 of file Menus.cpp.
References BasicUI::FindFocus(), CommandManager::Get(), GetProjectFrame(), project, and CommandManager::PurgeData().
Referenced by DoReloadPreferences(), anonymous_namespace{EditMenus.cpp}::OnPreferences(), RebuildAllMenuBars(), and MacrosWindow::UpdateMenus().
PluginID MenuCreator::mLastAnalyzer {} |
Definition at line 53 of file Menus.h.
Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), and anonymous_namespace{PluginMenus.cpp}::HasLastAnalyzerFlag().
int MenuCreator::mLastAnalyzerRegistration |
Definition at line 54 of file Menus.h.
Referenced by anonymous_namespace{PluginMenus.cpp}::HasLastAnalyzerFlag(), and MenuCreator().
PluginID MenuCreator::mLastEffect {} |
Definition at line 52 of file Menus.h.
Referenced by anonymous_namespace{PluginMenus.cpp}::EffectMenu(), and anonymous_namespace{PluginMenus.cpp}::HasLastEffectFlag().
CommandFlag MenuCreator::mLastFlags |
PluginID MenuCreator::mLastGenerator {} |
Definition at line 51 of file Menus.h.
Referenced by anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), and anonymous_namespace{PluginMenus.cpp}::HasLastGeneratorFlag().
PluginID MenuCreator::mLastTool {} |
Definition at line 56 of file Menus.h.
Referenced by PluginMenuItems().
int MenuCreator::mLastToolRegistration |
Definition at line 57 of file Menus.h.
Referenced by MenuCreator().
unsigned MenuCreator::mRepeatAnalyzerFlags |
Definition at line 67 of file Menus.h.
Referenced by MenuCreator().
unsigned MenuCreator::mRepeatEffectFlags |
Definition at line 66 of file Menus.h.
Referenced by MenuCreator().
unsigned MenuCreator::mRepeatGeneratorFlags |
Definition at line 65 of file Menus.h.
Referenced by MenuCreator().
unsigned MenuCreator::mRepeatToolFlags |
Definition at line 68 of file Menus.h.
Referenced by MenuCreator().