SMESHGUI_enumParameter Class Reference

This class represents parameter which can have value from fixed set.

#include <SMESHGUI_aParameter.h>

Inheritance diagram for SMESHGUI_enumParameter:

Inheritance graph

Public Types

typedef QValueList< intIntList
 This map describes what parameters must be shown when this parameter has value as key The list contains some indices of parameters (for example, order in some list) Value is integer based 0. If map is empty, it means that there is no dependencies.
typedef QMap< int, IntListShownMap
typedef bool(* VALIDATION_FUNC )(SMESHGUI_aParameter *)
enum  Type {
  INT, DOUBLE, STRING, ENUM,
  BOOL, TABLE
}

Public Member Functions

 SMESHGUI_enumParameter (const QStringList &values, const int init=0, const QString &label=QString::null, const bool=false)
 Creates parameter with set of values 'values', default value 'init' and title 'label' Every value can be described both by integer based 0 or by string value.
virtual ~SMESHGUI_enumParameter ()
int Count () const
 Returns count of possible values.
intInitValue ()
virtual Type GetType () const
virtual bool GetNewInt (int &) const
virtual bool GetNewDouble (double &) const
virtual bool GetNewText (QString &) const
virtual QWidget * CreateWidget (QWidget *) const
virtual void InitializeWidget (QWidget *) const
virtual void TakeValue (QWidget *)
virtual QString sigValueChanged () const
 Returns string representation of signal emitted when value in corrsponding widget is changed.
const ShownMapshownMap () const
ShownMapshownMap ()
bool needPreview () const
QString & Label ()

Protected Attributes

int myInitValue
int myValue
QStringList myValues
QString _label
bool _needPreview

Member Typedef Documentation

typedef QValueList< int > SMESHGUI_dependParameter.IntList [inherited]
 

typedef QMap< int, IntList > SMESHGUI_dependParameter.ShownMap [inherited]
 

typedef bool(* SMESHGUI_aParameter.VALIDATION_FUNC)(SMESHGUI_aParameter *) [inherited]
 


Member Enumeration Documentation

enum SMESHGUI_aParameter::Type [inherited]
 

Enumerator:
INT 
DOUBLE 
STRING 
ENUM 
BOOL 
TABLE 


Constructor & Destructor Documentation

SMESHGUI_enumParameter.SMESHGUI_enumParameter const QStringList &  values,
const int  init = 0,
const QString &  label = QString::null,
const   bool = false
 

virtual SMESHGUI_enumParameter.~SMESHGUI_enumParameter  )  [virtual]
 


Member Function Documentation

int SMESHGUI_enumParameter.Count  )  const
 

int& SMESHGUI_enumParameter.InitValue  ) 
 

virtual Type SMESHGUI_enumParameter.GetType  )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_enumParameter.GetNewInt int  )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_enumParameter.GetNewDouble double &   )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_enumParameter.GetNewText QString &   )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual QWidget* SMESHGUI_enumParameter.CreateWidget QWidget *   )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual void SMESHGUI_enumParameter.InitializeWidget QWidget *   )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual void SMESHGUI_enumParameter.TakeValue QWidget *   )  [virtual]
 

Implements SMESHGUI_aParameter.

virtual QString SMESHGUI_enumParameter.sigValueChanged  )  const [virtual]
 

Reimplemented from SMESHGUI_aParameter.

const ShownMap& SMESHGUI_dependParameter.shownMap  )  const [inherited]
 

ShownMap& SMESHGUI_dependParameter.shownMap  )  [inherited]
 

bool SMESHGUI_aParameter.needPreview  )  const [inherited]
 

QString& SMESHGUI_aParameter.Label  )  [inherited]
 


Field Documentation

int SMESHGUI_enumParameter.myInitValue [protected]
 

int SMESHGUI_enumParameter.myValue [protected]
 

QStringList SMESHGUI_enumParameter.myValues [protected]
 

QString SMESHGUI_aParameter._label [protected, inherited]
 

bool SMESHGUI_aParameter._needPreview [protected, inherited]