kwave
18.07.70
|
#include <LabelPropertiesWidget.h>
Public Member Functions | |
LabelPropertiesWidget (QWidget *parent) | |
virtual | ~LabelPropertiesWidget () |
virtual void | setLabelIndex (unsigned int index) |
virtual void | setLabelPosition (sample_index_t pos, sample_index_t length, double rate) |
virtual void | setLabelName (const QString &name) |
virtual sample_index_t | labelPosition () |
virtual QString | labelName () |
void | saveSettings () |
Private Attributes | |
sample_index_t | m_length |
double | m_sample_rate |
Definition at line 36 of file LabelPropertiesWidget.h.
|
explicit |
Constructor
Definition at line 38 of file LabelPropertiesWidget.cpp.
|
virtual |
|
virtual |
returns the label's name
Definition at line 115 of file LabelPropertiesWidget.cpp.
References _.
Referenced by Kwave::MainWidget::labelProperties().
|
virtual |
returns the label position in samples
Definition at line 108 of file LabelPropertiesWidget.cpp.
Referenced by Kwave::MainWidget::labelProperties().
void Kwave::LabelPropertiesWidget::saveSettings | ( | ) |
save the dialog's settings. currently only the mode of the time selection.
Definition at line 122 of file LabelPropertiesWidget.cpp.
References CONFIG_SECTION.
Referenced by Kwave::MainWidget::labelProperties().
|
virtual |
sets the index of the label (read-only property)
index | label index [0...N-1] |
Definition at line 57 of file LabelPropertiesWidget.cpp.
Referenced by Kwave::MainWidget::labelProperties().
|
virtual |
sets the name/description of the label
name | the name (string) of the label |
Definition at line 101 of file LabelPropertiesWidget.cpp.
Referenced by Kwave::MainWidget::labelProperties().
|
virtual |
sets the position of the label
pos | the position of the label [samples] |
length | length of the complete signal [samples] |
rate | sample rate of the signal |
Definition at line 64 of file LabelPropertiesWidget.cpp.
References Kwave::SelectTimeWidget::byPercents, Kwave::SelectTimeWidget::bySamples, CONFIG_SECTION, m_length, and m_sample_rate.
Referenced by Kwave::MainWidget::labelProperties().
|
private |
length of the signal, for transforming percentage -> samples
Definition at line 86 of file LabelPropertiesWidget.h.
Referenced by setLabelPosition().
|
private |
sample rate, for transforming time -> samples
Definition at line 89 of file LabelPropertiesWidget.h.
Referenced by setLabelPosition().