mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +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
|
* \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&)));
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user