casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
casa::QtSliderLabel Class Reference

#include <QtGuiEntry.qo.h>

Inheritance diagram for casa::QtSliderLabel:
casa::QtSliderBase

Public Member Functions

 QtSliderLabel (QDomElement &ele, QWidget *parent=0)
 
 ~QtSliderLabel ()
 
- 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 Member Functions

 QtSliderLabel (QWidget *parent=0)
 (not intended for use at present). More...
 
void updateText ()
 Sets value label to (normalized) current 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 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 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...
 

Detailed Description

Definition at line 320 of file QtGuiEntry.qo.h.

Constructor & Destructor Documentation

casa::QtSliderLabel::QtSliderLabel ( QDomElement &  ele,
QWidget *  parent = 0 
)
casa::QtSliderLabel::~QtSliderLabel ( )
inline

Definition at line 329 of file QtGuiEntry.qo.h.

casa::QtSliderLabel::QtSliderLabel ( QWidget *  parent = 0)
inlineprotected

(not intended for use at present).

Definition at line 334 of file QtGuiEntry.qo.h.

Member Function Documentation

void casa::QtSliderLabel::updateText ( )
protectedvirtual

Sets value label to (normalized) current value.

Implements casa::QtSliderBase.


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