60 , mAudioTime{ nullptr }
78 return *
static_cast<TimeToolBar*
>(toolManager.GetToolBar(
ID()));
91 auto format = formats.GetAudioTimeFormat();
152 SetMaxSize(wxDefaultSize);
153 SetMinSize(wxDefaultSize);
168 wxSize sz = GetSize();
199 SetSize(GetBestSize().x, GetSize().y);
213 e.SetString(
format.GET());
223 SetSize(GetBestSize().x, GetSize().y);
232 SetMinSize(wxDefaultSize);
233 SetMaxSize(wxDefaultSize);
249 minSize.x +=
outer.x;
263 maxSize.x +=
outer.x;
270 maxSize.y =
IsDocked() ? minH : wxDefaultCoord;
298 SetMinSize(wxDefaultSize);
299 SetMaxSize(wxDefaultSize);
303 formats.SetAudioTimeFormat(evt.GetString());
316 SetSize(GetBestSize().x, GetSize().y);
349 if (sizerBR.x >= timeBR.x && sizerBR.y >= timeBR.y) {
353 }
while (h < maxDigitH && sizerBR.x >= timeBR.x && sizerBR.y >= timeBR.y);
357 else if (sizerBR.x < timeBR.x || sizerBR.y < timeBR.y) {
361 }
while (h >=
minDigitH && (sizerBR.x < timeBR.x || sizerBR.y < timeBR.y));
379 if (projectAudioIO.IsAudioActive()) {
381 audioTime = gAudioIO->GetStreamTime();
410 XXO(
"&Time Toolbar"),
static const wxPoint2DDouble outer[]
@ Internal
Indicates internal failure from Audacity.
XXO("&Cut/Copy/Paste Toolbar")
EVT_COMMAND(wxID_ANY, EVT_FREQUENCYTEXTCTRL_UPDATED, LabelDialog::OnFreqUpdate) LabelDialog
const NumericConverterType & NumericConverterType_TIME()
an object holding per-project preferred sample rate
static Settings & settings()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static FormatterContext ProjectContext(const AudacityProject &project)
An explicitly nonlocalized string, not meant for the user to see.
const wxString & GET() const
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct...
NumericFormatID GetFormatName() const
void SetReadOnly(bool readOnly=true)
bool SetFormatName(const NumericFormatID &formatName)
wxSize ComputeSizing(bool update=true, wxCoord digitW=0, wxCoord digitH=0)
void SetDigitSize(int width, int height)
void SetName(const TranslatableString &name)
void SetValue(double newValue)
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
static ProjectAudioIO & Get(AudacityProject &project)
static ViewInfo & Get(AudacityProject &project)
void CallAfter(Action action)
Schedule an action to be done later, and in the main thread.