Audacity  2.2.0
LabelDialog Class Referencefinal

Dialog for editing labels. More...

#include <LabelDialog.h>

Inheritance diagram for LabelDialog:
wxTabTraversalWrapper< Base >

Public Member Functions

 LabelDialog (wxWindow *parent, TrackFactory &factory, TrackList *tracks, LabelTrack *selectedTrack, int index, ViewInfo &viewinfo, double rate, const wxString &format, const wxString &freqFormat)
 
 ~LabelDialog ()
 
bool Show (bool show=true) override
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
bool Validate ()
 
void FindAllLabels ()
 
void AddLabels (const LabelTrack *t)
 
void FindInitialRow ()
 
wxString TrackName (int &index, const wxString &dflt=_("Label Track"))
 
void OnUpdate (wxCommandEvent &event)
 
void OnFreqUpdate (wxCommandEvent &event)
 
void OnInsert (wxCommandEvent &event)
 
void OnRemove (wxCommandEvent &event)
 
void OnImport (wxCommandEvent &event)
 
void OnExport (wxCommandEvent &event)
 
void OnSelectCell (wxGridEvent &event)
 
void OnCellChange (wxGridEvent &event)
 
void OnChangeTrack (wxGridEvent &event, int row, RowData *rd)
 
void OnChangeLabel (wxGridEvent &event, int row, RowData *rd)
 
void OnChangeStime (wxGridEvent &event, int row, RowData *rd)
 
void OnChangeEtime (wxGridEvent &event, int row, RowData *rd)
 
void OnChangeLfreq (wxGridEvent &event, int row, RowData *rd)
 
void OnChangeHfreq (wxGridEvent &event, int row, RowData *rd)
 
void OnOK (wxCommandEvent &event)
 
void OnCancel (wxCommandEvent &event)
 

Private Attributes

GridmGrid
 
ChoiceEditormChoiceEditor
 
NumericEditormTimeEditor
 
NumericEditormFrequencyEditor
 
RowDataArray mData
 
TrackFactorymFactory
 
TrackListmTracks
 
LabelTrackmSelectedTrack {}
 
int mIndex { -1 }
 
ViewInfomViewInfo
 
wxArrayString mTrackNames
 
double mRate
 
wxString mFormat
 
wxString mFreqFormat
 
int mInitialRow
 

Detailed Description

Dialog for editing labels.

Constructor & Destructor Documentation

LabelDialog::LabelDialog ( wxWindow *  parent,
TrackFactory factory,
TrackList tracks,
LabelTrack selectedTrack,
int  index,
ViewInfo viewinfo,
double  rate,
const wxString &  format,
const wxString &  freqFormat 
)
LabelDialog::~LabelDialog ( )

Member Function Documentation

void LabelDialog::FindInitialRow ( )
private
void LabelDialog::OnCancel ( wxCommandEvent &  event)
private

References mGrid.

void LabelDialog::OnCellChange ( wxGridEvent &  event)
private
void LabelDialog::OnChangeEtime ( wxGridEvent &  event,
int  row,
RowData rd 
)
private
void LabelDialog::OnChangeHfreq ( wxGridEvent &  event,
int  row,
RowData rd 
)
private
void LabelDialog::OnChangeLabel ( wxGridEvent &  event,
int  row,
RowData rd 
)
private

References Col_Label, mGrid, and RowData::title.

Referenced by OnCellChange().

void LabelDialog::OnChangeLfreq ( wxGridEvent &  event,
int  row,
RowData rd 
)
private
void LabelDialog::OnChangeStime ( wxGridEvent &  event,
int  row,
RowData rd 
)
private
void LabelDialog::OnChangeTrack ( wxGridEvent &  event,
int  row,
RowData rd 
)
private
void LabelDialog::OnExport ( wxCommandEvent &  event)
private
void LabelDialog::OnFreqUpdate ( wxCommandEvent &  event)
private
void LabelDialog::OnImport ( wxCommandEvent &  event)
private
void LabelDialog::OnInsert ( wxCommandEvent &  event)
private
void LabelDialog::OnOK ( wxCommandEvent &  event)
private
void LabelDialog::OnRemove ( wxCommandEvent &  event)
private

References mData, mGrid, and TransferDataToWindow().

void LabelDialog::OnUpdate ( wxCommandEvent &  event)
private

References mFormat, and TransferDataToWindow().

bool LabelDialog::Show ( bool  show = true)
override

References Col_Label, mGrid, and mInitialRow.

wxString LabelDialog::TrackName ( int &  index,
const wxString &  dflt = _("Label Track") 
)
private
bool LabelDialog::Validate ( )
private

References mGrid.

Referenced by OnOK().

Member Data Documentation

ChoiceEditor* LabelDialog::mChoiceEditor
private

Referenced by TransferDataToWindow().

TrackFactory& LabelDialog::mFactory
private
wxString LabelDialog::mFormat
private

Referenced by OnUpdate(), and TransferDataToWindow().

wxString LabelDialog::mFreqFormat
private
NumericEditor* LabelDialog::mFrequencyEditor
private

Referenced by TransferDataToWindow().

int LabelDialog::mIndex { -1 }
private
int LabelDialog::mInitialRow
private

Referenced by FindInitialRow(), and Show().

double LabelDialog::mRate
private

Referenced by TransferDataToWindow().

LabelTrack* LabelDialog::mSelectedTrack {}
private
NumericEditor* LabelDialog::mTimeEditor
private

Referenced by TransferDataToWindow().

wxArrayString LabelDialog::mTrackNames
private
TrackList* LabelDialog::mTracks
private
ViewInfo* LabelDialog::mViewInfo
private

Referenced by FindInitialRow(), and OnSelectCell().


The documentation for this class was generated from the following files: