Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modification to avoid compilation error : 'std::list' has not been declared.
[modules/smesh.git]
/
src
/
StdMeshersGUI
/
StdMeshersGUI_CreateHypothesisDlg.h
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h
b/src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h
index 3a086e3a25ba2f8e80bdfaeebec35d84662b714e..5d61f408ba4f2fd3a7c245cc452e5ee801b519af 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h
+++ b/
src/StdMeshersGUI/StdMeshersGUI_CreateHypothesisDlg.h
@@
-30,12
+30,16
@@
// QT Includes
#include <qdialog.h>
// QT Includes
#include <qdialog.h>
+#include <qmap.h>
+#include <qpair.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
#include "SMESHGUI_aParameter.h"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
#include "SMESHGUI_aParameter.h"
+#include <list>
+
class QGroupBox;
class QLabel;
class QLineEdit;
class QGroupBox;
class QLabel;
class QLineEdit;
@@
-65,23
+69,34
@@
protected:
const QPixmap & hypIcon,
const QString & hypTypeName);
const QPixmap & hypIcon,
const QString & hypTypeName);
- virtual void GetParameters(
const QString
& hypType,
-
std::list<SMESHGUI_aParameterPtr> & params
) = 0;
+ virtual void GetParameters(
const QString
& hypType,
+
std::list<SMESHGUI_aParameterPtr>&
) = 0;
- virtual bool SetParameters(SMESH::SMESH_Hypothesis_ptr theHyp,
-
const std::list<SMESHGUI_aParameterPtr> & params
) = 0;
+ virtual bool SetParameters(
SMESH::SMESH_Hypothesis_ptr theHyp,
+
const std::list<SMESHGUI_aParameterPtr> & params
) = 0;
+protected slots:
+ virtual void onValueChanged();
+
private:
private:
-
+ void UpdateShown( const SMESHGUI_aParameterPtr );
void Init() ;
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ;
void Init() ;
void closeEvent( QCloseEvent* e ) ;
void enterEvent ( QEvent * ) ;
- SMESHGUI* mySMESHGUI ;
- QString myHypType ;
-
- std::list<QWidget*> mySpinList;
- std::list<SMESHGUI_aParameterPtr> 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;
QLabel* iconLabel;
QLabel* typeLabel;