Optika GUI Toolik Version of the Day
Public Slots | Public Member Functions | Private Member Functions
Optika::IntArrayWidget Class Reference

#include <Optika_ArrayWidget.hpp>

Inheritance diagram for Optika::IntArrayWidget:
Inheritance graph
[legend]

List of all members.

Public Slots

void accept ()
std::string saveData ()
void initializeValues (QString values)

Public Member Functions

 IntArrayWidget (const QModelIndex index, QString type, QWidget *parent=0)

Private Member Functions

QWidget * getEditorWidget ()

Detailed Description

A widget for editing Arrays of type int.

Definition at line 192 of file Optika_ArrayWidget.hpp.


Constructor & Destructor Documentation

Optika::IntArrayWidget::IntArrayWidget ( const QModelIndex  index,
QString  type,
QWidget *  parent = 0 
) [inline]

Constructs an IntArrayWidget.

Parameters:
indexThe index of the array that is being edited. being edited.
typeThe type of the array.
parentThe parent widget.

Definition at line 203 of file Optika_ArrayWidget.hpp.


Member Function Documentation

void Optika::IntArrayWidget::accept ( ) [inline, virtual, slot]

Called when the user has entered in their desired values and is done editing the array. When reimplemented in a subclass, it should be a slot.

Implements Optika::GenericArrayWidget< int >.

Definition at line 209 of file Optika_ArrayWidget.hpp.

std::string Optika::IntArrayWidget::saveData ( ) [inline, virtual, slot]

Gets a string representing what should be saved back to the model. When reimplemented in a subclass, it should be a slot.

Returns:
A string representing what should be saved back to the model.

Implements Optika::GenericArrayWidget< int >.

Definition at line 214 of file Optika_ArrayWidget.hpp.

void Optika::IntArrayWidget::initializeValues ( QString  values) [inline, virtual, slot]

Sets all of the values in the array widget to what they initially should be. When reimplemented in a subclass, it should be a slot.

Parameters:
valuesThe values to which the array should be set.

Implements Optika::GenericArrayWidget< int >.

Definition at line 222 of file Optika_ArrayWidget.hpp.

QWidget* Optika::IntArrayWidget::getEditorWidget ( ) [inline, private, virtual]

Gets the widget to be used as an editor for each entry in the array.

Implements Optika::GenericArrayWidget< int >.

Definition at line 232 of file Optika_ArrayWidget.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends