12#ifndef __AUDACITY_SELECTION_BAR__
13#define __AUDACITY_SELECTION_BAR__
59 void Create(wxWindow *parent)
override;
62 void Repaint(wxDC * WXUNUSED(dc))
override {};
66 void SetTimes(
double start,
double end);
76 void AddTime(
int id, wxSizer * pSizer );
77 void AddSelectionSetupButton(wxSizer* pSizer);
79 void SetSelectionMode(SelectionMode mode);
80 void ValuesToControls();
81 void OnUpdate(wxCommandEvent &evt);
83 void OnFocus(wxFocusEvent &event);
84 void OnCaptureKey(wxCommandEvent &event);
85 void OnSize(wxSizeEvent &evt);
86 void OnIdle( wxIdleEvent &evt );
88 void ModifySelection(
int driver,
bool done =
false);
89 void SelectionModeUpdated();
93 void FitToTimeControls();
103 std::array<NumericTextCtrl*, 2> mTimeControls {};
114 DECLARE_EVENT_TABLE()
IntSetting SelectionToolbarMode
static void OnSize(wxSizeEvent &evt)
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
An explicitly nonlocalized string, not meant for the user to see.
Specialization of Setting for int.
A move-only handle representing a connection to a Publisher.
(not quite a Toolbar) at foot of screen for setting and viewing the selection range.
void EnableDisableButtons() override
void Repaint(wxDC *WXUNUSED(dc)) override
const Observer::Subscription mFormatsSubscription
Holds a msgid for the translation catalog; may also bind format arguments.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
void OnFocus(wxWindow &window, wxFocusEvent &event)
a function useful to implement a focus event handler The window releases the keyboard if the event is...
const char * end(const char *str) noexcept