Audacity 3.2.0
|
#include "CommonCommandFlags.h"
#include <wx/frame.h>
#include "AudioIO.h"
#include "Clipboard.h"
#include "LabelTrack.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "ProjectHistory.h"
#include "ProjectWindows.h"
#include "SyncLock.h"
#include "UndoManager.h"
#include "ViewInfo.h"
#include "WaveTrack.h"
#include "commands/CommandManagerWindowClasses.h"
Go to the source code of this file.
Variables | |
const CommandFlagOptions | noiseReductionOptions |
const ReservedCommandFlag & AnyTracksSelectedFlag | ( | ) |
Definition at line 179 of file CommonCommandFlags.cpp.
References AnyTracksSelectedPred(), flag, and XO().
Referenced by anonymous_namespace{TrackMenus.cpp}::TracksMenu().
bool AnyTracksSelectedPred | ( | const AudacityProject & | project | ) |
Definition at line 54 of file CommonCommandFlags.cpp.
References TrackList::Get(), project, and TrackList::Selected().
Referenced by AnyTracksSelectedFlag().
const ReservedCommandFlag & AudioIOBusyFlag | ( | ) |
Definition at line 199 of file CommonCommandFlags.cpp.
References AudioIOBusyPred(), flag, and CommandFlagOptions::QuickTest().
Referenced by anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), and anonymous_namespace{LabelMenus.cpp}::LabelEditMenus().
bool AudioIOBusyPred | ( | const AudacityProject & | project | ) |
Definition at line 60 of file CommonCommandFlags.cpp.
References AudioIOBase::Get(), ProjectAudioIO::Get(), AudioIOBase::IsAudioTokenActive(), and project.
Referenced by AudioIOBusyFlag(), AudioIONotBusyFlag(), and anonymous_namespace{EditMenus.cpp}::JoinClipsAvailableFlag().
const ReservedCommandFlag & AudioIONotBusyFlag | ( | ) |
Definition at line 118 of file CommonCommandFlags.cpp.
References AudioIOBusyPred(), flag, project, and XO().
Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{SelectMenus.cpp}::CursorMenu(), ProjectAudioManager::DoRecord(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{DeviceToolBar.cpp}::ExtraDeviceMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), PluginMenuItems(), DEFINE_VERSION_CHECK::RegisterMenuItems(), anonymous_namespace{NyqBench.cpp}::RegisterMenuItems(), anonymous_namespace{PluginMenus.cpp}::ToolsMenu(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), and anonymous_namespace{TransportMenus.cpp}::TransportMenu().
const ReservedCommandFlag & CaptureNotBusyFlag | ( | ) |
Definition at line 204 of file CommonCommandFlags.cpp.
References flag, and AudioIO::Get().
Referenced by anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedItems(), anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), anonymous_namespace{Scrubbing.cpp}::KeyboardScrubbingItems(), and anonymous_namespace{Scrubbing.cpp}::menuItems().
const CommandFlagOptions & cutCopyOptions | ( | ) |
Definition at line 73 of file CommonCommandFlags.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, and XO().
Referenced by TimeSelectedFlag().
const ReservedCommandFlag & EditableTracksSelectedFlag | ( | ) |
Definition at line 171 of file CommonCommandFlags.cpp.
References EditableTracksSelectedPred(), flag, and XO().
Referenced by anonymous_namespace{SelectMenus.cpp}::CursorMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), SelectUtilities::SelectAllIfNone(), SelectUtilities::SelectAllIfNoneAndAllowed(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), and anonymous_namespace{TrackMenus.cpp}::TracksMenu().
bool EditableTracksSelectedPred | ( | const AudacityProject & | project | ) |
Definition at line 45 of file CommonCommandFlags.cpp.
References TrackList::Get(), project, and TrackList::Selected().
Referenced by anonymous_namespace{EditMenus.cpp}::CutCopyAvailableFlag(), and EditableTracksSelectedFlag().
const ReservedCommandFlag & IsNotSyncLockedFlag | ( | ) |
Definition at line 260 of file CommonCommandFlags.cpp.
References flag, SyncLockState::Get(), SyncLockState::IsSyncLocked(), and project.
const ReservedCommandFlag & IsSyncLockedFlag | ( | ) |
Definition at line 266 of file CommonCommandFlags.cpp.
References flag, SyncLockState::Get(), SyncLockState::IsSyncLocked(), and project.
Referenced by anonymous_namespace{SelectMenus.cpp}::SelectMenu().
const ReservedCommandFlag & LabelTracksExistFlag | ( | ) |
Definition at line 215 of file CommonCommandFlags.cpp.
References flag, TrackList::Get(), project, and TrackList::Selected().
Referenced by anonymous_namespace{FileMenus.cpp}::FileMenu().
const ReservedCommandFlag & NoAutoSelect | ( | ) |
Definition at line 293 of file CommonCommandFlags.cpp.
References flag.
Referenced by anonymous_namespace{EditMenus.cpp}::EditMenu(), and anonymous_namespace{EditMenus.cpp}::ExtraEditMenu().
const ReservedCommandFlag & NoiseReductionTimeSelectedFlag | ( | ) |
Definition at line 144 of file CommonCommandFlags.cpp.
References flag, noiseReductionOptions, and TimeSelectedPred().
Referenced by anonymous_namespace{MenuHelper.cpp}::FixBatchFlags().
const ReservedCommandFlag & NotMinimizedFlag | ( | ) |
Definition at line 272 of file CommonCommandFlags.cpp.
References FindProjectFrame(), flag, project, and CommandFlagOptions::QuickTest().
const ReservedCommandFlag & PausedFlag | ( | ) |
Definition at line 286 of file CommonCommandFlags.cpp.
References flag, AudioIOBase::Get(), AudioIOBase::IsPaused(), and CommandFlagOptions::QuickTest().
const ReservedCommandFlag & RedoAvailableFlag | ( | ) |
Definition at line 228 of file CommonCommandFlags.cpp.
References flag, ProjectHistory::Get(), project, and ProjectHistory::RedoAvailable().
Referenced by anonymous_namespace{EditMenus.cpp}::EditMenu().
const ReservedCommandFlag & StereoRequiredFlag | ( | ) |
Definition at line 130 of file CommonCommandFlags.cpp.
References flag, TrackList::Get(), project, TrackList::Selected(), and XO().
Referenced by anonymous_namespace{TrackMenus.cpp}::TracksMenu().
const ReservedCommandFlag & TimeSelectedFlag | ( | ) |
Definition at line 149 of file CommonCommandFlags.cpp.
References cutCopyOptions(), flag, and TimeSelectedPred().
Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{SelectMenus.cpp}::CursorMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), EffectUIHost::OnApply(), and anonymous_namespace{ViewMenus.cpp}::ViewMenu().
bool TimeSelectedPred | ( | const AudacityProject & | project | ) |
Definition at line 66 of file CommonCommandFlags.cpp.
References ViewInfo::Get(), NotifyingSelectedRegion::isPoint(), project, and ViewInfo::selectedRegion.
Referenced by anonymous_namespace{EditMenus.cpp}::CutCopyAvailableFlag(), NoiseReductionTimeSelectedFlag(), and TimeSelectedFlag().
const ReservedCommandFlag & TrackPanelHasFocus | ( | ) |
Definition at line 187 of file CommonCommandFlags.cpp.
References CommandFlagOptions::DisableDefaultMessage(), BasicUI::FindFocus(), flag, and project.
Referenced by anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraFocusMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems(), and anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu().
const ReservedCommandFlag & TracksExistFlag | ( | ) |
Definition at line 164 of file CommonCommandFlags.cpp.
References TrackList::Any(), CommandFlagOptions::DisableDefaultMessage(), flag, TrackList::Get(), and project.
Referenced by anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraFocusMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems(), anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), anonymous_namespace{SpectrumView.cpp}::SpectralSelectionMenu(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), and anonymous_namespace{ViewMenus.cpp}::ViewMenu().
const ReservedCommandFlag & UndoAvailableFlag | ( | ) |
Definition at line 222 of file CommonCommandFlags.cpp.
References flag, ProjectHistory::Get(), project, and ProjectHistory::UndoAvailable().
Referenced by anonymous_namespace{EditMenus.cpp}::EditMenu().
const ReservedCommandFlag & WaveTracksExistFlag | ( | ) |
Definition at line 254 of file CommonCommandFlags.cpp.
References TrackList::Any(), flag, TrackList::Get(), and project.
Referenced by anonymous_namespace{ClipMenus.cpp}::ClipCursorItems(), anonymous_namespace{ClipMenus.cpp}::ClipSelectMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), and anonymous_namespace{TransportMenus.cpp}::TransportMenu().
const ReservedCommandFlag & WaveTracksSelectedFlag | ( | ) |
Definition at line 154 of file CommonCommandFlags.cpp.
References flag, TrackList::Get(), project, TrackList::Selected(), and XO().
Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), EffectUIHost::OnApply(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), and anonymous_namespace{TrackMenus.cpp}::TracksMenu().
const ReservedCommandFlag & ZoomInAvailableFlag | ( | ) |
Definition at line 234 of file CommonCommandFlags.cpp.
References TrackList::Any(), flag, ViewInfo::Get(), TrackList::Get(), project, and ZoomInfo::ZoomInAvailable().
Referenced by anonymous_namespace{ViewMenus.cpp}::ViewMenu().
const ReservedCommandFlag & ZoomOutAvailableFlag | ( | ) |
Definition at line 244 of file CommonCommandFlags.cpp.
References TrackList::Any(), flag, ViewInfo::Get(), TrackList::Get(), project, and ZoomInfo::ZoomOutAvailable().
Referenced by anonymous_namespace{ViewMenus.cpp}::ViewMenu().
const CommandFlagOptions noiseReductionOptions |
Definition at line 99 of file CommonCommandFlags.cpp.
Referenced by NoiseReductionTimeSelectedFlag().