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

IntParam Class Reference

Represents a parameter of type int, used both by commmands and arrays. More...

#include <intparam.h>

Inheritance diagram for IntParam:

CmdParam UnsignedIntParam List of all members.

Public Member Functions

 IntParam (const char *formalVarName, const char *defaultValue, const char *exactTypeName="GLint", int minValue=INTEGER_MIN, int maxValue=INTEGER_MAX, int stepValue=INTEGER_STEP, int maxWidgetWidth=INTEGER_MAX_WIDGET_WIDTH)
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)
virtual int maxWidgetWidth () const

Private Attributes

int myMinValue
int myMaxValue
int myStepValue
int myMaxWidgetWidth

Detailed Description

Represents a parameter of type int, used both by commmands and arrays.

This class inherits CmdParam to provide a parameter that has a formal variable name, a default value and an exact type name, among other fields.

As an editor widget, it provides a simple integer QSpinBox.


Constructor & Destructor Documentation

IntParam::IntParam const char *  formalVarName,
const char *  defaultValue,
const char *  exactTypeName = "GLint",
int  minValue = INTEGER_MIN,
int  maxValue = INTEGER_MAX,
int  stepValue = INTEGER_STEP,
int  maxWidgetWidth = INTEGER_MAX_WIDGET_WIDTH
[inline]
 


Member Function Documentation

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

Implements CmdParam.

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

Implements CmdParam.

virtual int IntParam::maxWidgetWidth  )  const [inline, virtual]
 

Reimplemented from CmdParam.

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

Implements CmdParam.


Member Data Documentation

int IntParam::myMaxValue [private]
 

int IntParam::myMaxWidgetWidth [private]
 

int IntParam::myMinValue [private]
 

int IntParam::myStepValue [private]
 


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