Audacity 3.2.0
Functions | Variables
anonymous_namespace{ControlToolBar.cpp} Namespace Reference

Methods for ControlToolBar. More...

Functions

AButtonMakeControlToolBarButton (wxWindow *parent, wxWindowID id, const TranslatableString &label, const wxImage &iconUp, const wxImage &iconDown, const wxImage &iconDisabled)
 

Variables

const TranslatableString sStatePlay = XO("Playing")
 
const TranslatableString sStateStop = XO("Stopped")
 
const TranslatableString sStateRecord = XO("Recording")
 
AttachedToolBarMenuItem sAttachment
 

Detailed Description

Methods for ControlToolBar.

Function Documentation

◆ MakeControlToolBarButton()

AButton * anonymous_namespace{ControlToolBar.cpp}::MakeControlToolBarButton ( wxWindow *  parent,
wxWindowID  id,
const TranslatableString label,
const wxImage iconUp,
const wxImage iconDown,
const wxImage iconDisabled 
)

Definition at line 105 of file ControlToolBar.cpp.

111{
112 auto button = safenew AButton(parent, id);
113 button->SetButtonType(AButton::FrameButton);
114 button->SetImages(
115 theTheme.Image(bmpRecoloredUpLarge),
116 theTheme.Image(bmpRecoloredUpHiliteLarge),
117 theTheme.Image(bmpRecoloredDownLarge),
118 theTheme.Image(bmpRecoloredHiliteLarge),
119 theTheme.Image(bmpRecoloredUpLarge));
120 button->SetIcons(iconUp, iconDown, iconDisabled);
121 button->SetLabel(label);
122 button->SetMinSize(wxSize { 52, 52 });
123 button->SetFrameMid(2);
124 return button;
125}
#define safenew
Definition: MemoryX.h:10
TranslatableString label
Definition: TagsEditor.cpp:165
THEME_API Theme theTheme
Definition: Theme.cpp:82
A wxButton with mouse-over behaviour.
Definition: AButton.h:104
@ FrameButton
Definition: AButton.h:114
wxImage & Image(int iIndex)

References AButton::FrameButton, ThemeBase::Image(), label, safenew, and theTheme.

Referenced by ControlToolBar::Populate().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sAttachment

AttachedToolBarMenuItem anonymous_namespace{ControlToolBar.cpp}::sAttachment
Initial value:
{
ControlToolBar::ID(), wxT("ShowTransportTB"), XXO("&Transport Toolbar")
}
wxT("CloseDown"))
XXO("&Cut/Copy/Paste Toolbar")
static Identifier ID()

Definition at line 840 of file ControlToolBar.cpp.

◆ sStatePlay

const TranslatableString anonymous_namespace{ControlToolBar.cpp}::sStatePlay = XO("Playing")

Definition at line 94 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateRecord

const TranslatableString anonymous_namespace{ControlToolBar.cpp}::sStateRecord = XO("Recording")

Definition at line 102 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().

◆ sStateStop

const TranslatableString anonymous_namespace{ControlToolBar.cpp}::sStateStop = XO("Stopped")

Definition at line 98 of file ControlToolBar.cpp.

Referenced by ControlToolBar::StateForStatusBar().