casa::QtLabelWidget Class Reference

Widget for choosing a label. More...

#include <QtEditingWidget.qo.h>

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

List of all members.

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.

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 65 of file QtEditingWidget.qo.h.


Constructor & Destructor Documentation

casa::QtLabelWidget::QtLabelWidget ( const 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]
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  ) 

Member Data Documentation

Default label.

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

Last set label.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1