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
* by selecting mesh elements
*/
SMESHGUI_ShapeByMeshDlg::SMESHGUI_ShapeByMeshDlg()
: SMESHGUI_Dialog( 0, false, true, OK | Close )
SMESHGUI_ShapeByMeshDlg::SMESHGUI_ShapeByMeshDlg(bool isMultipleAllowed)
: SMESHGUI_Dialog( 0, false, true, OK | Close ),
myIsMultipleAllowed( isMultipleAllowed )
{
setWindowTitle(tr("CAPTION"));
@ -172,8 +173,7 @@ SMESHGUI_ShapeByMeshOp::SMESHGUI_ShapeByMeshOp(bool isMultipleAllowed):
if ( GeometryGUI::GetGeomGen()->_is_nil() )// check that GEOM_Gen exists
GeometryGUI::InitGeomGen();
myDlg = new SMESHGUI_ShapeByMeshDlg;
myDlg->setMultipleAllowed(myIsMultipleAllowed);
myDlg = new SMESHGUI_ShapeByMeshDlg(myIsMultipleAllowed);
connect(myDlg->myElemTypeGroup, SIGNAL(buttonClicked(int)), SLOT(onTypeChanged(int)));
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
public:
SMESHGUI_ShapeByMeshDlg();
SMESHGUI_ShapeByMeshDlg(bool isMultipleAllowed);
virtual ~SMESHGUI_ShapeByMeshDlg();
private: