casa
$Rev:20696$
|
Widget for choosing a label. More...
#include <QtEditingWidget.qo.h>
Public Member Functions | |
QtLabelWidget (const String &defaultLabel, QWidget *parent=NULL) | |
Constructor which takes the label associated with the "default" option, and an optional parent widget. | |
~QtLabelWidget () | |
Destructor. | |
String | getValue () const |
Gets/Sets the currently set label on the widget. | |
void | setValue (const String &value) |
void | addRadioButtonsToGroup (QButtonGroup *group) const |
Overrides PlotMSWidget::addRadioButtonsToGroup(). | |
Private Slots | |
void | labelChanged (bool check=true) |
Slot for when the set label changes. | |
Private Attributes | |
String | itsDefault_ |
Default label. | |
String | itsValue_ |
Last set label. |
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 67 of file QtEditingWidget.qo.h.
casa::QtLabelWidget::QtLabelWidget | ( | const String & | defaultLabel, |
QWidget * | parent = NULL |
||
) |
Constructor which takes the label associated with the "default" option, and an optional parent widget.
Destructor.
void casa::QtLabelWidget::addRadioButtonsToGroup | ( | QButtonGroup * | group | ) | const [virtual] |
Overrides PlotMSWidget::addRadioButtonsToGroup().
Reimplemented from casa::QtEditingWidget.
String casa::QtLabelWidget::getValue | ( | ) | const |
Gets/Sets the currently set label on the widget.
void casa::QtLabelWidget::labelChanged | ( | bool | check = true | ) | [private, slot] |
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 String & | value | ) |
String casa::QtLabelWidget::itsDefault_ [private] |
Default label.
Definition at line 89 of file QtEditingWidget.qo.h.
String casa::QtLabelWidget::itsValue_ [private] |
Last set label.
Definition at line 92 of file QtEditingWidget.qo.h.