Optika GUI Toolik
Version of the Day
|
A templated abstract base class for all 1D array editing widgets. More...
#include <Optika_ArrayWidget.hpp>
Constructor | |
Generic1DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0) | |
Constructs a Generic1DArrayWidget. More... | |
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 . More... | |
virtual QWidget * | getEditorWidget (int index)=0 |
Gets the widget to be used as an editor for each entry in the array. More... | |
virtual Array< S > | getArrayFromWidgets ()=0 |
Get a new array reflecting the current values entered in the widgets. More... | |
Protected types | |
typedef std::vector< QWidget * > | WVector |
Convienece typedef. Represents an array of QWidgets. More... | |
Protected members | |
WVector | widgetVector |
Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor. More... | |
Array< S > | baseArray |
The array to be edited. More... | |
Overriden from GenericArrayWidget | |
void | doAcceptWork () |
Private Functions | |
QLayout * | getArrayLayout () |
Get's the layout to be used for the array container in the widget. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Optika::GenericArrayWidget< S > | |
const QString | getType () const |
Gets the type of array being edited. More... | |
const QString | getName () const |
Returns the name of the parameter being edits. More... | |
const RCP< const ParameterEntryValidator > | getEntryValidator () const |
Returns the validator being used on the array. More... | |
virtual void | accept ()=0 |
called when the user is done entering data into the widget. MUST BE IMPLEMENTED AS A SLOT IN CONCRETE SUBCLASSES! More... | |
GenericArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0) | |
Constructs a GenericArrayWidget. More... | |
Protected Member Functions inherited from Optika::GenericArrayWidget< S > | |
virtual void | setupArrayLayout () |
Sets up the layout for the arrayContainer, including adding what ever editing widget should be used for the particual type of array. More... | |
Protected Attributes inherited from Optika::GenericArrayWidget< S > | |
QWidget * | arrayContainer |
The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor. More... | |
A templated abstract base class for all 1D array editing widgets.
Array
Definition at line 766 of file Optika_ArrayWidget.hpp.
|
protected |
Convienece typedef. Represents an array of QWidgets.
Definition at line 844 of file Optika_ArrayWidget.hpp.
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. |
Definition at line 882 of file Optika_ArrayWidget.hpp.
|
inline |
Return the array backing this widget.
The | array backing this widget. |
Definition at line 797 of file Optika_ArrayWidget.hpp.
|
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. |
Definition at line 816 of file Optika_ArrayWidget.hpp.
|
pure virtual |
Gets the widget to be used as an editor for each entry in the array.
Implemented in Optika::StringArrayWidget, Optika::FloatArrayWidget, Optika::DoubleArrayWidget, Optika::ShortArrayWidget, and Optika::IntArrayWidget.
|
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.
|
protectedvirtual |
Implements Optika::GenericArrayWidget< S >.
Definition at line 904 of file Optika_ArrayWidget.hpp.
|
privatevirtual |
Get's the layout to be used for the array container in the widget.
Implements Optika::GenericArrayWidget< S >.
Definition at line 892 of file Optika_ArrayWidget.hpp.
|
protected |
Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor.
Definition at line 854 of file Optika_ArrayWidget.hpp.
|
protected |
The array to be edited.
Definition at line 859 of file Optika_ArrayWidget.hpp.