(Not finished) Widget for entering a value based on its type. More...
#include <TBTypes.qo.h>
Public Member Functions | |
| TBTypes (String type, bool incArrays=true) | |
| Constructor that takes the starting type and whether or not to include arrays in the list of types available. | |
| ~TBTypes () | |
| void | setType (String type) |
| Sets the current display to allow values for the given type. | |
Private Slots | |
| void | recordChooserChanged (int index) |
| Slot for when the user selects a type in the record chooser. | |
| void | arrayDimSet () |
| Slot for when the user enters the dimensions for an array. | |
| void | arrayValSet () |
| Slot for when the user sets the value of an array cell. | |
Private Member Functions | |
| void | setupArray () |
| Sets up the display needed for arrays. | |
| void | setupRecord () |
| Sets up the display needed for records. | |
Private Attributes | |
| String | type |
| Current type. | |
| std::vector< String > * | types |
| All available types. | |
| TBTypes * | arrayTypes |
| TBTypes panel for entering single array cell values. | |
| TBTypes * | recordTypes |
| TBTypes panel for entering single record values. | |
(Not finished) Widget for entering a value based on its type.
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.
| casa::TBTypes::TBTypes | ( | 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 | ( | ) |
| void casa::TBTypes::arrayDimSet | ( | ) | [private, slot] |
Slot for when the user enters the dimensions for an array.
| void casa::TBTypes::arrayValSet | ( | ) | [private, slot] |
Slot for when the user sets the value of an array cell.
(Not implemented.)
| void casa::TBTypes::recordChooserChanged | ( | int | index | ) | [private, slot] |
Slot for when the user selects a type in the record chooser.
| void casa::TBTypes::setType | ( | 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.
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.
String casa::TBTypes::type [private] |
Current type.
Definition at line 67 of file TBTypes.qo.h.
std::vector<String>* casa::TBTypes::types [private] |
All available types.
Definition at line 70 of file TBTypes.qo.h.
1.6.1