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::QtRSOption Class Reference

Widget that can be used to input a casacore::String, casacore::String choice, double, bool, casacore::String array, or casacore::String choice array. More...

#include <QtSingleRegionShape.qo.h>

Inheritance diagram for casa::QtRSOption:

Public Member Functions

 QtRSOption (RegionShape::OptionType type, const casacore::String &name, const RSOption &value, const std::vector< casacore::String > &choices)
 Constructor. More...
 
 ~QtRSOption ()
 Destructor. More...
 
RSOption value () const
 Returns entered value. More...
 

Private Slots

void moreArray ()
 Add another array widget. More...
 
void lessArray ()
 Remove an array widget. More...
 

Private Attributes

RegionShape::OptionType m_type
 Type. More...
 
QLineEdit * m_string
 Value widgets. More...
 
QComboBox * m_choice
 
QDoubleSpinBox * m_double
 
QCheckBox * m_bool
 
std::vector< QLineEdit * > m_stringArray
 
std::vector< QComboBox * > m_choiceArray
 
std::vector< casacore::Stringm_choices
 
QToolButton * m_lessButton
 
QToolButton * m_moreButton
 

Detailed Description

Widget that can be used to input a casacore::String, casacore::String choice, double, bool, casacore::String array, or casacore::String choice array.

Definition at line 131 of file QtSingleRegionShape.qo.h.

Constructor & Destructor Documentation

casa::QtRSOption::QtRSOption ( RegionShape::OptionType  type,
const casacore::String name,
const RSOption value,
const std::vector< casacore::String > &  choices 
)

Constructor.

casa::QtRSOption::~QtRSOption ( )

Destructor.

Member Function Documentation

void casa::QtRSOption::lessArray ( )
privateslot

Remove an array widget.

void casa::QtRSOption::moreArray ( )
privateslot

Add another array widget.

RSOption casa::QtRSOption::value ( ) const

Returns entered value.

Member Data Documentation

QCheckBox* casa::QtRSOption::m_bool
private

Definition at line 154 of file QtSingleRegionShape.qo.h.

QComboBox* casa::QtRSOption::m_choice
private

Definition at line 152 of file QtSingleRegionShape.qo.h.

std::vector<QComboBox*> casa::QtRSOption::m_choiceArray
private

Definition at line 156 of file QtSingleRegionShape.qo.h.

std::vector<casacore::String> casa::QtRSOption::m_choices
private

Definition at line 157 of file QtSingleRegionShape.qo.h.

QDoubleSpinBox* casa::QtRSOption::m_double
private

Definition at line 153 of file QtSingleRegionShape.qo.h.

QToolButton* casa::QtRSOption::m_lessButton
private

Definition at line 158 of file QtSingleRegionShape.qo.h.

QToolButton * casa::QtRSOption::m_moreButton
private

Definition at line 158 of file QtSingleRegionShape.qo.h.

QLineEdit* casa::QtRSOption::m_string
private

Value widgets.

Definition at line 151 of file QtSingleRegionShape.qo.h.

std::vector<QLineEdit*> casa::QtRSOption::m_stringArray
private

Definition at line 155 of file QtSingleRegionShape.qo.h.

RegionShape::OptionType casa::QtRSOption::m_type
private

Type.

Definition at line 147 of file QtSingleRegionShape.qo.h.


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