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

(Not finished) Widget for entering a value based on its type. More...

#include <TBTypes.qo.h>

Inheritance diagram for casa::TBTypes:

Public Member Functions

 TBTypes (casacore::String type, bool incArrays=true)
 Constructor that takes the starting type and whether or not to include arrays in the list of types available. More...
 
 ~TBTypes ()
 
void setType (casacore::String type)
 Sets the current display to allow values for the given type. More...
 

Private Slots

void recordChooserChanged (int index)
 Slot for when the user selects a type in the record chooser. More...
 
void arrayDimSet ()
 Slot for when the user enters the dimensions for an array. More...
 
void arrayValSet ()
 Slot for when the user sets the value of an array cell. More...
 

Private Member Functions

void setupArray ()
 Sets up the display needed for arrays. More...
 
void setupRecord ()
 Sets up the display needed for records. More...
 

Private Attributes

casacore::String type
 Current type. More...
 
std::vector< casacore::String > * types
 All available types. More...
 
TBTypesarrayTypes
 TBTypes panel for entering single array cell values. More...
 
TBTypesrecordTypes
 TBTypes panel for entering single record values. More...
 

Detailed Description

(Not finished) Widget for entering a value based on its type.

Synopsis

TBTypes is a widget with a number of different panels. Each panel has a different type of input that correspondings to different data types. (For example, when entering a number a text field is used whereas entering a complex has two spinners.) Using the TBTypes::setType() method, the different panels are shown or hidden as necessary. Important: the functionality of actually collecting the input is not yet implemented.

Definition at line 51 of file TBTypes.qo.h.

Constructor & Destructor Documentation

casa::TBTypes::TBTypes ( casacore::String  type,
bool  incArrays = true 
)

Constructor that takes the starting type and whether or not to include arrays in the list of types available.

casa::TBTypes::~TBTypes ( )

Member Function Documentation

void casa::TBTypes::arrayDimSet ( )
privateslot

Slot for when the user enters the dimensions for an array.

void casa::TBTypes::arrayValSet ( )
privateslot

Slot for when the user sets the value of an array cell.

(Not implemented.)

void casa::TBTypes::recordChooserChanged ( int  index)
privateslot

Slot for when the user selects a type in the record chooser.

void casa::TBTypes::setType ( casacore::String  type)

Sets the current display to allow values for the given type.

void casa::TBTypes::setupArray ( )
private

Sets up the display needed for arrays.

void casa::TBTypes::setupRecord ( )
private

Sets up the display needed for records.

Member Data Documentation

TBTypes* casa::TBTypes::arrayTypes
private

TBTypes panel for entering single array cell values.

Definition at line 73 of file TBTypes.qo.h.

TBTypes* casa::TBTypes::recordTypes
private

TBTypes panel for entering single record values.

Definition at line 76 of file TBTypes.qo.h.

casacore::String casa::TBTypes::type
private

Current type.

Definition at line 67 of file TBTypes.qo.h.

std::vector<casacore::String>* casa::TBTypes::types
private

All available types.

Definition at line 70 of file TBTypes.qo.h.


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