initialize myIsMultipleAllowed

This commit is contained in:
eap 2012-12-28 11:39:01 +00:00
parent 79cd67d5b8
commit 3e47e37091
2 changed files with 5 additions and 5 deletions

View File

@ -83,8 +83,9 @@ enum { EDGE = 0, FACE, VOLUME };
* \brief Dialog to publish a sub-shape of the mesh main shape * \brief Dialog to publish a sub-shape of the mesh main shape
* by selecting mesh elements * by selecting mesh elements
*/ */
SMESHGUI_ShapeByMeshDlg::SMESHGUI_ShapeByMeshDlg() SMESHGUI_ShapeByMeshDlg::SMESHGUI_ShapeByMeshDlg(bool isMultipleAllowed)
: SMESHGUI_Dialog( 0, false, true, OK | Close ) : SMESHGUI_Dialog( 0, false, true, OK | Close ),
myIsMultipleAllowed( isMultipleAllowed )
{ {
setWindowTitle(tr("CAPTION")); setWindowTitle(tr("CAPTION"));
@ -172,8 +173,7 @@ SMESHGUI_ShapeByMeshOp::SMESHGUI_ShapeByMeshOp(bool isMultipleAllowed):
if ( GeometryGUI::GetGeomGen()->_is_nil() )// check that GEOM_Gen exists if ( GeometryGUI::GetGeomGen()->_is_nil() )// check that GEOM_Gen exists
GeometryGUI::InitGeomGen(); GeometryGUI::InitGeomGen();
myDlg = new SMESHGUI_ShapeByMeshDlg; myDlg = new SMESHGUI_ShapeByMeshDlg(myIsMultipleAllowed);
myDlg->setMultipleAllowed(myIsMultipleAllowed);
connect(myDlg->myElemTypeGroup, SIGNAL(buttonClicked(int)), SLOT(onTypeChanged(int))); connect(myDlg->myElemTypeGroup, SIGNAL(buttonClicked(int)), SLOT(onTypeChanged(int)));
connect(myDlg->myElementId, SIGNAL(textChanged(const QString&)), SLOT(onElemIdChanged(const QString&))); connect(myDlg->myElementId, SIGNAL(textChanged(const QString&)), SLOT(onElemIdChanged(const QString&)));

View File

@ -51,7 +51,7 @@ class SMESHGUI_EXPORT SMESHGUI_ShapeByMeshDlg : public SMESHGUI_Dialog
Q_OBJECT Q_OBJECT
public: public:
SMESHGUI_ShapeByMeshDlg(); SMESHGUI_ShapeByMeshDlg(bool isMultipleAllowed);
virtual ~SMESHGUI_ShapeByMeshDlg(); virtual ~SMESHGUI_ShapeByMeshDlg();
private: private: