svgui  1.9
ItemEditDialog Class Reference

#include <ItemEditDialog.h>

Inheritance diagram for ItemEditDialog:
Collaboration diagram for ItemEditDialog:

Public Types

enum  { ShowTime = 1 << 0, ShowDuration = 1 << 1, ShowValue = 1 << 2, ShowText = 1 << 3 }
 

Public Member Functions

 ItemEditDialog (int sampleRate, int options, QString valueUnits="", QWidget *parent=0)
 
void setFrameTime (int frame)
 
int getFrameTime () const
 
void setRealTime (RealTime rt)
 
RealTime getRealTime () const
 
void setFrameDuration (int frame)
 
int getFrameDuration () const
 
void setRealDuration (RealTime rt)
 
RealTime getRealDuration () const
 
void setValue (float value)
 
float getValue () 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 textChanged (QString)
 
void reset ()
 

Protected Attributes

int m_sampleRate
 
int m_defaultFrame
 
int m_defaultDuration
 
float m_defaultValue
 
QString m_defaultText
 
QSpinBox * m_frameTimeSpinBox
 
QSpinBox * m_realTimeSecsSpinBox
 
QSpinBox * m_realTimeUSecsSpinBox
 
QSpinBox * m_frameDurationSpinBox
 
QSpinBox * m_realDurationSecsSpinBox
 
QSpinBox * m_realDurationUSecsSpinBox
 
QDoubleSpinBox * m_valueSpinBox
 
QLineEdit * m_textField
 
QPushButton * m_resetButton
 

Detailed Description

Definition at line 28 of file ItemEditDialog.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ShowTime 
ShowDuration 
ShowValue 
ShowText 

Definition at line 33 of file ItemEditDialog.h.

Constructor & Destructor Documentation

◆ ItemEditDialog()

Member Function Documentation

◆ setFrameTime()

◆ getFrameTime()

◆ setRealTime()

void ItemEditDialog::setRealTime ( RealTime  rt)

Definition at line 215 of file ItemEditDialog.cpp.

References m_sampleRate, and setFrameTime().

◆ getRealTime()

RealTime ItemEditDialog::getRealTime ( ) const

Definition at line 221 of file ItemEditDialog.cpp.

References getFrameTime(), and m_sampleRate.

Referenced by realTimeSecsChanged(), and realTimeUSecsChanged().

◆ setFrameDuration()

◆ getFrameDuration()

int ItemEditDialog::getFrameDuration ( ) const

◆ setRealDuration()

void ItemEditDialog::setRealDuration ( RealTime  rt)

Definition at line 246 of file ItemEditDialog.cpp.

References m_sampleRate, and setFrameDuration().

◆ getRealDuration()

RealTime ItemEditDialog::getRealDuration ( ) const

Definition at line 252 of file ItemEditDialog.cpp.

References getFrameDuration(), and m_sampleRate.

Referenced by realDurationSecsChanged(), and realDurationUSecsChanged().

◆ setValue()

void ItemEditDialog::setValue ( float  value)

◆ getValue()

float ItemEditDialog::getValue ( ) const

◆ setText()

void ItemEditDialog::setText ( QString  text)

◆ getText()

QString ItemEditDialog::getText ( ) const

◆ frameTimeChanged

void ItemEditDialog::frameTimeChanged ( int  i)
protectedslot

Definition at line 290 of file ItemEditDialog.cpp.

References m_realTimeSecsSpinBox, m_realTimeUSecsSpinBox, m_resetButton, and m_sampleRate.

Referenced by ItemEditDialog().

◆ realTimeSecsChanged

void ItemEditDialog::realTimeSecsChanged ( int  i)
protectedslot

Definition at line 305 of file ItemEditDialog.cpp.

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

Referenced by ItemEditDialog().

◆ realTimeUSecsChanged

void ItemEditDialog::realTimeUSecsChanged ( int  i)
protectedslot

Definition at line 315 of file ItemEditDialog.cpp.

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

Referenced by ItemEditDialog().

◆ frameDurationChanged

void ItemEditDialog::frameDurationChanged ( int  i)
protectedslot

◆ realDurationSecsChanged

void ItemEditDialog::realDurationSecsChanged ( int  i)
protectedslot

Definition at line 340 of file ItemEditDialog.cpp.

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

Referenced by ItemEditDialog().

◆ realDurationUSecsChanged

void ItemEditDialog::realDurationUSecsChanged ( int  i)
protectedslot

Definition at line 350 of file ItemEditDialog.cpp.

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

Referenced by ItemEditDialog().

◆ valueChanged

void ItemEditDialog::valueChanged ( double  )
protectedslot

Definition at line 360 of file ItemEditDialog.cpp.

References m_resetButton.

Referenced by ItemEditDialog().

◆ textChanged

void ItemEditDialog::textChanged ( QString  )
protectedslot

Definition at line 366 of file ItemEditDialog.cpp.

References m_resetButton.

Referenced by ItemEditDialog().

◆ reset

void ItemEditDialog::reset ( )
protectedslot

Member Data Documentation

◆ m_sampleRate

◆ m_defaultFrame

int ItemEditDialog::m_defaultFrame
protected

Definition at line 74 of file ItemEditDialog.h.

Referenced by reset(), and setFrameTime().

◆ m_defaultDuration

int ItemEditDialog::m_defaultDuration
protected

Definition at line 75 of file ItemEditDialog.h.

Referenced by reset(), and setFrameDuration().

◆ m_defaultValue

float ItemEditDialog::m_defaultValue
protected

Definition at line 76 of file ItemEditDialog.h.

Referenced by reset(), and setValue().

◆ m_defaultText

QString ItemEditDialog::m_defaultText
protected

Definition at line 77 of file ItemEditDialog.h.

Referenced by reset(), and setText().

◆ m_frameTimeSpinBox

QSpinBox* ItemEditDialog::m_frameTimeSpinBox
protected

◆ m_realTimeSecsSpinBox

QSpinBox* ItemEditDialog::m_realTimeSecsSpinBox
protected

Definition at line 79 of file ItemEditDialog.h.

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

◆ m_realTimeUSecsSpinBox

QSpinBox* ItemEditDialog::m_realTimeUSecsSpinBox
protected

Definition at line 80 of file ItemEditDialog.h.

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

◆ m_frameDurationSpinBox

QSpinBox* ItemEditDialog::m_frameDurationSpinBox
protected

◆ m_realDurationSecsSpinBox

QSpinBox* ItemEditDialog::m_realDurationSecsSpinBox
protected

Definition at line 82 of file ItemEditDialog.h.

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

◆ m_realDurationUSecsSpinBox

QSpinBox* ItemEditDialog::m_realDurationUSecsSpinBox
protected

Definition at line 83 of file ItemEditDialog.h.

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

◆ m_valueSpinBox

QDoubleSpinBox* ItemEditDialog::m_valueSpinBox
protected

Definition at line 84 of file ItemEditDialog.h.

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

◆ m_textField

QLineEdit* ItemEditDialog::m_textField
protected

Definition at line 85 of file ItemEditDialog.h.

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

◆ m_resetButton


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