X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_CreateHypothesisDlg.h;h=3230f8eefdca0d68b8c116501b13e050068e6adb;hp=aa2a3eda9d21b1f99663ddeba35b3672161dc116;hb=8672ad3e7621ac25fffa8517599afa84ffea509a;hpb=9ed19e02e901a0d6dc2d44b2251051ac1eaf000e diff --git a/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h b/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h index aa2a3eda9..3230f8eef 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h @@ -30,14 +30,14 @@ // QT Includes #include +#include +#include #include #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis) #include "SMESHGUI_aParameter.h" -#include - class QGroupBox; class QLabel; class QLineEdit; @@ -67,23 +67,34 @@ protected: const QPixmap & hypIcon, const QString & hypTypeName); - virtual void GetParameters(const QString & hypType, - std::list & params) = 0; + virtual void GetParameters( const QString& hypType, + std::list& ) = 0; - virtual bool SetParameters(SMESH::SMESH_Hypothesis_ptr theHyp, - const std::list & params) = 0; + virtual bool SetParameters( SMESH::SMESH_Hypothesis_ptr theHyp, + const std::list & params ) = 0; +protected slots: + virtual void onValueChanged(); + private: - + void UpdateShown( const SMESHGUI_aParameterPtr ); void Init() ; void closeEvent( QCloseEvent* e ) ; void enterEvent ( QEvent * ) ; - SMESHGUI* mySMESHGUI ; - QString myHypType ; - - std::list mySpinList; - std::list myParamList; + SMESHGUI* mySMESHGUI; + QString myHypType; + + typedef struct + { + QWidget* editor; + QLabel* label; + int order; + + } ParamInfo; + + typedef QMap< SMESHGUI_aParameterPtr, ParamInfo > ParameterMap; + ParameterMap myParamMap; QLabel* iconLabel; QLabel* typeLabel;