SMESHGUI_GenericHypothesisCreator Class Reference

Auxiliary class for creation of hypotheses.

#include <SMESHGUI_Hypotheses.h>

Inheritance diagram for SMESHGUI_GenericHypothesisCreator:

Inheritance graph

Public Member Functions

 SMESHGUI_GenericHypothesisCreator (const QString &)
virtual ~SMESHGUI_GenericHypothesisCreator ()
void create (const bool isAlgo, QWidget *)
void edit (SMESH::SMESH_Hypothesis_ptr, QWidget *)
void create (SMESH::SMESH_Hypothesis_ptr, QWidget *)
virtual bool checkParams () const =0
virtual void onReject ()
QString hypType () const
bool isCreation () const

Protected Types

typedef QValueList< StdParamListOfStdParams
typedef QPtrList< QWidget > ListOfWidgets

Protected Slots

virtual void onValueChanged ()

Protected Member Functions

SMESH::SMESH_Hypothesis_var hypothesis () const
SMESH::SMESH_Hypothesis_var initParamsHypothesis () const
const ListOfWidgetswidgets () const
ListOfWidgetschangeWidgets ()
QtxDialogdlg () const
virtual QFramebuildFrame ()=0
QFramebuildStdFrame ()
virtual void retrieveParams () const =0
virtual QString storeParams () const =0
virtual bool stdParams (ListOfStdParams &) const
bool getStdParamFromDlg (ListOfStdParams &) const
virtual void attuneStdWidget (QWidget *, const int) const
virtual QWidget * getCustomWidget (const StdParam &, QWidget *, const int) const
virtual bool getParamFromCustomWidget (StdParam &, QWidget *) const
virtual QString caption () const
virtual QPixmap icon () const
virtual QString type () const

Static Protected Member Functions

static QString stdParamValues (const ListOfStdParams &)

Private Member Functions

bool editHypothesis (SMESH::SMESH_Hypothesis_ptr, QWidget *)

Private Attributes

SMESH::SMESH_Hypothesis_var myHypo
SMESH::SMESH_Hypothesis_var myInitParamsHypo
QString myHypType
ListOfWidgets myParamWidgets
bool myIsCreate
QtxDialogmyDlg

Data Structures

struct  StdParam

Member Typedef Documentation

typedef QValueList<StdParam> SMESHGUI_GenericHypothesisCreator.ListOfStdParams [protected]
 

typedef QPtrList<QWidget> SMESHGUI_GenericHypothesisCreator.ListOfWidgets [protected]
 


Constructor & Destructor Documentation

SMESHGUI_GenericHypothesisCreator::SMESHGUI_GenericHypothesisCreator const QString &   ) 
 

SMESHGUI_GenericHypothesisCreator::~SMESHGUI_GenericHypothesisCreator  )  [virtual]
 


Member Function Documentation

void SMESHGUI_GenericHypothesisCreator::create const bool  isAlgo,
QWidget * 
 

void SMESHGUI_GenericHypothesisCreator::edit SMESH::SMESH_Hypothesis_ptr  ,
QWidget * 
 

void SMESHGUI_GenericHypothesisCreator::create SMESH::SMESH_Hypothesis_ptr  ,
QWidget * 
 

virtual bool SMESHGUI_GenericHypothesisCreator.checkParams  )  const [pure virtual]
 

Implemented in StdMeshersGUI_NbSegmentsCreator, and StdMeshersGUI_StdHypothesisCreator.

void SMESHGUI_GenericHypothesisCreator::onReject  )  [virtual]
 

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

QString SMESHGUI_GenericHypothesisCreator::hypType  )  const
 

bool SMESHGUI_GenericHypothesisCreator::isCreation  )  const
 

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::hypothesis  )  const [protected]
 

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator::initParamsHypothesis  )  const [protected]
 

const SMESHGUI_GenericHypothesisCreator::ListOfWidgets & SMESHGUI_GenericHypothesisCreator::widgets  )  const [protected]
 

SMESHGUI_GenericHypothesisCreator::ListOfWidgets & SMESHGUI_GenericHypothesisCreator::changeWidgets  )  [protected]
 

QtxDialog* SMESHGUI_GenericHypothesisCreator.dlg  )  const [protected]
 

virtual QFrame* SMESHGUI_GenericHypothesisCreator.buildFrame  )  [protected, pure virtual]
 

Implemented in StdMeshersGUI_NbSegmentsCreator, and StdMeshersGUI_StdHypothesisCreator.

QFrame * SMESHGUI_GenericHypothesisCreator::buildStdFrame  )  [protected]
 

virtual void SMESHGUI_GenericHypothesisCreator.retrieveParams  )  const [protected, pure virtual]
 

Implemented in StdMeshersGUI_NbSegmentsCreator, and StdMeshersGUI_StdHypothesisCreator.

virtual QString SMESHGUI_GenericHypothesisCreator.storeParams  )  const [protected, pure virtual]
 

Implemented in StdMeshersGUI_NbSegmentsCreator, and StdMeshersGUI_StdHypothesisCreator.

bool SMESHGUI_GenericHypothesisCreator::stdParams ListOfStdParams  )  const [protected, virtual]
 

bool SMESHGUI_GenericHypothesisCreator::getStdParamFromDlg ListOfStdParams  )  const [protected]
 

QString SMESHGUI_GenericHypothesisCreator::stdParamValues const ListOfStdParams  )  [static, protected]
 

void SMESHGUI_GenericHypothesisCreator::attuneStdWidget QWidget *  ,
const   int
const [protected, virtual]
 

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

QWidget * SMESHGUI_GenericHypothesisCreator::getCustomWidget const StdParam ,
QWidget *  ,
const   int
const [protected, virtual]
 

bool SMESHGUI_GenericHypothesisCreator::getParamFromCustomWidget StdParam ,
QWidget * 
const [protected, virtual]
 

QString SMESHGUI_GenericHypothesisCreator::caption  )  const [protected, virtual]
 

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

QPixmap SMESHGUI_GenericHypothesisCreator::icon  )  const [protected, virtual]
 

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

QString SMESHGUI_GenericHypothesisCreator::type  )  const [protected, virtual]
 

Reimplemented in StdMeshersGUI_StdHypothesisCreator.

void SMESHGUI_GenericHypothesisCreator::onValueChanged  )  [protected, virtual, slot]
 

Reimplemented in StdMeshersGUI_NbSegmentsCreator.

bool SMESHGUI_GenericHypothesisCreator::editHypothesis SMESH::SMESH_Hypothesis_ptr  ,
QWidget * 
[private]
 


Field Documentation

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator.myHypo [private]
 

SMESH::SMESH_Hypothesis_var SMESHGUI_GenericHypothesisCreator.myInitParamsHypo [private]
 

QString SMESHGUI_GenericHypothesisCreator.myHypType [private]
 

ListOfWidgets SMESHGUI_GenericHypothesisCreator.myParamWidgets [private]
 

bool SMESHGUI_GenericHypothesisCreator.myIsCreate [private]
 

QtxDialog* SMESHGUI_GenericHypothesisCreator.myDlg [private]