Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ArrayParam Class Reference

Represents an array parameter int, as used by commands. More...

#include <arrayparam.h>

Inheritance diagram for ArrayParam:

CmdParam List of all members.

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)

Detailed Description

Represents an array parameter int, as used by commands.

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.


Constructor & Destructor Documentation

ArrayParam::ArrayParam const char *  formalVarName,
const char *  defaultValue,
SuperPtrList< CmdParam > *  extVarElements,
const char *  exactTypeName = "unknown_array"
[inline]
 


Member Function Documentation

virtual QWidget* ArrayParam::createWidget QWidget *  parent,
const char *  name,
const QObject *  slotOwner,
const char *  member
[inline, virtual]
 

Implements CmdParam.

virtual QString ArrayParam::getWidgetValue QWidget *  widget  )  [inline, virtual]
 

Implements CmdParam.

virtual void ArrayParam::setWidgetValue QWidget *  widget,
const QString &  value
[inline, virtual]
 

Implements CmdParam.


The documentation for this class was generated from the following file:
Generated on Fri Feb 27 12:01:40 2004 for Glitch by doxygen 1.3.2