Optika  Development
 All Classes Files Functions Variables Typedefs Pages
List of all members
Optika::Int2DArrayWidget Class Reference

A 2DArrayWidget used for editing arrays whose template type is int. More...

#include <Optika_ArrayWidget.hpp>

Inheritance diagram for Optika::Int2DArrayWidget:
Inheritance graph
[legend]
Collaboration diagram for Optika::Int2DArrayWidget:
Collaboration graph
[legend]

Public Slots

Overriden from GenericArrayWidget
void accept ()
 

Public Member Functions

Constructors
 Int2DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs an Int2DArrayWidget. More...
 
- Public Member Functions inherited from Optika::Generic2DArrayWidget< int >
 Generic2DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs a Generic2DArrayWidget. More...
 
void initData (TwoDArray< int > 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...
 
TwoDArray< int > getArrayFromWidgets ()
 Retrieves all the data currently entered in each of the individual widgets and compiles it into a TwoDArray. More...
 
TwoDArray< int > getData () const
 gets the data currently stored in baseArray.
 
- Public Member Functions inherited from Optika::GenericArrayWidget< int >
const QString getType () const
 Gets the type of array being edited. More...
 
const QString getName () const
 Returns the name of the parameter being edits.
 
const RCP< const
ParameterEntryValidator > 
getEntryValidator () const
 Returns the validator being used on the array.
 
virtual void accept ()=0
 called when the user is done entering data into the widget. MUST BE IMPLEMENTED AS A SLOT IN CONCRETE SUBCLASSES!
 
 GenericArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs a GenericArrayWidget. More...
 

Overridden from Generic2DArrayWidget

int getWidgetValue (int row, int col)
 
QWidget * getEditorWidget (int row, int col)
 

Additional Inherited Members

- Protected Member Functions inherited from Optika::Generic2DArrayWidget< int >
void doAcceptWork ()
 Do all the things that need to be done when accept is called. More...
 
- Protected Member Functions inherited from Optika::GenericArrayWidget< int >
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.
 
- Protected Attributes inherited from Optika::Generic2DArrayWidget< int >
TwoDArray< QWidget * > widgetArray
 An array containing the individual widgets which make up the array widget editor. The widget at row,col is the widget which will edit the value at row,col in the baseArray.
 
TwoDArray< int > baseArray
 The actual array data that the widget is editing. When the user is finished editing, this TwoDArray is then populated with the values they entered.
 
- Protected Attributes inherited from Optika::GenericArrayWidget< int >
QWidget * arrayContainer
 The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor.
 

Detailed Description

A 2DArrayWidget used for editing arrays whose template type is int.

Constructor & Destructor Documentation

Optika::Int2DArrayWidget::Int2DArrayWidget ( QString  name,
QString  type,
const RCP< const ParameterEntryValidator >  validator,
QWidget *  parent = 0 
)
inline

Constructs an Int2DArrayWidget.

Parameters
nameThe name of the parameter beting edited.
typeThe arrays template type.
validatorThe validator to be used on the Array.
parentThe parent widget.

The documentation for this class was generated from the following file: