#include <ItemEditDialog.h>

Inheritance diagram for ItemEditDialog:
Inheritance graph
Collaboration diagram for ItemEditDialog:
Collaboration graph

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,
QString  scaleUnits,
QWidget *  parent = 0 
)

Definition at line 37 of file ItemEditDialog.cpp.

References ItemEditDialog::LabelOptions::valueUnits.

Member Function Documentation

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().

sv_frame_t ItemEditDialog::getFrameDuration ( ) const
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)
float ItemEditDialog::getValue ( ) const
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::frameTimeChanged ( int  i)
protectedslot

Definition at line 346 of file ItemEditDialog.cpp.

References m_realTimeSecsSpinBox, m_realTimeUSecsSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

void ItemEditDialog::realTimeSecsChanged ( int  i)
protectedslot

Definition at line 361 of file ItemEditDialog.cpp.

References getRealTime(), m_frameTimeSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

void ItemEditDialog::realTimeUSecsChanged ( int  i)
protectedslot

Definition at line 371 of file ItemEditDialog.cpp.

References getRealTime(), m_frameTimeSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

void ItemEditDialog::frameDurationChanged ( int  i)
protectedslot
void ItemEditDialog::realDurationSecsChanged ( int  i)
protectedslot

Definition at line 396 of file ItemEditDialog.cpp.

References getRealDuration(), m_frameDurationSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

void ItemEditDialog::realDurationUSecsChanged ( int  i)
protectedslot

Definition at line 406 of file ItemEditDialog.cpp.

References getRealDuration(), m_frameDurationSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

void ItemEditDialog::valueChanged ( double  )
protectedslot

Definition at line 416 of file ItemEditDialog.cpp.

References m_resetButton.

Referenced by ItemEditDialog().

void ItemEditDialog::levelChanged ( double  )
protectedslot

Definition at line 422 of file ItemEditDialog.cpp.

References m_resetButton.

Referenced by ItemEditDialog().

void ItemEditDialog::textChanged ( QString  )
protectedslot

Definition at line 428 of file ItemEditDialog.cpp.

References m_resetButton.

Referenced by ItemEditDialog().

void ItemEditDialog::reset ( )
protectedslot

Member Data Documentation

sv_frame_t ItemEditDialog::m_defaultFrame
protected

Definition at line 94 of file ItemEditDialog.h.

Referenced by reset(), and setFrameTime().

sv_frame_t ItemEditDialog::m_defaultDuration
protected

Definition at line 95 of file ItemEditDialog.h.

Referenced by reset(), and setFrameDuration().

float ItemEditDialog::m_defaultValue
protected

Definition at line 96 of file ItemEditDialog.h.

Referenced by reset(), and setValue().

float ItemEditDialog::m_defaultLevel
protected

Definition at line 97 of file ItemEditDialog.h.

Referenced by reset(), and setLevel().

QString ItemEditDialog::m_defaultText
protected

Definition at line 98 of file ItemEditDialog.h.

Referenced by reset(), and setText().

QSpinBox* ItemEditDialog::m_frameTimeSpinBox
protected
QSpinBox* ItemEditDialog::m_realTimeSecsSpinBox
protected

Definition at line 100 of file ItemEditDialog.h.

Referenced by frameTimeChanged(), ItemEditDialog(), and setFrameTime().

QSpinBox* ItemEditDialog::m_realTimeUSecsSpinBox
protected

Definition at line 101 of file ItemEditDialog.h.

Referenced by frameTimeChanged(), ItemEditDialog(), and setFrameTime().

QSpinBox* ItemEditDialog::m_frameDurationSpinBox
protected
QSpinBox* ItemEditDialog::m_realDurationSecsSpinBox
protected

Definition at line 103 of file ItemEditDialog.h.

Referenced by frameDurationChanged(), ItemEditDialog(), and setFrameDuration().

QSpinBox* ItemEditDialog::m_realDurationUSecsSpinBox
protected

Definition at line 104 of file ItemEditDialog.h.

Referenced by frameDurationChanged(), ItemEditDialog(), and setFrameDuration().

QDoubleSpinBox* ItemEditDialog::m_valueSpinBox
protected

Definition at line 105 of file ItemEditDialog.h.

Referenced by getValue(), ItemEditDialog(), and setValue().

QDoubleSpinBox* ItemEditDialog::m_levelSpinBox
protected

Definition at line 106 of file ItemEditDialog.h.

Referenced by getLevel(), ItemEditDialog(), and setLevel().

QLineEdit* ItemEditDialog::m_textField
protected

Definition at line 107 of file ItemEditDialog.h.

Referenced by getText(), ItemEditDialog(), and setText().


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