X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_CreateHypothesisDlg.h;h=5d61f408ba4f2fd3a7c245cc452e5ee801b519af;hp=3a086e3a25ba2f8e80bdfaeebec35d84662b714e;hb=309a73fb95e01c71cd9c7ad4ed90014fd8e31313;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h b/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h index 3a086e3a2..5d61f408b 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h @@ -30,12 +30,16 @@ // QT Includes #include +#include +#include #include #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis) #include "SMESHGUI_aParameter.h" +#include + class QGroupBox; class QLabel; class QLineEdit; @@ -65,23 +69,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;