37 # include <QDomDocument>
42 # include "adjustmentBottom.ui.h"
43 # include "sliderLabelItem.ui.h"
44 # include "sliderEditorItem.ui.h"
45 # include "lineEditorItem.ui.h"
46 # include "comboItem.ui.h"
47 # include "checkButtonItem.ui.h"
48 # include "pushButtonItem.ui.h"
49 # include "minMaxEditorItem.ui.h"
50 # include "pairItem.ui.h"
69 dataName->setText(txt);
132 void reSet(QDomElement& ele);
148 QLabel* nameLabel, QToolButton* menuBtn);
152 void getAttr(
const QDomElement& ele, QString attnm,
double& val);
187 return casacore::ifloor(val + .5);
206 QString
toText(
double val);
207 double toNumber(QString text,
bool* ok=0);
356 nameLabel->setText(txt);
391 nameLabel->setText(txt);
418 class QtCombo :
public QWidget,
private Ui::ComboItem {
422 QtCombo(QDomElement &ele, QWidget *parent=0);
425 nameLabel->setText(txt);
449 class QtBool :
public QWidget,
private Ui::ComboItem {
452 QtBool(QWidget *parent=0);
453 QtBool(QDomElement &ele, QWidget *parent=0);
456 nameLabel->setText(txt);
487 nameLabel->setText(txt);
505 class QtCheck :
public QWidget,
private Ui::CheckItem {
509 QtCheck(QDomElement &ele, QWidget *parent=0);
512 nameLabel->setText(txt);
531 void reSet(QStringList);
552 nameLabel->setText(txt);
void setLabelText(QString txt)
void itemValueChanged(QString name, QString value, int action, bool apply)
double toNumber(QString text, bool *ok=0)
QtCombo(QWidget *parent=0)
void updateText()
Sets text box to (normalized) current value.
void itemValueChanged(QString name, QString value, int action, bool apply)
double externalVal(int sldVal)
Integer values with in [0, slMax_] on the internal slider are scaled to external values within [dMin_...
void reSet(QDomElement &ele)
Set up main state (value, etc.) and external appearance of this widget, according to options record (...
void updateText()
Sets value label to (normalized) current value.
void apply(const Jones &j1, VisVector &v, const Jones &j2)
Apply a pair of Jones to a VisVector:
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
std::pair< int, int > readIntPair(QString value)
QtBool(QWidget *parent=0)
std::pair< double, double > readDoublePair(QString value)
QtPairEditor(QDomElement &ele, QWidget *parent=NULL)
bool floatrng_
Whether this element emits float values (ptype 'floatrange') vs.
QString itemName
Internal name ('dlformat').
QtLineEditor(QWidget *parent=0)
QString name()
Internal name ('dlformat')
void dataNameChanged(QString value)
can use PairItem because it's just a frame
General-purpose Qt options widget created from Record.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
QString textVal()
Current external value, as text.
double origVal_
For restoring 'original' value.
virtual void slChg(int slval)
slider changed by user
virtual void updateText()=0
Derived class should implement: set value text box or label (if any) to (normalized) current value...
void setLabelText(QString txt)
void itemValueChanged(QString name, QString value, int action, bool apply)
Main output signal.
void validateAndEmit(QString value)
void itemValueChanged(QString name, QString value, int action, bool apply)
bool onrelease_
Should the event be generated only upon releasing the slider?
QtSliderEditor(QWidget *parent=0)
(not intended for use at present).
void checkboxChanged(int newState)
void itemValueChanged(QString name, QString value, int action, bool apply)
QtSliderLabel(QDomElement &ele, QWidget *parent=0)
int sliderVal(double extVal)
void getAttr(const QDomElement &ele, QString attnm, double &val)
Fetch numeric value of attribute of ele named attnm, into val.
QtCheck(QWidget *parent=0)
void setLabelText(QString txt)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
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.
QtSliderEditor(QDomElement &ele, QWidget *parent=0)
QString toText(double val)
These two routines convert 'external' values between double and text.
QtRegionEditor(QWidget *parent=0)
void errMsg(casacore::String errmsg)
class user may wish to connect to and display these.
void itemValueChanged(QString name, QString value, int action, bool apply)
void emitVal()
emit current value – widget's main output.
QList< QCheckBox * > checkboxes_
void reSet(QString value)
bool validate(QString value)
void updateSlider()
Sets slider to latest range and value (without triggering slider signals or slChg slot below)...
void display2(QString value)
QtMinMaxEditor(QWidget *parent=0)
QtNumberEditor(QDomElement &ele, QWidget *parent=NULL)
QSlider * slider_
Relevant user interface elements.
Base class for QtAutoGui slider interface elements.
void setText(QString txt)
void setLabelText(QString txt)
Set interface label text ('listname').
void leaveEvent(QEvent *)
bool validate(QString value)
void setLabelText(QString txt)
void update(double dval)
Accepts new value (if any), updates interface (without retriggering any internal slots).
void setLabelText(QString txt)
virtual void setOriginal()
'revert-to-original' selected in menu.
std::pair< int, int > origVal1
void itemValueChanged(QString name, QString value, int action, bool apply)
void reSet(QString value)
String: the storage and methods of handling collections of characters.
void textChg(QString strval)
main validation/update routine for changes to text version of value.
void itemValueChanged(QString name, QString value, int action, bool apply)
QtSliderLabel(QWidget *parent=0)
(not intended for use at present).
std::pair< double, double > origVal2
QtSliderBase(QWidget *parent=0)
Only for use by derived classes.
void itemValueChanged(QString name, QString value, int action, bool apply)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void adjSlIncr()
Adjusts integer slider range (slMax_) and the increment that each unit on the slider represents (dInc...
QtAdjustmentTop(QtAutoGui *parent=0, QString name="")
bool validate(QString value)
void setLabelText(QString txt)