casa
5.7.0-16
|
#include <QtGuiEntry.qo.h>
Public Member Functions | |
QtSliderEditor (QDomElement &ele, QWidget *parent=0) | |
~QtSliderEditor () | |
Public Member Functions inherited from casa::QtSliderBase | |
void | setLabelText (QString txt) |
Set interface label text ('listname'). More... | |
QString | name () |
Internal name ('dlformat') More... | |
void | reSet (QDomElement &ele) |
Set up main state (value, etc.) and external appearance of this widget, according to options record (passed as a QDomElement). More... | |
Protected Slots | |
virtual void | edited () |
Protected Slots inherited from casa::QtSliderBase | |
virtual void | slChg (int slval) |
slider changed by user More... | |
virtual void | release () |
virtual void | setOriginal () |
'revert-to-original' selected in menu. More... | |
Protected Member Functions | |
QtSliderEditor (QWidget *parent=0) | |
(not intended for use at present). More... | |
void | updateText () |
Sets text box to (normalized) current value. More... | |
void | textChg (QString strval) |
main validation/update routine for changes to text version of value. More... | |
Protected Member Functions inherited from casa::QtSliderBase | |
QtSliderBase (QWidget *parent=0) | |
Only for use by derived classes. More... | |
~QtSliderBase () | |
void | constructBase (QDomElement &ele, QSlider *slider, QLabel *nameLabel, QToolButton *menuBtn) |
Derived class should call this within its constructor, after it has a valid QSlider, name QLabel and menu QToolButton (usually, after calling setUi()), passing them down in the parameters below. More... | |
void | getAttr (const QDomElement &ele, QString attnm, double &val) |
Fetch numeric value of attribute of ele named attnm, into val. More... | |
int | round (double val) |
double | externalVal (int sldVal) |
Integer values with in [0, slMax_] on the internal slider are scaled to external values within [dMin_, dMax_]. More... | |
int | sliderVal (double extVal) |
QString | toText (double val) |
These two routines convert 'external' values between double and text. More... | |
double | toNumber (QString text, bool *ok=0) |
QString | textVal () |
Current external value, as text. More... | |
void | adjSlIncr () |
Adjusts integer slider range (slMax_) and the increment that each unit on the slider represents (dIncr_), according to latest increment and range request (dIncr0_, dMin_, dMax_). More... | |
void | updateSlider () |
Sets slider to latest range and value (without triggering slider signals or slChg slot below). More... | |
void | emitVal () |
emit current value – widget's main output. More... | |
void | update (double dval) |
Accepts new value (if any), updates interface (without retriggering any internal slots). More... | |
Additional Inherited Members | |
Signals inherited from casa::QtSliderBase | |
void | itemValueChanged (QString name, QString value, int action, bool apply) |
Main output signal. More... | |
void | errMsg (casacore::String errmsg) |
class user may wish to connect to and display these. More... | |
Protected Attributes inherited from casa::QtSliderBase | |
double | dVal_ |
main state. More... | |
double | dMin_ |
double | dMax_ |
double | dIncr_ |
double | dIncr0_ |
double | slMax_ |
bool | floatrng_ |
Whether this element emits float values (ptype 'floatrange') vs. More... | |
bool | onrelease_ |
Should the event be generated only upon releasing the slider? More... | |
double | origVal_ |
For restoring 'original' value. More... | |
QSlider * | slider_ |
Relevant user interface elements. More... | |
QLabel * | nameLabel_ |
QToolButton * | menuBtn_ |
QString | itemName |
Internal name ('dlformat'). More... | |
Definition at line 273 of file QtGuiEntry.qo.h.
casa::QtSliderEditor::QtSliderEditor | ( | QDomElement & | ele, |
QWidget * | parent = 0 |
||
) |
|
inline |
Definition at line 282 of file QtGuiEntry.qo.h.
|
inlineprotected |
(not intended for use at present).
Definition at line 287 of file QtGuiEntry.qo.h.
|
inlineprotectedvirtualslot |
Definition at line 305 of file QtGuiEntry.qo.h.
References textChg().
|
protected |
main validation/update routine for changes to text version of value.
strval is the candidate text, which is still to be validated/normalized.
Referenced by edited().
|
inlineprotectedvirtual |
Sets text box to (normalized) current value.
(Should not trigger class's own slots either).
Implements casa::QtSliderBase.
Definition at line 294 of file QtGuiEntry.qo.h.
References casa::QtSliderBase::textVal().