SMESHGUI_strParameter Class Reference

This class provides parameter with string value.

#include <SMESHGUI_aParameter.h>

Inheritance diagram for SMESHGUI_strParameter:

Inheritance graph

Public Types

typedef bool(* VALIDATION_FUNC )(SMESHGUI_aParameter *)
enum  Type {
  INT, DOUBLE, STRING, ENUM,
  BOOL, TABLE
}

Public Member Functions

 SMESHGUI_strParameter (const QString &initValue="", const QString &label=QString::null, const bool=false)
QString & InitValue ()
virtual Type GetType () const
virtual bool GetNewInt (int &Value) const
virtual bool GetNewDouble (double &Value) const
virtual bool GetNewText (QString &Value) 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.
bool needPreview () const
QString & Label ()

Protected Attributes

QString _initValue
QString _newValue
QString _label
bool _needPreview

Member Typedef Documentation

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_strParameter.SMESHGUI_strParameter const QString &  initValue = "",
const QString &  label = QString::null,
const   bool = false
 


Member Function Documentation

QString& SMESHGUI_strParameter.InitValue  ) 
 

virtual Type SMESHGUI_strParameter.GetType  )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_strParameter.GetNewInt int Value  )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_strParameter.GetNewDouble double &  Value  )  const [virtual]
 

Implements SMESHGUI_aParameter.

virtual bool SMESHGUI_strParameter.GetNewText QString &  Value  )  const [virtual]
 

Implements SMESHGUI_aParameter.

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

Implements SMESHGUI_aParameter.

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

Implements SMESHGUI_aParameter.

virtual void SMESHGUI_strParameter.TakeValue QWidget *   )  [virtual]
 

Implements SMESHGUI_aParameter.

virtual QString SMESHGUI_strParameter.sigValueChanged  )  const [virtual]
 

Reimplemented from SMESHGUI_aParameter.

bool SMESHGUI_aParameter.needPreview  )  const [inherited]
 

QString& SMESHGUI_aParameter.Label  )  [inherited]
 


Field Documentation

QString SMESHGUI_strParameter._initValue [protected]
 

QString SMESHGUI_strParameter._newValue [protected]
 

QString SMESHGUI_aParameter._label [protected, inherited]
 

bool SMESHGUI_aParameter._needPreview [protected, inherited]