cumbia-qtcontrols 1.x
Qt widgets on top of the cumbia C++ library
|
a widget to set a value More...
#include <enumeric.h>
Public Slots | |
virtual void | setEnabled (bool) |
virtual void | setDisabled (bool) |
Signals | |
void | valueChanged (double) |
Public Member Functions | |
ENumeric (QWidget *parent, int intDigits=3, int decDigits=1) | |
~ENumeric () | |
void | setValue (double v) |
void | silentSetValue (double v) |
double | value () const |
void | setMaximum (double v) |
double | maximum () const |
void | setMinimum (double v) |
double | minimum () const |
void | setIntDigits (int i) |
int | intDigits () const |
void | setDecDigits (int d) |
int | decDigits () const |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
int | neededWidth () const |
int | neededHeight () const |
void | updateMaxMinAuto () |
Protected Slots | |
void | resizeEvent (QResizeEvent *) |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *) |
Properties | |
int | integerDigits |
int | decimalDigits |
double | value |
double | maximum |
double | minimum |
a widget to set a value
this widget is used to set a value, whenever the displayed value changes the signal valueChanged(double) is emitted
ENumeric::ENumeric | ( | QWidget * | parent, |
int | intDigits = 3 , |
||
int | decDigits = 1 |
||
) |
constructor
intDigits | number of integer digits |
decDigits | number of decimal digits |
|
inline |
|
inline |
returns number of decimal digits displayed
Referenced by EApplyNumeric::decDigits().
|
inline |
returns number of integer digits displayed
Referenced by EApplyNumeric::intDigits().
|
inline |
returns the maximum value of the widget
|
inline |
returns the minimum value of the widget
|
virtual |
References neededHeight(), and neededWidth().
Referenced by EApplyNumeric::minimumSizeHint().
int ENumeric::neededHeight | ( | ) | const |
Referenced by minimumSizeHint(), and sizeHint().
int ENumeric::neededWidth | ( | ) | const |
Referenced by minimumSizeHint(), and sizeHint().
|
protectedslot |
References MARGIN, and MIN_MARGIN.
void ENumeric::setDecDigits | ( | int | d | ) |
sets number of deciam digits to be displayed
d | number of digits |
References setMaximum(), and setMinimum().
Referenced by EApplyNumeric::setDecDigits().
|
virtualslot |
|
virtualslot |
void ENumeric::setIntDigits | ( | int | i | ) |
sets number of integer digits to be displayed
i | number of digits |
Referenced by EApplyNumeric::setIntDigits().
void ENumeric::setMaximum | ( | double | v | ) |
sets the maximum value of the widget
v | max val |
Referenced by setDecDigits(), and EApplyNumeric::setMaximum().
void ENumeric::setMinimum | ( | double | v | ) |
sets the minimum value of the widget
v | min val |
Referenced by setDecDigits(), and EApplyNumeric::setMinimum().
void ENumeric::setValue | ( | double | v | ) |
sets value displayed by the widget
v | the value to be displayed |
References valueChanged().
Referenced by EApplyNumeric::setValue().
|
protectedvirtual |
void ENumeric::silentSetValue | ( | double | v | ) |
same as setValue(), but does not emit valueChanged() signal. Used by QTango TNumeric widget when automatically configured, to initialize a value on the apply numeric widget without causing a signal to be emitted.
|
virtual |
References neededHeight(), and neededWidth().
Referenced by EApplyNumeric::sizeHint().
void ENumeric::updateMaxMinAuto | ( | ) |
Referenced by EApplyNumeric::updateMaxMinAuto().
|
inline |
returns the value displayed by the widget
|
signal |
Referenced by setValue().
|
readwrite |
|
readwrite |
|
readwrite |
Referenced by EApplyNumeric::maximum().
|
readwrite |
Referenced by EApplyNumeric::minimum().
|
readwrite |
Referenced by EApplyNumeric::applyValue(), and EApplyNumeric::value().