11#ifndef __AUDACITY_SELECTION_BAR__
12#define __AUDACITY_SELECTION_BAR__
28#ifdef TIME_IN_SELECT_TOOLBAR
60 void Create(wxWindow *parent)
override;
63 void Repaint(wxDC * WXUNUSED(dc))
override {};
67 void SetTimes(
double start,
double end,
double audio);
70 void SetRate(
double rate);
78 void AddVLine( wxSizer * pSizer );
80 void SetSelectionMode(
int mode);
81 void ShowHideControls(
int mode);
82 void SetDrivers(
int driver1,
int driver2 );
83 void ValuesToControls();
84 void OnUpdate(wxCommandEvent &evt);
85 void OnChangedTime(wxCommandEvent &evt);
87 void OnRate(wxCommandEvent & event);
88 void OnSnapTo(wxCommandEvent & event);
89 void OnChoice(wxCommandEvent & event);
90 void OnFocus(wxFocusEvent &event);
91 void OnCaptureKey(wxCommandEvent &event);
92 void OnSize(wxSizeEvent &evt);
93 void OnIdle( wxIdleEvent &evt );
95 void ModifySelection(
int newDriver,
bool done =
false);
97 void SelectionModeUpdated();
101 double mStart, mEnd, mLength, mCenter,
mAudio;
108 int mSelectionMode{ 0 };
109 int mLastSelectionMode{ 0 };
127 DECLARE_EVENT_TABLE()
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...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An explicitly nonlocalized string, not meant for the user to see.
(not quite a Toolbar) at foot of screen for setting and viewing the selection range.
NumericTextCtrl * mStartTime
NumericTextCtrl * mAudioTime
void EnableDisableButtons() override
NumericTextCtrl * mLengthTime
NumericTextCtrl * mEndTime
void Repaint(wxDC *WXUNUSED(dc)) override
NumericTextCtrl * mCenterTime
SelectionBarListener * mListener
A parent class of SelectionBar, used to forward events to do with changes in the SelectionBar.
Holds a msgid for the translation catalog; may also bind format arguments.
is like wxStaticText, except it can be themed. wxStaticText can't be.
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...
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.