Optika GUI Toolik
Version of the Day
|
An Abstract base class for both 2D and 1D ArrayWidgets. More...
#include <Optika_ArrayWidget.hpp>
Public Member Functions | |
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... | |
Constructors | |
GenericArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0) | |
Constructs a GenericArrayWidget. More... | |
Protected Functions | |
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... | |
virtual QLayout * | getArrayLayout ()=0 |
Get's the layout to be used for the array container in the widget. More... | |
virtual void | doAcceptWork ()=0 |
Gathers all the user inputed data and closes the dialog. More... | |
Protected Members | |
QWidget * | arrayContainer |
The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor. More... | |
Private Members | |
QString | type |
The type of array. More... | |
QString | name |
RCP< const ParameterEntryValidator > | entryValidator |
The validator being used on the array. More... | |
An Abstract base class for both 2D and 1D ArrayWidgets.
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.
Definition at line 74 of file Optika_ArrayWidget.hpp.
Optika::GenericArrayWidget< S >::GenericArrayWidget | ( | QString | name, |
QString | type, | ||
const RCP< const ParameterEntryValidator > | validator, | ||
QWidget * | parent = 0 |
||
) |
Constructs a GenericArrayWidget.
name | The name of the parameter beting edited. |
type | The arrays template type. |
validator | The validator to be used on the Array. |
parent | The parent widget. |
Definition at line 197 of file Optika_ArrayWidget.hpp.
|
inline |
Gets the type of array being edited.
Definition at line 102 of file Optika_ArrayWidget.hpp.
|
inline |
Returns the name of the parameter being edits.
Definition at line 109 of file Optika_ArrayWidget.hpp.
|
inline |
Returns the validator being used on the array.
Definition at line 116 of file Optika_ArrayWidget.hpp.
|
pure virtual |
called when the user is done entering data into the widget. MUST BE IMPLEMENTED AS A SLOT IN CONCRETE SUBCLASSES!
|
inlineprotectedvirtual |
Sets up the layout for the arrayContainer, including adding what ever editing widget should be used for the particual type of array.
Definition at line 138 of file Optika_ArrayWidget.hpp.
|
protectedpure virtual |
Get's the layout to be used for the array container in the widget.
Implemented in Optika::Generic1DArrayWidget< S >, Optika::Generic1DArrayWidget< double >, Optika::Generic1DArrayWidget< std::string >, Optika::Generic1DArrayWidget< float >, Optika::Generic1DArrayWidget< int >, Optika::Generic1DArrayWidget< short >, Optika::Generic2DArrayWidget< S >, Optika::Generic2DArrayWidget< double >, Optika::Generic2DArrayWidget< std::string >, Optika::Generic2DArrayWidget< float >, Optika::Generic2DArrayWidget< int >, and Optika::Generic2DArrayWidget< short >.
|
protectedpure virtual |
Gathers all the user inputed data and closes the dialog.
Implemented in Optika::Generic1DArrayWidget< S >, Optika::Generic1DArrayWidget< double >, Optika::Generic1DArrayWidget< std::string >, Optika::Generic1DArrayWidget< float >, Optika::Generic1DArrayWidget< int >, Optika::Generic1DArrayWidget< short >, Optika::Generic2DArrayWidget< S >, Optika::Generic2DArrayWidget< double >, Optika::Generic2DArrayWidget< std::string >, Optika::Generic2DArrayWidget< float >, Optika::Generic2DArrayWidget< int >, and Optika::Generic2DArrayWidget< short >.
|
protected |
The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor.
Definition at line 168 of file Optika_ArrayWidget.hpp.
|
private |
The type of array.
Definition at line 181 of file Optika_ArrayWidget.hpp.
|
private |
The name of the Parameter being edited.
Definition at line 186 of file Optika_ArrayWidget.hpp.
|
private |
The validator being used on the array.
Definition at line 191 of file Optika_ArrayWidget.hpp.