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

Widget for choosing a label. More...

#include <QtEditingWidget.qo.h>

Inheritance diagram for casa::QtLabelWidget:
casa::QtEditingWidget

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

void casa::QtLabelWidget::addRadioButtonsToGroup ( QButtonGroup *  group) const
virtual
casacore::String casa::QtLabelWidget::getValue ( ) const

Gets/Sets the currently set label on the widget.

void casa::QtLabelWidget::labelChanged ( bool  check = true)
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)

Member Data Documentation

casacore::String casa::QtLabelWidget::itsDefault_
private

Default label.

Definition at line 90 of file QtEditingWidget.qo.h.

casacore::String casa::QtLabelWidget::itsValue_
private

Last set label.

Definition at line 93 of file QtEditingWidget.qo.h.


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