casa
5.7.0-16
|
Widget for choosing a label. More...
#include <QtEditingWidget.qo.h>
Public Member Functions | |
QtLabelWidget (const casacore::String &defaultLabel, QWidget *parent=NULL) | |
Constructor which takes the label associated with the "default" option, and an optional parent widget. More... | |
~QtLabelWidget () | |
Destructor. More... | |
casacore::String | getValue () const |
Gets/Sets the currently set label on the widget. More... | |
void | setValue (const casacore::String &value) |
void | addRadioButtonsToGroup (QButtonGroup *group) const |
Overrides PlotMSWidget::addRadioButtonsToGroup(). More... | |
Public Member Functions inherited from casa::QtEditingWidget | |
QtEditingWidget (QWidget *parent=NULL) | |
Constructor which takes an optional parent widget. More... | |
virtual | ~QtEditingWidget () |
Destructor. More... | |
Private Slots | |
void | labelChanged (bool check=true) |
Slot for when the set label changes. More... | |
Private Attributes | |
casacore::String | itsDefault_ |
Default label. More... | |
casacore::String | itsValue_ |
Last set label. More... | |
Additional Inherited Members | |
Signals inherited from casa::QtEditingWidget | |
void | changed () |
This signal should be emitted whenever the user changes any value settings in the GUI. More... | |
void | differentFromSet () |
This signal should be emitted when the user changes any value settings in the GUI AND the new value is different from the last set value. More... | |
void | editDone () |
to change widget focus when editing done More... | |
Widget for choosing a label.
Lets the user choose between no label, a default label given at construction, or a custom label they can set.
Definition at line 68 of file QtEditingWidget.qo.h.
casa::QtLabelWidget::QtLabelWidget | ( | const casacore::String & | defaultLabel, |
QWidget * | parent = NULL |
||
) |
Constructor which takes the label associated with the "default" option, and an optional parent widget.
casa::QtLabelWidget::~QtLabelWidget | ( | ) |
Destructor.
|
virtual |
Overrides PlotMSWidget::addRadioButtonsToGroup().
Reimplemented from casa::QtEditingWidget.
casacore::String casa::QtLabelWidget::getValue | ( | ) | const |
Gets/Sets the currently set label on the widget.
|
privateslot |
Slot for when the set label changes.
The "check" flag can be used to avoid emitting the changed signals twice (for example, when one radio button turns off when another turns on).
void casa::QtLabelWidget::setValue | ( | const casacore::String & | value | ) |
|
private |
Default label.
Definition at line 90 of file QtEditingWidget.qo.h.
|
private |
Last set label.
Definition at line 93 of file QtEditingWidget.qo.h.