SMESHGUI_dependParameter Class Reference

This class represents the base parameter which contains dependency of shown state of other parameters on value of current.

#include <SMESHGUI_aParameter.h>

Inheritance diagram for SMESHGUI_dependParameter:

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_dependParameter (const QString &=QString::null, const bool=false)
const ShownMapshownMap () const
ShownMapshownMap ()
virtual Type GetType () const =0
virtual bool GetNewInt (int &Value) const =0
virtual bool GetNewDouble (double &Value) const =0
virtual bool GetNewText (QString &Value) const =0
virtual void TakeValue (QWidget *)=0
virtual QWidget * CreateWidget (QWidget *) const =0
virtual void InitializeWidget (QWidget *) const =0
bool needPreview () const
virtual QString sigValueChanged () const
 Returns string representation of signal emitted when value in corrsponding widget is changed.
QString & Label ()

Protected Attributes

QString _label
bool _needPreview

Private Attributes

ShownMap myShownMap

Member Typedef Documentation

typedef QValueList< int > SMESHGUI_dependParameter.IntList
 

typedef QMap< int, IntList > SMESHGUI_dependParameter.ShownMap
 

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_dependParameter.SMESHGUI_dependParameter const QString &  = QString::null,
const   bool = false
 


Member Function Documentation

const ShownMap& SMESHGUI_dependParameter.shownMap  )  const
 

ShownMap& SMESHGUI_dependParameter.shownMap  ) 
 

virtual Type SMESHGUI_aParameter.GetType  )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual bool SMESHGUI_aParameter.GetNewInt int Value  )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual bool SMESHGUI_aParameter.GetNewDouble double &  Value  )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual bool SMESHGUI_aParameter.GetNewText QString &  Value  )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual void SMESHGUI_aParameter.TakeValue QWidget *   )  [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual QWidget* SMESHGUI_aParameter.CreateWidget QWidget *   )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

virtual void SMESHGUI_aParameter.InitializeWidget QWidget *   )  const [pure virtual, inherited]
 

Implemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

bool SMESHGUI_aParameter.needPreview  )  const [inherited]
 

virtual QString SMESHGUI_aParameter.sigValueChanged  )  const [virtual, inherited]
 

Reimplemented in SMESHGUI_intParameter, SMESHGUI_doubleParameter, SMESHGUI_strParameter, SMESHGUI_enumParameter, SMESHGUI_boolParameter, and SMESHGUI_tableParameter.

QString& SMESHGUI_aParameter.Label  )  [inherited]
 


Field Documentation

ShownMap SMESHGUI_dependParameter.myShownMap [private]
 

QString SMESHGUI_aParameter._label [protected, inherited]
 

bool SMESHGUI_aParameter._needPreview [protected, inherited]