|
Optika Development
|
#include <Optika_ArrayWidget.hpp>


Public Member Functions | |
| GenericArrayWidget (const QModelIndex index, QString type, QWidget *parent=0) | |
| QString | getType () |
| virtual std::string | saveData ()=0 |
| virtual void | initializeValues (QString values)=0 |
| virtual void | accept ()=0 |
Protected Types | |
| typedef std::vector< QWidget * > | WVector |
Protected Member Functions | |
| void | setupArrayLayout () |
Protected Attributes | |
| WVector | widgetVector |
| TreeModel * | model |
| QModelIndex | index |
| Teuchos::RCP< const Teuchos::ParameterEntryValidator > | entryValidator |
A templated abstract base class for all other array editing widgets. Note the absence of the Q_OBJECT macro. This is becuase classes using the Q_OBJECT macro can't be templated (bummer). The macro is therfore present in the subclasses.
typedef std::vector<QWidget*> Optika::GenericArrayWidget< S >::WVector [protected] |
Convienece typedef. Represents an array of QWidgets.
| Optika::GenericArrayWidget< S >::GenericArrayWidget | ( | const QModelIndex | index, |
| QString | type, | ||
| QWidget * | parent = 0 |
||
| ) | [inline] |
Constructs a GenericArrayWidget.
| index | The index of the array that is being edited. |
| type | The type of the array. |
| parent | The parent widget. |
| virtual void Optika::GenericArrayWidget< S >::accept | ( | ) | [pure virtual] |
Called when the user has entered in their desired values and is done editing the array. When reimplemented in a subclass, it should be a slot.
Implemented in Optika::IntArrayWidget, Optika::ShortArrayWidget, Optika::DoubleArrayWidget, Optika::FloatArrayWidget, and Optika::StringArrayWidget.
| QString Optika::GenericArrayWidget< S >::getType | ( | ) | [inline] |
Gets the type of array being edited.
| virtual void Optika::GenericArrayWidget< S >::initializeValues | ( | QString | values | ) | [pure virtual] |
Sets all of the values in the array widget to what they initially should be. When reimplemented in a subclass, it should be a slot.
| values | The values to which the array should be set. |
Implemented in Optika::IntArrayWidget, Optika::ShortArrayWidget, Optika::DoubleArrayWidget, Optika::FloatArrayWidget, and Optika::StringArrayWidget.
| virtual std::string Optika::GenericArrayWidget< S >::saveData | ( | ) | [pure virtual] |
Gets a string representing what should be saved back to the model. When reimplemented in a subclass, it should be a slot.
Implemented in Optika::IntArrayWidget, Optika::ShortArrayWidget, Optika::DoubleArrayWidget, Optika::FloatArrayWidget, and Optika::StringArrayWidget.
| void Optika::GenericArrayWidget< S >::setupArrayLayout | ( | ) | [inline, protected] |
Sets up the layout for the arrayContainer, including adding what ever editing widget should be used for the particual type of array.
Teuchos::RCP<const Teuchos::ParameterEntryValidator> Optika::GenericArrayWidget< S >::entryValidator [protected] |
The validator being used on the array.
QModelIndex Optika::GenericArrayWidget< S >::index [protected] |
The index in the TreeModel of the parameter the ArrayWidget is editing.
TreeModel* Optika::GenericArrayWidget< S >::model [protected] |
A pointer to the TreeModel the ArrayWidget is editing.
WVector Optika::GenericArrayWidget< S >::widgetVector [protected] |
Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor.
1.7.4