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 "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.

Namespaces

namespace  anonymous_namespace{ControlToolBar.cpp}
 Methods for ControlToolBar.
 

Functions

 IMPLEMENT_CLASS (ControlToolBar, ToolBar)
 
AButtonanonymous_namespace{ControlToolBar.cpp}::MakeControlToolBarButton (wxWindow *parent, wxWindowID id, const TranslatableString &label, const wxImage &iconUp, const wxImage &iconDown, const wxImage &iconDisabled)
 

Variables

const TranslatableString anonymous_namespace{ControlToolBar.cpp}::sStatePlay = XO("Playing")
 
const TranslatableString anonymous_namespace{ControlToolBar.cpp}::sStateStop = XO("Stopped")
 
const TranslatableString anonymous_namespace{ControlToolBar.cpp}::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:
{
}
#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:77

Definition at line 834 of file ControlToolBar.cpp.

◆ registeredStatusWidthFunction

ProjectStatus::RegisteredStatusWidthFunction registeredStatusWidthFunction
static
Initial value:
{
{
if ( field == StateStatusBarField() ) {
for ( auto pString :
{
strings.push_back(
XO("%s Paused.").Format(*pString) );
}
return { std::move( strings ), 30 };
}
return {};
}
}
XO("Cut/Copy/Paste")
#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 722 of file ControlToolBar.cpp.