A templated abstract base class for all 1D array editing widgets. More...
#include <Optika_ArrayWidget.hpp>


Public Member Functions | |
Constructor | |
| Generic1DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0) | |
| Constructs a Generic1DArrayWidget. | |
Attribute/Query Methods | |
| const Array< S > | getData () const |
Miscellaneous | |
| void | initData (Array< S > array) |
Initializes all of the data in the array widget so when it pops up, the individual widgets are populate with their current values in the array. Also, sets the baseArray to array. | |
| virtual QWidget * | getEditorWidget (int index)=0 |
| Gets the widget to be used as an editor for each entry in the array. | |
| virtual Array< S > | getArrayFromWidgets ()=0 |
| Get a new array reflecting the current values entered in the widgets. | |
Protected Types | |
Protected types | |
| typedef std::vector< QWidget * > | WVector |
| Convienece typedef. Represents an array of QWidgets. | |
Protected Member Functions | |
Overriden from GenericArrayWidget | |
| void | doAcceptWork () |
Protected Attributes | |
Protected members | |
| WVector | widgetVector |
| Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor. | |
| Array< S > | baseArray |
| The array to be edited. | |
A templated abstract base class for all 1D array editing widgets.
Array
| Optika::Generic1DArrayWidget< S >::Generic1DArrayWidget | ( | QString | name, |
| QString | type, | ||
| const RCP< const ParameterEntryValidator > | validator, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructs a Generic1DArrayWidget.
| name | The name of the parmaeter being edited. |
| type | The array's template type. |
| validator | The validator on the array (null if there is none). |
| parent | The parent widget. |
| virtual Array<S> Optika::Generic1DArrayWidget< S >::getArrayFromWidgets | ( | ) | [pure virtual] |
Get a new array reflecting the current values entered in the widgets.
Implemented in Optika::StringArrayWidget, Optika::FloatArrayWidget, Optika::DoubleArrayWidget, Optika::ShortArrayWidget, and Optika::IntArrayWidget.
| const Array<S> Optika::Generic1DArrayWidget< S >::getData | ( | ) | const [inline] |
Return the array backing this widget.
| The | array backing this widget. |
| void Optika::Generic1DArrayWidget< S >::initData | ( | Array< S > | array | ) | [inline] |
Initializes all of the data in the array widget so when it pops up, the individual widgets are populate with their current values in the array. Also, sets the baseArray to array.
| array | The array that should be used to populate the individual widgets making up the ArrayWidget. |
1.7.6.1