Logo Search packages:      
Sourcecode: kdenlive version File versions

Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes

DragValue Class Reference

A widget for modifing numbers by dragging, using the mouse wheel or entering them with the keyboard. More...

#include <dragvalue.h>

Collaboration diagram for DragValue:
Collaboration graph
[legend]

List of all members.

Public Slots

void setValue (double value, bool final=true)
 Sets the value (forced to be in the valid range) and emits valueChanged.
void setValueFromProgress (double value, bool final)
void slotReset ()
 Resets to default value.

Signals

void inTimeline (int)
void valueChanged (double value, bool final=true)

Public Member Functions

 DragValue (const QString &label, double defaultValue, int decimals, double min=0, double max=100, int id=-1, const QString suffix=QString(), bool showSlider=true, QWidget *parent=0)
 Default constructor.
qreal maximum () const
 Returns the minimum value.
qreal minimum () const
 Returns the maximum value.
int precision () const
 Returns the precision = number of decimals.
void setInTimelineProperty (bool intimeline)
 Change the "inTimeline" property to paint the intimeline widget differently.
void setMaximum (qreal max)
 Sets the maximum value.
void setMinimum (qreal min)
 Sets the minimum value.
void setPrecision (int precision)
 Sets the precision (number of decimals) to.
void setRange (qreal min, qreal max)
 Sets minimum and maximum value.
void setSpinSize (int width)
 Sets the minimum size for QSpinBox, used to set all spinboxes to the same width.
void setStep (qreal step)
 Sets the size of a step (when dragging or using the mouse wheel).
int spinSize ()
 Returns minimum size for QSpinBox, used to set all spinboxes to the same width.
qreal value () const
 Returns the current value.

Protected Member Functions

virtual void focusInEvent (QFocusEvent *e)
 Forwards tab focus to lineedit since it is disabled.

Private Slots

void slotEditingFinished ()
void slotSetDirectUpdate (bool directUpdate)
void slotSetInTimeline ()
void slotSetScaleMode (int mode)
void slotSetValue (int value)
void slotSetValue (double value)
void slotShowContextMenu (const QPoint &pos)

Private Attributes

int m_decimals
double m_default
QAction * m_directUpdate
QDoubleSpinBox * m_doubleEdit
int m_id
QSpinBox * m_intEdit
CustomLabelm_label
double m_maximum
QMenu * m_menu
double m_minimum
KSelectAction * m_scale

Detailed Description

A widget for modifing numbers by dragging, using the mouse wheel or entering them with the keyboard.

Definition at line 73 of file dragvalue.h.


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

Generated by  Doxygen 1.6.0   Back to index