A widget for editing an array of strings.
More...
#include <Optika_ArrayWidget.hpp>
|
| Generic1DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0) |
| Constructs a Generic1DArrayWidget. More...
|
|
const Array< std::string > | getData () const |
|
void | initData (Array< std::string > 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...
|
|
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...
|
|
typedef std::vector< QWidget * > | WVector |
| Convienece typedef. Represents an array of QWidgets. More...
|
|
void | doAcceptWork () |
|
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...
|
|
WVector | widgetVector |
| Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor. More...
|
|
Array< std::string > | baseArray |
| The array to be edited. More...
|
|
QWidget * | arrayContainer |
| The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor. More...
|
|
A widget for editing an array of strings.
Definition at line 1195 of file Optika_ArrayWidget.hpp.
Optika::StringArrayWidget::StringArrayWidget |
( |
QString |
name, |
|
|
QString |
type, |
|
|
const RCP< const ParameterEntryValidator > |
validator, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
inline |
Constructs a StringArrayWidget.
- Parameters
-
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 1210 of file Optika_ArrayWidget.hpp.
Array<std::string> Optika::StringArrayWidget::getArrayFromWidgets |
( |
| ) |
|
|
inlinevirtual |
QWidget* Optika::StringArrayWidget::getEditorWidget |
( |
int |
index | ) |
|
|
inlineprivatevirtual |
void Optika::StringArrayWidget::accept |
( |
| ) |
|
|
inlineslot |
The documentation for this class was generated from the following file: