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/sizer.h>
#include <wx/statusbr.h>
#include <wx/tooltip.h>
#include <wx/datetime.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "AudioIO.h"
#include "ImageManipulation.h"
#include "PlayableTrack.h"
#include "Prefs.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "../ProjectAudioManager.h"
#include "ProjectStatus.h"
#include "../ProjectWindow.h"
#include "../SelectUtilities.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.


namespace  anonymous_namespace{ControlToolBar.cpp}


 IMPLEMENT_CLASS (ControlToolBar, ToolBar)


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 ( ControlToolBar  ,

Variable Documentation

◆ factory

RegisteredToolbarFactory factory
Initial value:
#define safenew
Definition: MemoryX.h:10
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A ToolBar that has the main Transport buttons.
wxWindowPtr< ToolBar > Holder
Definition: ToolBar.h:78

Definition at line 787 of file ControlToolBar.cpp.

◆ registeredStatusWidthFunction

ProjectStatus::RegisteredStatusWidthFunction registeredStatusWidthFunction
Initial value:
if ( field == StateStatusBarField() ) {
for ( auto pString :
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:165
StatusBarField StateStatusBarField()
ID of the first field in the status bar. This filed is used to display playback state.
std::vector< TranslatableString > TranslatableStrings
An explicitly nonlocalized string, not meant for the user to see.
Definition: Identifier.h:22
std::pair< std::vector< TranslatableString >, unsigned > StatusWidthResult

Definition at line 675 of file ControlToolBar.cpp.

◆ sStatePlay

const TranslatableString sStatePlay = XO("Playing")

Methods for ControlToolBar.

Definition at line 92 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateRecord

const TranslatableString sStateRecord = XO("Recording")

Definition at line 100 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateStop

const TranslatableString sStateStop = XO("Stopped")

Definition at line 96 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().