svgui
1.9
|
#include <ItemEditDialog.h>
Classes | |
struct | LabelOptions |
Public Types | |
enum | { ShowTime = 1 << 0, ShowDuration = 1 << 1, ShowValue = 1 << 2, ShowText = 1 << 3, ShowLevel = 1 << 4 } |
Public Member Functions | |
ItemEditDialog (sv_samplerate_t sampleRate, int options, LabelOptions labelOptions={}, QWidget *parent=0) | |
ItemEditDialog (sv_samplerate_t sampleRate, int options, QString scaleUnits, QWidget *parent=0) | |
void | setFrameTime (sv_frame_t frame) |
sv_frame_t | getFrameTime () const |
void | setRealTime (RealTime rt) |
RealTime | getRealTime () const |
void | setFrameDuration (sv_frame_t frame) |
sv_frame_t | getFrameDuration () const |
void | setRealDuration (RealTime rt) |
RealTime | getRealDuration () const |
void | setValue (float value) |
float | getValue () const |
void | setLevel (float level) |
float | getLevel () const |
void | setText (QString text) |
QString | getText () const |
Protected Slots | |
void | frameTimeChanged (int) |
void | realTimeSecsChanged (int) |
void | realTimeUSecsChanged (int) |
void | frameDurationChanged (int) |
void | realDurationSecsChanged (int) |
void | realDurationUSecsChanged (int) |
void | valueChanged (double) |
void | levelChanged (double) |
void | textChanged (QString) |
void | reset () |
Protected Attributes | |
sv_samplerate_t | m_sampleRate |
sv_frame_t | m_defaultFrame |
sv_frame_t | m_defaultDuration |
float | m_defaultValue |
float | m_defaultLevel |
QString | m_defaultText |
QSpinBox * | m_frameTimeSpinBox |
QSpinBox * | m_realTimeSecsSpinBox |
QSpinBox * | m_realTimeUSecsSpinBox |
QSpinBox * | m_frameDurationSpinBox |
QSpinBox * | m_realDurationSecsSpinBox |
QSpinBox * | m_realDurationUSecsSpinBox |
QDoubleSpinBox * | m_valueSpinBox |
QDoubleSpinBox * | m_levelSpinBox |
QLineEdit * | m_textField |
QPushButton * | m_resetButton |
Detailed Description
Definition at line 28 of file ItemEditDialog.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
ShowTime | |
ShowDuration | |
ShowValue | |
ShowText | |
ShowLevel |
Definition at line 33 of file ItemEditDialog.h.
Constructor & Destructor Documentation
ItemEditDialog::ItemEditDialog | ( | sv_samplerate_t | sampleRate, |
int | options, | ||
LabelOptions | labelOptions = {} , |
||
QWidget * | parent = 0 |
||
) |
Definition at line 47 of file ItemEditDialog.cpp.
References frameDurationChanged(), frameTimeChanged(), levelChanged(), ItemEditDialog::LabelOptions::levelLabel, ItemEditDialog::LabelOptions::levelUnits, m_frameDurationSpinBox, m_frameTimeSpinBox, m_levelSpinBox, m_realDurationSecsSpinBox, m_realDurationUSecsSpinBox, m_realTimeSecsSpinBox, m_realTimeUSecsSpinBox, m_resetButton, m_textField, m_valueSpinBox, realDurationSecsChanged(), realDurationUSecsChanged(), realTimeSecsChanged(), realTimeUSecsChanged(), reset(), ShowDuration, ShowLevel, ShowText, ShowTime, ShowValue, textChanged(), valueChanged(), ItemEditDialog::LabelOptions::valueLabel, and ItemEditDialog::LabelOptions::valueUnits.
ItemEditDialog::ItemEditDialog | ( | sv_samplerate_t | sampleRate, |
int | options, | ||
QString | scaleUnits, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 37 of file ItemEditDialog.cpp.
References ItemEditDialog::LabelOptions::valueUnits.
Member Function Documentation
void ItemEditDialog::setFrameTime | ( | sv_frame_t | frame | ) |
Definition at line 236 of file ItemEditDialog.cpp.
References m_defaultFrame, m_frameTimeSpinBox, m_realTimeSecsSpinBox, m_realTimeUSecsSpinBox, m_resetButton, and m_sampleRate.
Referenced by TimeInstantLayer::editOpen(), BoxLayer::editOpen(), TimeValueLayer::editOpen(), FlexiNoteLayer::editOpen(), RegionLayer::editOpen(), NoteLayer::editOpen(), reset(), and setRealTime().
sv_frame_t ItemEditDialog::getFrameTime | ( | ) | const |
Definition at line 249 of file ItemEditDialog.cpp.
References m_frameTimeSpinBox.
Referenced by TimeInstantLayer::editOpen(), BoxLayer::editOpen(), TimeValueLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), NoteLayer::editOpen(), and getRealTime().
void ItemEditDialog::setRealTime | ( | RealTime | rt | ) |
Definition at line 255 of file ItemEditDialog.cpp.
References m_sampleRate, and setFrameTime().
RealTime ItemEditDialog::getRealTime | ( | ) | const |
Definition at line 261 of file ItemEditDialog.cpp.
References getFrameTime(), and m_sampleRate.
Referenced by realTimeSecsChanged(), and realTimeUSecsChanged().
void ItemEditDialog::setFrameDuration | ( | sv_frame_t | frame | ) |
Definition at line 267 of file ItemEditDialog.cpp.
References m_defaultDuration, m_frameDurationSpinBox, m_realDurationSecsSpinBox, m_realDurationUSecsSpinBox, m_resetButton, and m_sampleRate.
Referenced by BoxLayer::editOpen(), FlexiNoteLayer::editOpen(), RegionLayer::editOpen(), NoteLayer::editOpen(), reset(), and setRealDuration().
sv_frame_t ItemEditDialog::getFrameDuration | ( | ) | const |
Definition at line 280 of file ItemEditDialog.cpp.
References m_frameDurationSpinBox.
Referenced by BoxLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), NoteLayer::editOpen(), and getRealDuration().
void ItemEditDialog::setRealDuration | ( | RealTime | rt | ) |
Definition at line 286 of file ItemEditDialog.cpp.
References m_sampleRate, and setFrameDuration().
RealTime ItemEditDialog::getRealDuration | ( | ) | const |
Definition at line 292 of file ItemEditDialog.cpp.
References getFrameDuration(), and m_sampleRate.
Referenced by realDurationSecsChanged(), and realDurationUSecsChanged().
void ItemEditDialog::setValue | ( | float | value | ) |
Definition at line 298 of file ItemEditDialog.cpp.
References m_defaultValue, m_resetButton, and m_valueSpinBox.
Referenced by BoxLayer::editOpen(), TimeValueLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), NoteLayer::editOpen(), and reset().
float ItemEditDialog::getValue | ( | ) | const |
Definition at line 308 of file ItemEditDialog.cpp.
References m_valueSpinBox.
Referenced by BoxLayer::editOpen(), TimeValueLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), and NoteLayer::editOpen().
void ItemEditDialog::setLevel | ( | float | level | ) |
Definition at line 314 of file ItemEditDialog.cpp.
References m_defaultLevel, m_levelSpinBox, and m_resetButton.
Referenced by BoxLayer::editOpen(), and reset().
float ItemEditDialog::getLevel | ( | ) | const |
Definition at line 324 of file ItemEditDialog.cpp.
References m_levelSpinBox.
Referenced by BoxLayer::editOpen().
void ItemEditDialog::setText | ( | QString | text | ) |
Definition at line 330 of file ItemEditDialog.cpp.
References m_defaultText, m_resetButton, and m_textField.
Referenced by TimeInstantLayer::editOpen(), BoxLayer::editOpen(), TimeValueLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), NoteLayer::editOpen(), and reset().
QString ItemEditDialog::getText | ( | ) | const |
Definition at line 340 of file ItemEditDialog.cpp.
References m_textField.
Referenced by TimeInstantLayer::editOpen(), BoxLayer::editOpen(), TimeValueLayer::editOpen(), RegionLayer::editOpen(), FlexiNoteLayer::editOpen(), and NoteLayer::editOpen().
|
protectedslot |
Definition at line 346 of file ItemEditDialog.cpp.
References m_realTimeSecsSpinBox, m_realTimeUSecsSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 361 of file ItemEditDialog.cpp.
References getRealTime(), m_frameTimeSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 371 of file ItemEditDialog.cpp.
References getRealTime(), m_frameTimeSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 381 of file ItemEditDialog.cpp.
References m_realDurationSecsSpinBox, m_realDurationUSecsSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 396 of file ItemEditDialog.cpp.
References getRealDuration(), m_frameDurationSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 406 of file ItemEditDialog.cpp.
References getRealDuration(), m_frameDurationSpinBox, m_resetButton, and m_sampleRate.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 416 of file ItemEditDialog.cpp.
References m_resetButton.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 422 of file ItemEditDialog.cpp.
References m_resetButton.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 428 of file ItemEditDialog.cpp.
References m_resetButton.
Referenced by ItemEditDialog().
|
protectedslot |
Definition at line 434 of file ItemEditDialog.cpp.
References m_defaultDuration, m_defaultFrame, m_defaultLevel, m_defaultText, m_defaultValue, m_resetButton, setFrameDuration(), setFrameTime(), setLevel(), setText(), and setValue().
Referenced by ItemEditDialog().
Member Data Documentation
|
protected |
Definition at line 93 of file ItemEditDialog.h.
Referenced by frameDurationChanged(), frameTimeChanged(), getRealDuration(), getRealTime(), realDurationSecsChanged(), realDurationUSecsChanged(), realTimeSecsChanged(), realTimeUSecsChanged(), setFrameDuration(), setFrameTime(), setRealDuration(), and setRealTime().
|
protected |
Definition at line 94 of file ItemEditDialog.h.
Referenced by reset(), and setFrameTime().
|
protected |
Definition at line 95 of file ItemEditDialog.h.
Referenced by reset(), and setFrameDuration().
|
protected |
Definition at line 96 of file ItemEditDialog.h.
Referenced by reset(), and setValue().
|
protected |
Definition at line 97 of file ItemEditDialog.h.
Referenced by reset(), and setLevel().
|
protected |
Definition at line 98 of file ItemEditDialog.h.
|
protected |
Definition at line 99 of file ItemEditDialog.h.
Referenced by getFrameTime(), ItemEditDialog(), realTimeSecsChanged(), realTimeUSecsChanged(), and setFrameTime().
|
protected |
Definition at line 100 of file ItemEditDialog.h.
Referenced by frameTimeChanged(), ItemEditDialog(), and setFrameTime().
|
protected |
Definition at line 101 of file ItemEditDialog.h.
Referenced by frameTimeChanged(), ItemEditDialog(), and setFrameTime().
|
protected |
Definition at line 102 of file ItemEditDialog.h.
Referenced by getFrameDuration(), ItemEditDialog(), realDurationSecsChanged(), realDurationUSecsChanged(), and setFrameDuration().
|
protected |
Definition at line 103 of file ItemEditDialog.h.
Referenced by frameDurationChanged(), ItemEditDialog(), and setFrameDuration().
|
protected |
Definition at line 104 of file ItemEditDialog.h.
Referenced by frameDurationChanged(), ItemEditDialog(), and setFrameDuration().
|
protected |
Definition at line 105 of file ItemEditDialog.h.
Referenced by getValue(), ItemEditDialog(), and setValue().
|
protected |
Definition at line 106 of file ItemEditDialog.h.
Referenced by getLevel(), ItemEditDialog(), and setLevel().
|
protected |
Definition at line 107 of file ItemEditDialog.h.
Referenced by getText(), ItemEditDialog(), and setText().
|
protected |
Definition at line 108 of file ItemEditDialog.h.
Referenced by frameDurationChanged(), frameTimeChanged(), ItemEditDialog(), levelChanged(), realDurationSecsChanged(), realDurationUSecsChanged(), realTimeSecsChanged(), realTimeUSecsChanged(), reset(), setFrameDuration(), setFrameTime(), setLevel(), setText(), setValue(), textChanged(), and valueChanged().
The documentation for this class was generated from the following files:
Generated by 1.8.11