Audacity  3.0.3
Namespaces | Functions | Variables
ControlToolBar.cpp File Reference
#include "ControlToolBar.h"
#include <algorithm>
#include <cfloat>
#include <wx/wxprec.h>
#include <wx/setup.h>
#include <wx/app.h>
#include <wx/dc.h>
#include <wx/event.h>
#include <wx/image.h>
#include <wx/intl.h>
#include <wx/sizer.h>
#include <wx/statusbr.h>
#include <wx/timer.h>
#include <wx/tooltip.h>
#include <wx/datetime.h>
#include "../AColor.h"
#include "../AllThemeResources.h"
#include "../AudioIO.h"
#include "../ImageManipulation.h"
#include "Prefs.h"
#include "../Project.h"
#include "../ProjectAudioIO.h"
#include "../ProjectAudioManager.h"
#include "../ProjectSettings.h"
#include "../ProjectStatus.h"
#include "../ProjectWindow.h"
#include "../Track.h"
#include "../widgets/AButton.h"
#include "../FileNames.h"
#include "../tracks/ui/Scrubbing.h"
#include "../toolbars/ToolManager.h"
Include dependency graph for ControlToolBar.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{ControlToolBar.cpp}
 

Functions

 IMPLEMENT_CLASS (ControlToolBar, ToolBar)
 

Variables

static const TranslatableString sStatePlay = XO("Playing")
 Methods for ControlToolBar. More...
 
static const TranslatableString sStateStop = XO("Stopped")
 
static const TranslatableString sStateRecord = XO("Recording")
 
static ProjectStatus::RegisteredStatusWidthFunction registeredStatusWidthFunction
 
static RegisteredToolbarFactory factory
 
AttachedToolBarMenuItem anonymous_namespace{ControlToolBar.cpp}::sAttachment
 

Function Documentation

◆ IMPLEMENT_CLASS()

IMPLEMENT_CLASS ( ControlToolBar  ,
ToolBar   
)

Variable Documentation

◆ factory

RegisteredToolbarFactory factory
static
Initial value:
[]( AudacityProject &project ){
return ToolBar::Holder{ safenew ControlToolBar{ project } }; }
}

Definition at line 806 of file ControlToolBar.cpp.

Referenced by ComputedPopupMenuTable< WaveTrackMenuTable, WaveTrackPopupMenuTable >::Append(), Registry::InlineGroupItem< ToolbarMenuVisitor >::AppendOne(), Sequence::Blockify(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Build(), CommandBuilder::BuildCommand(), ComputedPopupMenuTable< WaveTrackMenuTable, WaveTrackPopupMenuTable >::Computed(), PopupMenuTable::Computed(), ToolManager::CreateWindows(), Effect::Delegate(), Sequence::Delete(), Sequence::DoAppend(), Effect::DoEffect(), BuiltinCommandsModule::DoRegistration(), BuiltinEffectsModule::DoRegistration(), anonymous_namespace{PrefsPanel.cpp}::PrefsItemVisitor::EndGroup(), ProjectFileIORegistry::Entry::Entry(), GStreamerImportPlugin::GetSupportedExtensions(), GStreamerAutoplugSelectCallback(), Sequence::HandleXMLTag(), Sequence::InsertSilence(), SampleBlockFactory::New(), EffectUIHost::OnMenu(), PrefsDialog::PrefsDialog(), EffectNoiseReduction::Worker::Process(), EffectManager::PromptUser(), Exporter::RegisteredExportPlugin::RegisteredExportPlugin(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::RegisteredFactory::RegisteredFactory(), PrefsPanel::Registration::Registration(), Sequence::SetSamples(), AudioUnitEffect::ShowInterface(), Effect::ShowInterface(), LadspaEffect::ShowInterface(), LV2Effect::ShowInterface(), NyquistEffect::ShowInterface(), VSTEffect::ShowInterface(), and WaveClip::WaveClip().

◆ registeredStatusWidthFunction

ProjectStatus::RegisteredStatusWidthFunction registeredStatusWidthFunction
static
Initial value:
{
{
for ( auto pString :
{
strings.push_back(
XO("%s Paused.").Format(*pString) );
}
return { std::move( strings ), 30 };
}
return {};
}
}

Definition at line 690 of file ControlToolBar.cpp.

◆ sStatePlay

const TranslatableString sStatePlay = XO("Playing")
static

Methods for ControlToolBar.

Definition at line 96 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateRecord

const TranslatableString sStateRecord = XO("Recording")
static

Definition at line 104 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateStop

const TranslatableString sStateStop = XO("Stopped")
static

Definition at line 100 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

field
#define field(n, t)
Definition: ImportAUP.cpp:166
sStateStop
static const TranslatableString sStateStop
Definition: ControlToolBar.cpp:100
TranslatableStrings
std::vector< TranslatableString > TranslatableStrings
Definition: TranslatableString.h:295
sStateRecord
static const TranslatableString sStateRecord
Definition: ControlToolBar.cpp:104
StatusBarField
StatusBarField
Definition: ProjectStatus.h:24
stateStatusBarField
@ stateStatusBarField
Definition: ProjectStatus.h:25
XO
#define XO(s)
Definition: Internat.h:31
ToolBar::Holder
wxWindowPtr< ToolBar > Holder
Definition: ToolBar.h:102
TransportBarID
@ TransportBarID
Definition: ToolBar.h:72
sStatePlay
static const TranslatableString sStatePlay
Methods for ControlToolBar.
Definition: ControlToolBar.cpp:96
ProjectStatus::StatusWidthResult
std::pair< std::vector< TranslatableString >, unsigned > StatusWidthResult
Definition: ProjectStatus.h:53
ControlToolBar
A ToolBar that has the main Transport buttons.
Definition: ControlToolBar.h:32
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:113
safenew
#define safenew
Definition: MemoryX.h:10