X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_RevolutionDlg.cxx;h=99309ef594774a4b198b13fcab9bd2cddef23c66;hp=30be2c543a61ce512e328ae7ebf2a0452c5fcb20;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hpb=32d14d3084a1357854e927937452545c32fba7eb diff --git a/src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx b/src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx index 30be2c543..99309ef59 100644 --- a/src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -57,7 +57,7 @@ #include #include #include -#include +//#include // OCCT includes #include @@ -202,13 +202,15 @@ SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg( SMESHGUI* theModule ) MakeGroupsCheck = new QCheckBox(tr("SMESH_MAKE_GROUPS"), GroupArguments); MakeGroupsCheck->setChecked(true); - GroupArgumentsLayout->addWidget(SelectorWdg, 0, 0, 1, 4); - GroupArgumentsLayout->addWidget(GroupAxis, 1, 0, 1, 4); - GroupArgumentsLayout->addWidget(GroupAngleBox, 2, 0, 1, 4); - GroupArgumentsLayout->addWidget(TextLabelTolerance, 3, 0, 1, 2); - GroupArgumentsLayout->addWidget(SpinBox_Tolerance, 3, 2, 1, 2); - GroupArgumentsLayout->addWidget(myPreviewCheckBox, 4, 0, 1, 4); - GroupArgumentsLayout->addWidget(MakeGroupsCheck, 5, 0, 1, 4); + GroupArgumentsLayout->addWidget(SelectorWdg, 0, 0, 3, 4); + GroupArgumentsLayout->addWidget(GroupAxis, 0, 4, 1, 4); + GroupArgumentsLayout->addWidget(GroupAngleBox, 1, 4, 1, 4); + GroupArgumentsLayout->addWidget(TextLabelTolerance, 2, 4, 1, 2); + GroupArgumentsLayout->addWidget(SpinBox_Tolerance, 2, 6, 1, 2); + GroupArgumentsLayout->addWidget(myPreviewCheckBox, 3, 0, 1, 2); + GroupArgumentsLayout->addWidget(MakeGroupsCheck, 3, 2, 1, 2); + SelectorWdg->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding)); + SelectorWdg->setMinimumWidth(320); SelectorWdg->GetButtonGroup()->addButton( SelectVectorButton ); SelectorWdg->GetButtonGroup()->addButton( SelectPointButton ); @@ -573,7 +575,7 @@ void SMESHGUI_RevolutionDlg::ClickOnHelp() // function : onAngleTextChange() // purpose : //======================================================================= -void SMESHGUI_RevolutionDlg::onAngleTextChange (const QString& theNewText) +void SMESHGUI_RevolutionDlg::onAngleTextChange (const QString& /*theNewText*/) { bool isNumber; SpinBox_Angle->text().toDouble( &isNumber ); @@ -602,7 +604,7 @@ void SMESHGUI_RevolutionDlg::SelectionIntoArgument() return; Handle(SALOME_InteractiveObject) IO = aList.First(); - TColStd_IndexedMapOfInteger aMapIndex; + SVTK_TIndexedMapOfVtkId aMapIndex; mySelector->GetIndex(IO,aMapIndex); if ( aMapIndex.Extent() != 1 ) return; @@ -796,7 +798,7 @@ void SMESHGUI_RevolutionDlg::onDisplaySimulation(bool toDisplayPreview) anAxis, anAngle, aNbSteps, aTolerance, makeGroups ); SMESH::MeshPreviewStruct_var aMeshPreviewStruct = meshEditor->GetPreviewData(); - mySimulation->SetData( aMeshPreviewStruct._retn() ); + mySimulation->SetData( aMeshPreviewStruct.in() ); } catch (...) {} }