11#ifndef __AUDACITY_LABELDIALOG__
12#define __AUDACITY_LABELDIALOG__
28class EmptyLabelRenderer;
55 bool Show(
bool show =
true)
override;
62 void OnHelp(wxCommandEvent & event);
71 wxString
TrackName(
int & index,
const wxString &dflt =
_(
"Label Track"));
73 void OnUpdate(wxCommandEvent &event);
75 void OnInsert(wxCommandEvent &event);
76 void OnRemove(wxCommandEvent &event);
77 void OnImport(wxCommandEvent &event);
78 void OnExport(wxCommandEvent &event);
87 void OnOK(wxCommandEvent &event);
88 void OnCancel(wxCommandEvent &event);
113 DECLARE_EVENT_TABLE()
std::vector< RowData > RowDataArray
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Modified version of wxGridChoiceEditor using wxChoice instead of wxComboBox.
Supplies an accessible grid based on wxGrid.
Dialog for editing labels.
void OnChangeEtime(wxGridEvent &event, int row, RowData *rd)
void OnFreqUpdate(wxCommandEvent &event)
void OnChangeTrack(wxGridEvent &event, int row, RowData *rd)
void OnRemove(wxCommandEvent &event)
wxString TrackName(int &index, const wxString &dflt=_("Label Track"))
ChoiceEditor * mChoiceEditor
bool TransferDataToWindow() override
void AddLabels(const LabelTrack *t)
void OnSelectCell(wxGridEvent &event)
LabelTrack * mSelectedTrack
void OnHelp(wxCommandEvent &event)
void OnOK(wxCommandEvent &event)
void OnCellChange(wxGridEvent &event)
void OnChangeLabel(wxGridEvent &event, int row, RowData *rd)
void OnInsert(wxCommandEvent &event)
void OnChangeLfreq(wxGridEvent &event, int row, RowData *rd)
NumericFormatID mFreqFormat
NumericEditor * mFrequencyEditor
wxArrayString mTrackNames
void OnCancel(wxCommandEvent &event)
LabelDialog(wxWindow *parent, AudacityProject &project, TrackList *tracks, LabelTrack *selectedTrack, int index, ViewInfo &viewinfo, const NumericFormatID &format, const NumericFormatID &freqFormat)
ManualPageID GetHelpPageName()
AudacityProject & mProject
bool TransferDataFromWindow() override
void OnExport(wxCommandEvent &event)
void OnChangeStime(wxGridEvent &event, int row, RowData *rd)
void PopulateOrExchange(ShuttleGui &S)
void OnImport(wxCommandEvent &event)
void OnUpdate(wxCommandEvent &event)
NumericEditor * mTimeEditor
bool Show(bool show=true) override
void OnChangeHfreq(wxGridEvent &event, int row, RowData *rd)
void Populate()
Creates the dialog and its contents.
A LabelTrack is a Track that holds labels (LabelStruct).
wxGridCellEditor for the NumericTextCtrl.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...