#include <arrayparam.h>
Inheritance diagram for ArrayParam:

Public Member Functions | |
| ArrayParam (const char *formalVarName, const char *defaultValue, SuperPtrList< CmdParam > *extVarElements, const char *exactTypeName="unknown_array") | |
| virtual QWidget * | createWidget (QWidget *parent, const char *name, const QObject *slotOwner, const char *member) |
| virtual void | setWidgetValue (QWidget *widget, const QString &value) |
| virtual QString | getWidgetValue (QWidget *widget) |
This class inherits CmdParam to provide a parameter that has a formal variable name, a default value and an exact type name. Noticeably though, it has an extra property (vs intparam, floatparam, etc.) for the actual elements of the array, extVarElements. This is a list of pointers to CmdParam instances, enabling arrays of almost any type to by implemented.
As an editor widget, it provides a simple QLineEdit, which is used to it the variable's name. It also relies on support from Glitch to provide editor access to the external variable elements.
Assumption: All of the elements in extVarElements MUST be of the same type.
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Implements CmdParam. |
|
|
Implements CmdParam. |
|
||||||||||||
|
Implements CmdParam. |
1.3.2