Audacity 3.2.0
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 "../SelectUtilities.h"
#include "Track.h"
#include "ViewInfo.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

namespace  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 } }; }
}
#define safenew
Definition: MemoryX.h:10
@ TransportBarID
Definition: ToolBar.h:72
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
A ToolBar that has the main Transport buttons.
wxWindowPtr< ToolBar > Holder
Definition: ToolBar.h:102

Definition at line 793 of file ControlToolBar.cpp.

◆ registeredStatusWidthFunction

ProjectStatus::RegisteredStatusWidthFunction registeredStatusWidthFunction
static
Initial value:
{
{
for ( auto pString :
{
strings.push_back(
XO("%s Paused.").Format(*pString) );
}
return { std::move( strings ), 30 };
}
return {};
}
}
static const TranslatableString sStatePlay
Methods for ControlToolBar.
static const TranslatableString sStateRecord
static const TranslatableString sStateStop
#define field(n, t)
Definition: ImportAUP.cpp:167
#define XO(s)
Definition: Internat.h:31
StatusBarField
Definition: ProjectStatus.h:24
@ stateStatusBarField
Definition: ProjectStatus.h:25
std::vector< TranslatableString > TranslatableStrings
std::pair< std::vector< TranslatableString >, unsigned > StatusWidthResult
Definition: ProjectStatus.h:49

Definition at line 677 of file ControlToolBar.cpp.

◆ sStatePlay

const TranslatableString sStatePlay = XO("Playing")
static

Methods for ControlToolBar.

Definition at line 99 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateRecord

const TranslatableString sStateRecord = XO("Recording")
static

Definition at line 107 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateStop

const TranslatableString sStateStop = XO("Stopped")
static

Definition at line 103 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().