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

cmtk::QtSliderEntry Class Reference
[cmtkQt Library]

Widget that combines a slider with a numerical entry field and labels. More...

#include <cmtkQtSliderEntry.h>

List of all members.

Public Slots

void slotSetTitle (const QString &title)
 Set title label.
void slotSetMinMaxLabels (const QString &minLabel, const QString &maxLabel)
 Set min/max labels.
void slotSetRange (double rangeFrom, double rangeTo)
 Set value range.
void slotSetPrecision (int precision)
 Set number of digits.
void slotSetValue (const double value)
 Set value.
void slotCenter ()
 Set to center position.

Signals

void valueChanged (double value)
 Emitted when value changes.

Public Member Functions

 QtSliderEntry (QWidget *parent)
 Constructor.
double GetValue () const
 Get value.
double GetMinValue () const
 Get minimum value.
double GetMaxValue () const
 Get maximum value.

Private Slots

void slotEditReturnPressed ()
 Called when "Return" is pressed in the line edit field.
void slotSliderValueChanged (int value)
 Called when line edit value changes.

Private Attributes

uint Precision
 Number of decimal digits.
uint PrecisionFactor
 Factor to convert between integer and true float representation.
QGridLayout * Layout
 Layout for children.
QSlider * Slider
 The slider object.
QLineEdit * Edit
 The entry field.
QDoubleValidator * Validator
 The entry validator object.
QLabel * TitleLabel
 The label for the widget title.
QLabel * MinLabel
 The label for the slider's minimum value.
QLabel * MaxLabel
 The label for the slider's maximum value.

Detailed Description

Widget that combines a slider with a numerical entry field and labels.

Definition at line 55 of file cmtkQtSliderEntry.h.


Member Function Documentation

void cmtk::QtSliderEntry::valueChanged ( double  value ) [signal]

Emitted when value changes.

Referenced by QtSliderEntry(), slotEditReturnPressed(), slotSetValue(), and slotSliderValueChanged().


Member Data Documentation

QLineEdit* cmtk::QtSliderEntry::Edit [private]

The entry field.

Definition at line 118 of file cmtkQtSliderEntry.h.

Referenced by GetValue(), QtSliderEntry(), slotEditReturnPressed(), slotSetValue(), and slotSliderValueChanged().

QGridLayout* cmtk::QtSliderEntry::Layout [private]

Layout for children.

Definition at line 112 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetTitle().

QLabel* cmtk::QtSliderEntry::MaxLabel [private]

The label for the slider's maximum value.

Definition at line 130 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetRange().

QLabel* cmtk::QtSliderEntry::MinLabel [private]

The label for the slider's minimum value.

Definition at line 127 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetRange().

Number of decimal digits.

Definition at line 106 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), slotSetPrecision(), slotSetRange(), slotSetValue(), and slotSliderValueChanged().

Factor to convert between integer and true float representation.

Definition at line 109 of file cmtkQtSliderEntry.h.

Referenced by GetMaxValue(), GetMinValue(), QtSliderEntry(), slotEditReturnPressed(), slotSetPrecision(), slotSetRange(), slotSetValue(), and slotSliderValueChanged().

QSlider* cmtk::QtSliderEntry::Slider [private]

The label for the widget title.

Definition at line 124 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), and slotSetTitle().

QDoubleValidator* cmtk::QtSliderEntry::Validator [private]

The entry validator object.

Definition at line 121 of file cmtkQtSliderEntry.h.

Referenced by QtSliderEntry(), slotSetMinMaxLabels(), slotSetPrecision(), and slotSetRange().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines