mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
initialize myIsMultipleAllowed
This commit is contained in:
parent
79cd67d5b8
commit
3e47e37091
@ -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&)));
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user