mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-25 01:30:32 +05:00
Simplify activation of local selection on all objects
This commit is contained in:
parent
f1dfa183cb
commit
70968a29ce
@ -335,11 +335,11 @@ void AdvancedGUI_DividedDiskDlg::SetEditCurrentArgument()
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
if (myEditCurrentArgument == GroupPntVecR->LineEdit2) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -642,7 +642,7 @@ void AdvancedGUI_PipeTShapeDlg::SetEditCurrentArgument()
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
//globalSelection(GEOM_POINT);
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ void AdvancedGUI_SmoothingSurfaceDlg::Init()
|
||||
showOnlyPreviewControl();
|
||||
|
||||
globalSelection();
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
//@@ initialize dialog box widgets here @@//
|
||||
|
||||
// Signal/slot connections
|
||||
@ -163,7 +163,7 @@ bool AdvancedGUI_SmoothingSurfaceDlg::ClickOnApply()
|
||||
|
||||
initName();
|
||||
globalSelection();
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ void AdvancedGUI_SmoothingSurfaceDlg::ActivateThisDialog()
|
||||
{
|
||||
GEOMBase_Skeleton::ActivateThisDialog();
|
||||
globalSelection();
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
//displayPreview();
|
||||
}
|
||||
|
||||
@ -363,6 +363,6 @@ void AdvancedGUI_SmoothingSurfaceDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit1;
|
||||
myEditCurrentArgument->setFocus();
|
||||
globalSelection();
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
@ -330,7 +330,7 @@ void BasicGUI_ArcDlg::SelectionIntoArgument()
|
||||
void BasicGUI_ArcDlg::SetEditCurrentArgument()
|
||||
{
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
|
||||
QPushButton* send = (QPushButton*)sender();
|
||||
switch ( getConstructorId() ) {
|
||||
@ -580,7 +580,7 @@ void BasicGUI_ArcDlg::ConstructorsClicked( int constructorId )
|
||||
}
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX ); //Select Vertex on All Shapes
|
||||
localSelection( TopAbs_VERTEX ); //Select Vertex on All Shapes
|
||||
|
||||
qApp->processEvents();
|
||||
updateGeometry();
|
||||
|
@ -283,7 +283,7 @@ void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
|
||||
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged() ),
|
||||
this, SLOT( SelectionIntoArgument() ) );
|
||||
@ -471,7 +471,7 @@ void BasicGUI_CircleDlg::SetEditCurrentArgument()
|
||||
TopAbs_ShapeEnum aNeedType = ( myEditCurrentArgument == GroupPntVecR->LineEdit2 ) ?
|
||||
TopAbs_EDGE : TopAbs_VERTEX;
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), aNeedType );
|
||||
localSelection( aNeedType );
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
// SelectionIntoArgument();
|
||||
|
@ -280,15 +280,15 @@ void BasicGUI_CurveDlg::SetEditCurrentArgument()
|
||||
|
||||
if (sender() == myGroupPoints->PushButton1) {
|
||||
myEditCurrentArgument = myGroupPoints->LineEdit1;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (sender() == myPushBtnV1) {
|
||||
myEditCurrentArgument = myLineEditV1;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else if (sender() == myPushBtnV2) {
|
||||
myEditCurrentArgument = myLineEditV2;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
|
@ -155,7 +155,7 @@ void BasicGUI_EllipseDlg::Init()
|
||||
initName( tr( "GEOM_ELLIPSE" ) );
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
|
||||
resize( minimumSizeHint() );
|
||||
SelectionIntoArgument();
|
||||
@ -212,7 +212,7 @@ bool BasicGUI_EllipseDlg::ClickOnApply()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit1;
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
displayPreview(true);
|
||||
|
||||
return true;
|
||||
@ -303,7 +303,7 @@ void BasicGUI_EllipseDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument == GroupPoints->LineEdit3 ) ?
|
||||
TopAbs_EDGE : TopAbs_VERTEX;
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), aNeedType );
|
||||
localSelection( aNeedType );
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
//SelectionIntoArgument();
|
||||
@ -333,7 +333,7 @@ void BasicGUI_EllipseDlg::ActivateThisDialog()
|
||||
myDir.nullify();
|
||||
//globalSelection( GEOM_POINT );
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -220,7 +220,7 @@ void BasicGUI_LineDlg::ConstructorsClicked( int constructorId )
|
||||
myEditCurrentArgument == GroupFaces->LineEdit2 ) ?
|
||||
TopAbs_FACE : TopAbs_VERTEX;
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection( GEOM::GEOM_Object::_nil(), aNeedType );
|
||||
localSelection( aNeedType );
|
||||
|
||||
qApp->processEvents();
|
||||
updateGeometry();
|
||||
@ -318,7 +318,7 @@ void BasicGUI_LineDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument == GroupFaces->LineEdit2 ) ?
|
||||
TopAbs_FACE : TopAbs_VERTEX;
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection( GEOM::GEOM_Object::_nil(), aNeedType );
|
||||
localSelection( aNeedType );
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
// SelectionIntoArgument();
|
||||
|
@ -228,7 +228,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
|
||||
{
|
||||
if ( myConstructorId == constructorId && myConstructorId == 0 ) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
activate( GEOM_MARKER );
|
||||
return;
|
||||
}
|
||||
@ -244,7 +244,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
|
||||
Group2->hide();
|
||||
aMainGrp->show();
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
activate( GEOM_MARKER );
|
||||
break;
|
||||
}
|
||||
@ -269,7 +269,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
|
||||
Group2->PushButton2->setDown( false );
|
||||
Group2->PushButton3->setDown( false );
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
myEditCurrentArgument = Group2->LineEdit1;
|
||||
Group2->LineEdit1->setText( "" );
|
||||
Group2->LineEdit2->setText( "" );
|
||||
@ -442,7 +442,7 @@ void BasicGUI_MarkerDlg::SetEditCurrentArgument()
|
||||
}
|
||||
else if ( send == Group2->PushButton1 ) {
|
||||
myEditCurrentArgument = Group2->LineEdit1;
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
Group2->PushButton2->setDown( false );
|
||||
Group2->PushButton3->setDown( false );
|
||||
Group2->LineEdit1->setEnabled( true );
|
||||
@ -451,7 +451,7 @@ void BasicGUI_MarkerDlg::SetEditCurrentArgument()
|
||||
}
|
||||
else if ( send == Group2->PushButton2 ) {
|
||||
myEditCurrentArgument = Group2->LineEdit2;
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
Group2->PushButton1->setDown( false );
|
||||
Group2->PushButton3->setDown( false );
|
||||
Group2->LineEdit1->setEnabled( false );
|
||||
@ -460,7 +460,7 @@ void BasicGUI_MarkerDlg::SetEditCurrentArgument()
|
||||
}
|
||||
else if ( send == Group2->PushButton3 ) {
|
||||
myEditCurrentArgument = Group2->LineEdit3;
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
Group2->PushButton1->setDown( false );
|
||||
Group2->PushButton2->setDown( false );
|
||||
Group2->LineEdit1->setEnabled( false );
|
||||
|
@ -291,7 +291,7 @@ void BasicGUI_PlaneDlg::ConstructorsClicked( int constructorId )
|
||||
|
||||
/* for the first argument */
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
break;
|
||||
}
|
||||
case 1: /* plane from 3 points */
|
||||
@ -315,7 +315,7 @@ void BasicGUI_PlaneDlg::ConstructorsClicked( int constructorId )
|
||||
|
||||
/* for the first argument */
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
break;
|
||||
}
|
||||
case 2: /* plane from a planar face */
|
||||
@ -331,7 +331,7 @@ void BasicGUI_PlaneDlg::ConstructorsClicked( int constructorId )
|
||||
GroupFace->PushButton1->setDown( true );
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
break;
|
||||
}
|
||||
case 3: /* plane from a 2 Vectors */
|
||||
@ -347,7 +347,7 @@ void BasicGUI_PlaneDlg::ConstructorsClicked( int constructorId )
|
||||
Group2Vec->PushButton1->setDown( true );
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
break;
|
||||
}
|
||||
case 4: /* plane from a LCS */
|
||||
@ -575,7 +575,7 @@ void BasicGUI_PlaneDlg::SetEditCurrentArgument()
|
||||
if ( myEditCurrentArgument == GroupPntDir->LineEdit2 ||
|
||||
myEditCurrentArgument == Group2Vec->LineEdit1 ||
|
||||
myEditCurrentArgument == Group2Vec->LineEdit2 ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
} else if ( myEditCurrentArgument == GroupFace->LineEdit1 ) {
|
||||
TColStd_MapOfInteger aMap;
|
||||
aMap.Add( GEOM_PLANE );
|
||||
@ -585,7 +585,7 @@ void BasicGUI_PlaneDlg::SetEditCurrentArgument()
|
||||
globalSelection( GEOM_MARKER );
|
||||
}
|
||||
else { // 3 Pnts
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
}
|
||||
|
||||
// SelectionIntoArgument();
|
||||
|
@ -335,7 +335,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_VERTEX;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
|
||||
GroupRefPoint->hide();
|
||||
GroupOnCurve->hide();
|
||||
@ -350,7 +350,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_VERTEX;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
|
||||
myEditCurrentArgument = GroupRefPoint->LineEdit1;
|
||||
myEditCurrentArgument->setText("");
|
||||
@ -369,7 +369,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_EDGE;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
|
||||
myEditCurrentArgument = GroupOnCurve->LineEdit1;
|
||||
myEditCurrentArgument->setText("");
|
||||
@ -392,7 +392,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
|
||||
globalSelection(); // close local contexts, if any
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection(needTypes );
|
||||
|
||||
myEditCurrentArgument = GroupLineIntersection->LineEdit1;
|
||||
GroupLineIntersection->LineEdit1->setText("");
|
||||
@ -416,7 +416,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_FACE;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
|
||||
myEditCurrentArgument = GroupOnSurface->LineEdit1;
|
||||
myEditCurrentArgument->setText("");
|
||||
@ -575,14 +575,14 @@ void BasicGUI_PointDlg::SetEditCurrentArgument()
|
||||
GroupRefPoint->LineEdit1->setFocus();
|
||||
myEditCurrentArgument = GroupRefPoint->LineEdit1;
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupOnCurve->PushButton1) {
|
||||
GroupOnCurve->LineEdit1->setFocus();
|
||||
myEditCurrentArgument = GroupOnCurve->LineEdit1;
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_EDGE;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
GroupOnCurve->PushButton2->setDown(false);
|
||||
GroupOnCurve->LineEdit1->setEnabled(true);
|
||||
GroupOnCurve->LineEdit2->setEnabled(false);
|
||||
@ -592,7 +592,7 @@ void BasicGUI_PointDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupOnCurve->LineEdit2;
|
||||
globalSelection(); // close local contexts, if any
|
||||
myNeedType = TopAbs_VERTEX;
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection(myNeedType);
|
||||
GroupOnCurve->PushButton1->setDown(false);
|
||||
GroupOnCurve->LineEdit2->setEnabled(true);
|
||||
GroupOnCurve->LineEdit1->setEnabled(false);
|
||||
@ -602,7 +602,7 @@ void BasicGUI_PointDlg::SetEditCurrentArgument()
|
||||
GroupOnSurface->LineEdit1->setFocus();
|
||||
myEditCurrentArgument = GroupOnSurface->LineEdit1;
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE);
|
||||
localSelection(TopAbs_FACE);
|
||||
}
|
||||
else if (send == GroupLineIntersection->PushButton1) {
|
||||
GroupLineIntersection->LineEdit1->setFocus();
|
||||
|
@ -204,7 +204,7 @@ void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
|
||||
GroupPoints->LineEdit2->setEnabled( false );
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
connect( myGeomGUI->getApp()->selectionMgr(),
|
||||
SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
|
||||
break;
|
||||
@ -325,7 +325,7 @@ void BasicGUI_VectorDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument->setFocus();
|
||||
// SelectionIntoArgument();
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
send->setDown(true);
|
||||
displayPreview(true);
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ void BlocksGUI_BlockDlg::SetEditCurrentArgument()
|
||||
aSender->setDown(true);
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE); //Select Faces on All Shapes
|
||||
localSelection(TopAbs_FACE); //Select Faces on All Shapes
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
}
|
||||
@ -400,7 +400,7 @@ void BlocksGUI_BlockDlg::ActivateThisDialog()
|
||||
{
|
||||
GEOMBase_Skeleton::ActivateThisDialog();
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE); //Select Faces on All Shapes
|
||||
localSelection(TopAbs_FACE); //Select Faces on All Shapes
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
displayPreview(true);
|
||||
|
@ -466,11 +466,11 @@ void BlocksGUI_QuadFaceDlg::activateSelection()
|
||||
myEditCurrentArgument == mySelName[Vertex3] ||
|
||||
myEditCurrentArgument == mySelName[Vertex4])
|
||||
{
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX); //Select Vertices on All Shapes
|
||||
localSelection(TopAbs_VERTEX); //Select Vertices on All Shapes
|
||||
}
|
||||
else
|
||||
{
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE); //Select Edges on All Shapes
|
||||
localSelection(TopAbs_EDGE); //Select Edges on All Shapes
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -198,10 +198,7 @@ void BooleanGUI_Dialog::Init()
|
||||
mainFrame()->RadioButton1->setFocus();
|
||||
|
||||
globalSelection(GEOM_ALLSHAPES);
|
||||
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection(TopAbs_SHAPE);
|
||||
|
||||
myGroup->PushButton1->click();
|
||||
resize(100,100);
|
||||
@ -341,10 +338,7 @@ void BooleanGUI_Dialog::SetEditCurrentArgument()
|
||||
}
|
||||
|
||||
globalSelection(GEOM_ALLSHAPES);
|
||||
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection(TopAbs_SHAPE);
|
||||
|
||||
// enable line edit
|
||||
myEditCurrentArgument->setEnabled(true);
|
||||
|
@ -145,7 +145,7 @@ void BuildGUI_EdgeDlg::Init()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit1;
|
||||
GroupPoints->PushButton1->setDown(true);
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
|
||||
// signals and slots connections
|
||||
connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
|
||||
@ -210,7 +210,7 @@ void BuildGUI_EdgeDlg::ConstructorsClicked(int constructorId)
|
||||
case 0:
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
|
||||
myEditCurrentArgument = GroupPoints->LineEdit1;
|
||||
GroupPoints->LineEdit1->setText("");
|
||||
@ -229,7 +229,7 @@ void BuildGUI_EdgeDlg::ConstructorsClicked(int constructorId)
|
||||
case 1:
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_WIRE);
|
||||
localSelection(TopAbs_WIRE);
|
||||
|
||||
myEditCurrentArgument = GroupWire->LineEdit1;
|
||||
GroupWire->LineEdit1->setText("");
|
||||
@ -244,7 +244,7 @@ void BuildGUI_EdgeDlg::ConstructorsClicked(int constructorId)
|
||||
case 2:
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
|
||||
myEditCurrentArgument = GroupOnCurve->LineEdit1;
|
||||
GroupOnCurve->LineEdit1->setText("");
|
||||
@ -302,7 +302,7 @@ void BuildGUI_EdgeDlg::SelectionIntoArgument()
|
||||
myEditCurrentArgument->setText(aName);
|
||||
|
||||
globalSelection();
|
||||
localSelection(GEOM::GEOM_Object::_nil(), aNeedType);
|
||||
localSelection(aNeedType);
|
||||
|
||||
if (myEditCurrentArgument == GroupPoints->LineEdit1) {
|
||||
myPoint1 = aSelectedObject;
|
||||
@ -359,7 +359,7 @@ void BuildGUI_EdgeDlg::SetEditCurrentArgument()
|
||||
GroupOnCurve->LineEdit2->setEnabled(false);
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else if (send == GroupOnCurve->PushButton2) {
|
||||
myEditCurrentArgument = GroupOnCurve->LineEdit2;
|
||||
@ -367,7 +367,7 @@ void BuildGUI_EdgeDlg::SetEditCurrentArgument()
|
||||
GroupOnCurve->LineEdit1->setEnabled(false);
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
|
||||
// enable line edit
|
||||
|
@ -263,7 +263,7 @@ void BuildGUI_FaceDlg::ConstructorsClicked(int constructorId)
|
||||
case 1:
|
||||
{
|
||||
globalSelection(GEOM_FACE); // For the first element.
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
|
||||
myEditCurrentArgument = myGroupSurf->LineEdit1;
|
||||
myGroupSurf->LineEdit1->setText("");
|
||||
@ -277,7 +277,7 @@ void BuildGUI_FaceDlg::ConstructorsClicked(int constructorId)
|
||||
case 2:
|
||||
{
|
||||
globalSelection();
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_WIRE );
|
||||
localSelection( TopAbs_WIRE );
|
||||
|
||||
myTreeConstraints->clear();
|
||||
myCurrentItem = 0;
|
||||
@ -323,7 +323,7 @@ void BuildGUI_FaceDlg::updateConstraintsTree()
|
||||
|
||||
myEditCurrentArgument->setEnabled(false);
|
||||
globalSelection();
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
|
||||
myTreeConstraints->resizeColumnToContents(0);
|
||||
QTreeWidgetItem* firstItem = myTreeConstraints->topLevelItem(0);
|
||||
@ -509,21 +509,21 @@ void BuildGUI_FaceDlg::SetEditCurrentArgument()
|
||||
}
|
||||
else if (send == myGroupSurf->PushButton1) {
|
||||
globalSelection(GEOM_FACE);
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
myEditCurrentArgument = myGroupSurf->LineEdit1;
|
||||
myGroupSurf->PushButton2->setDown(false);
|
||||
myGroupSurf->LineEdit2->setEnabled(false);
|
||||
}
|
||||
else if (send == myGroupSurf->PushButton2) {
|
||||
globalSelection(GEOM_WIRE);
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_WIRE );
|
||||
localSelection( TopAbs_WIRE );
|
||||
myEditCurrentArgument = myGroupSurf->LineEdit2;
|
||||
myGroupSurf->PushButton1->setDown(false);
|
||||
myGroupSurf->LineEdit1->setEnabled(false);
|
||||
}
|
||||
else if (send == myGroupWireConstraints->PushButton1) {
|
||||
globalSelection();
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_WIRE );
|
||||
localSelection( TopAbs_WIRE );
|
||||
myEditCurrentArgument = myGroupWireConstraints->LineEdit1;
|
||||
myCurrentItem = 0;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ void BuildGUI_WireDlg::Init()
|
||||
|
||||
myEdgesAndWires.clear();
|
||||
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
|
||||
/* signals and slots connections */
|
||||
connect( buttonOk(), SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
|
||||
@ -177,12 +177,12 @@ void BuildGUI_WireDlg::TypeButtonClicked()
|
||||
{
|
||||
if ( GroupType->RadioButton1->isChecked() ) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
GroupArgs->TextLabel1->setText( tr( "GEOM_EDGE" ) );
|
||||
}
|
||||
else if ( GroupType->RadioButton2->isChecked() ) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_WIRE );
|
||||
localSelection( TopAbs_WIRE );
|
||||
GroupArgs->TextLabel1->setText( tr( "GEOM_WIRE" ) );
|
||||
}
|
||||
SelectionIntoArgument();
|
||||
|
@ -327,7 +327,7 @@ void EntityGUI_3DSketcherDlg::Init()
|
||||
myLengthPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
||||
myTextPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
|
||||
/* Get setting of step value from file configuration */
|
||||
double step = SUIT_Session::session()->resourceMgr()->doubleValue("Geometry", "SettingsGeomStep", 100.0);
|
||||
@ -823,7 +823,7 @@ void EntityGUI_3DSketcherDlg::ActivateThisDialog()
|
||||
connect(myGeomGUI->getApp()->selectionMgr(),
|
||||
SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
GEOMBase_Helper::displayPreview(true, false, true, true, myLineWidth);
|
||||
}
|
||||
|
||||
|
@ -541,7 +541,7 @@ void EntityGUI_SketcherDlg::InitClick()
|
||||
Group4Spin->hide();
|
||||
GroupRect->hide();
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
}
|
||||
|
||||
|
||||
@ -1571,7 +1571,7 @@ void EntityGUI_SketcherDlg::SetEditCurrentArgument()
|
||||
selButton->setDown(true);
|
||||
}
|
||||
globalSelection(); // close local selection to clear it
|
||||
localSelection(GEOM::GEOM_Object::_nil(), myNeedType);
|
||||
localSelection( myNeedType );
|
||||
}
|
||||
|
||||
|
||||
|
@ -528,6 +528,28 @@ void GEOMBase_Helper::localSelection( GEOM::GEOM_Object_ptr obj, const int mode
|
||||
localSelection( obj, modes );
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : localSelection
|
||||
// Purpose : Activate selection of sub-shapes in accordance with mode
|
||||
// modes are from TopAbs_ShapeEnum
|
||||
//================================================================
|
||||
void GEOMBase_Helper::localSelection( const std::list<int> modes )
|
||||
{
|
||||
localSelection( GEOM::GEOM_Object::_nil(), modes );
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : localSelection
|
||||
// Purpose : Activate selection of sub-shapes in accordance with mode
|
||||
// mode is from TopAbs_ShapeEnum
|
||||
//================================================================
|
||||
void GEOMBase_Helper::localSelection( const int mode )
|
||||
{
|
||||
std::list<int> modes;
|
||||
modes.push_back( mode );
|
||||
localSelection( modes );
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : globalSelection
|
||||
// Purpose : Activate selection of sub-shapes. Set selection filters
|
||||
|
@ -100,6 +100,8 @@ protected:
|
||||
void localSelection( const ObjectList&, const int );
|
||||
void localSelection( GEOM::GEOM_Object_ptr, const std::list<int> );
|
||||
void localSelection( GEOM::GEOM_Object_ptr, const int );
|
||||
void localSelection( const std::list<int> );
|
||||
void localSelection( const int );
|
||||
void activate( const int );
|
||||
void globalSelection( const int = GEOM_ALLOBJECTS, const bool = false );
|
||||
void globalSelection( const TColStd_MapOfInteger&, const bool = false );
|
||||
|
@ -209,7 +209,7 @@ void GenerationGUI_FillingDlg::initSelection()
|
||||
needTypes.push_back( TopAbs_COMPOUND );
|
||||
|
||||
globalSelection( aTypes );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( needTypes );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -280,7 +280,7 @@ void GenerationGUI_PipeDlg::SelectionTypeButtonClicked()
|
||||
{
|
||||
globalSelection();
|
||||
if ( GroupPoints->CheckButton1->isChecked() ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
} else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
aMap.Add(GEOM_COMPOUND);
|
||||
@ -382,7 +382,7 @@ void GenerationGUI_PipeDlg::SelectionIntoArgument()
|
||||
}
|
||||
}
|
||||
else if ( myEditCurrentArgument == GroupMakePoints->LineEdit2 ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
QList<GEOM::GeomObjPtr> objects = getSelected( TopAbs_VERTEX, -1 );
|
||||
GEOMBase::Synchronize( myLocations, objects );
|
||||
if ( !myLocations.isEmpty() ) {
|
||||
@ -428,7 +428,7 @@ void GenerationGUI_PipeDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
|
||||
if ( GroupPoints->CheckButton1->isChecked() ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
} else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
aMap.Add(GEOM_COMPOUND);
|
||||
@ -441,7 +441,7 @@ void GenerationGUI_PipeDlg::SetEditCurrentArgument()
|
||||
else if(send == GroupPoints->PushButton3) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit3;
|
||||
GroupPoints->CheckButton1->setEnabled(false);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
|
||||
GroupMakePoints->PushButton1->setDown(false);
|
||||
|
@ -148,7 +148,7 @@ void GenerationGUI_PipePathDlg::SelectionTypeButtonClicked()
|
||||
{
|
||||
globalSelection();
|
||||
if (GroupPoints->CheckButton1->isChecked()) {
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
@ -269,7 +269,7 @@ void GenerationGUI_PipePathDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
|
||||
if (GroupPoints->CheckButton1->isChecked()) {
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
@ -284,7 +284,7 @@ void GenerationGUI_PipePathDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit3;
|
||||
|
||||
if (GroupPoints->CheckButton1->isChecked()) {
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
|
@ -446,7 +446,7 @@ void GenerationGUI_PrismDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupVecH->LineEdit2;
|
||||
GroupVecH->PushButton1->setDown(false);
|
||||
GroupVecH->LineEdit1->setEnabled(false);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else if (send == Group2Points->PushButton1) {
|
||||
myEditCurrentArgument = Group2Points->LineEdit1;
|
||||
@ -461,7 +461,7 @@ void GenerationGUI_PrismDlg::SetEditCurrentArgument()
|
||||
Group2Points->PushButton3->setDown(false);
|
||||
Group2Points->LineEdit1->setEnabled(false);
|
||||
Group2Points->LineEdit3->setEnabled(false);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == Group2Points->PushButton3) {
|
||||
myEditCurrentArgument = Group2Points->LineEdit3;
|
||||
@ -469,7 +469,7 @@ void GenerationGUI_PrismDlg::SetEditCurrentArgument()
|
||||
Group2Points->PushButton2->setDown(false);
|
||||
Group2Points->LineEdit1->setEnabled(false);
|
||||
Group2Points->LineEdit2->setEnabled(false);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupDXDYDZ->PushButton1) {
|
||||
myEditCurrentArgument = GroupDXDYDZ->LineEdit1;
|
||||
|
@ -234,7 +234,7 @@ void GenerationGUI_RevolDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
GroupPoints->PushButton1->setDown(false);
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -404,5 +404,5 @@ bool MeasureGUI_AngleDlg::isValid (QString& msg)
|
||||
void MeasureGUI_AngleDlg::activateSelection()
|
||||
{
|
||||
globalSelection(GEOM_LINE);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
}
|
||||
|
@ -307,11 +307,7 @@ bool MeasureGUI_BndBoxDlg::execute (ObjectList& objects)
|
||||
void MeasureGUI_BndBoxDlg::activateSelection()
|
||||
{
|
||||
globalSelection( GEOM_ALLSHAPES );
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_SHAPE ), needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE );
|
||||
needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL );
|
||||
needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPSOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( TopAbs_SHAPE );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -131,11 +131,7 @@ void MeasureGUI_CenterMassDlg::Init()
|
||||
void MeasureGUI_CenterMassDlg::activateSelection()
|
||||
{
|
||||
globalSelection( GEOM_ALLSHAPES );
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_SHAPE ), needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE );
|
||||
needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL );
|
||||
needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPSOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( TopAbs_SHAPE );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -439,7 +439,7 @@ void MeasureGUI_CheckSelfIntersectionsDlg::activateSelection()
|
||||
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( needTypes );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -489,11 +489,7 @@ bool MeasureGUI_DistanceDlg::execute (ObjectList& objects)
|
||||
void MeasureGUI_DistanceDlg::activateSelection()
|
||||
{
|
||||
globalSelection( GEOM_ALLSHAPES );
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_SHAPE ), needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE );
|
||||
needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL );
|
||||
needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPSOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( TopAbs_SHAPE );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -317,7 +317,7 @@ void MeasureGUI_FastCheckIntersectionsDlg::activateSelection()
|
||||
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( needTypes );
|
||||
|
||||
}
|
||||
|
||||
|
@ -129,9 +129,7 @@ void MeasureGUI_InertiaDlg::Init()
|
||||
void MeasureGUI_InertiaDlg::activateSelection()
|
||||
{
|
||||
MeasureGUI_Skeleton::activateSelection();
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( TopAbs_SHAPE );
|
||||
}
|
||||
|
||||
|
||||
|
@ -184,10 +184,7 @@ bool MeasureGUI_MaxToleranceDlg::getParameters( double& theMinFaceToler,
|
||||
void MeasureGUI_MaxToleranceDlg::activateSelection()
|
||||
{
|
||||
globalSelection( GEOM_ALLSHAPES );
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_SHAPE ), needTypes.push_back( TopAbs_EDGE );
|
||||
needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL );
|
||||
needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPSOLID ), needTypes.push_back( TopAbs_COMPOUND ); localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( TopAbs_SHAPE );
|
||||
}
|
||||
|
||||
void MeasureGUI_MaxToleranceDlg::SelectionIntoArgument()
|
||||
|
@ -267,7 +267,7 @@ void MeasureGUI_NormaleDlg::SetEditCurrentArgument()
|
||||
GroupArgs->PushButton2->setDown(false);
|
||||
GroupArgs->LineEdit2->setEnabled(false);
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE);
|
||||
localSelection(TopAbs_FACE);
|
||||
}
|
||||
else if (send == GroupArgs->PushButton2) {
|
||||
myEditCurrentArgument = GroupArgs->LineEdit2;
|
||||
@ -275,7 +275,7 @@ void MeasureGUI_NormaleDlg::SetEditCurrentArgument()
|
||||
GroupArgs->PushButton1->setDown(false);
|
||||
GroupArgs->LineEdit1->setEnabled(false);
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -112,7 +112,7 @@ void MeasureGUI_PointDlg::Init()
|
||||
//=================================================================================
|
||||
void MeasureGUI_PointDlg::activateSelection()
|
||||
{
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -125,7 +125,7 @@ void MeasureGUI_PropertiesDlg::activateSelection()
|
||||
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection( needTypes );
|
||||
}
|
||||
|
||||
void MeasureGUI_PropertiesDlg::SelectionIntoArgument()
|
||||
|
@ -194,7 +194,7 @@ void MeasureGUI_WhatisDlg::processObject()
|
||||
void MeasureGUI_WhatisDlg::activateSelection()
|
||||
{
|
||||
globalSelection(); // all types of objects
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_SHAPE); // all types of sub-shapes
|
||||
localSelection(TopAbs_SHAPE); // all types of sub-shapes
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -307,7 +307,7 @@ void PrimitiveGUI_BoxDlg::SetEditCurrentArgument()
|
||||
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
||||
@ -323,7 +323,7 @@ void PrimitiveGUI_BoxDlg::ActivateThisDialog()
|
||||
{
|
||||
GEOMBase_Skeleton::ActivateThisDialog();
|
||||
if (getConstructorId() == 0) {
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
}
|
||||
|
@ -308,7 +308,7 @@ void PrimitiveGUI_ConeDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_POINT); // to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton2) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
@ -317,7 +317,7 @@ void PrimitiveGUI_ConeDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_LINE);// to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -317,7 +317,7 @@ void PrimitiveGUI_CylinderDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_POINT); // to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton2) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
@ -326,7 +326,7 @@ void PrimitiveGUI_CylinderDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_LINE); // to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -397,11 +397,11 @@ void PrimitiveGUI_DiskDlg::SetEditCurrentArgument()
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
if (myEditCurrentArgument == GroupPntVecR->LineEdit2) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -127,7 +127,7 @@ void PrimitiveGUI_FaceDlg::Init()
|
||||
myEdge.nullify();
|
||||
myFace.nullify();
|
||||
globalSelection(); // close local contexts, if any
|
||||
// localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
// localSelection( TopAbs_EDGE );
|
||||
|
||||
myOrientationType = 1;
|
||||
|
||||
@ -224,12 +224,12 @@ void PrimitiveGUI_FaceDlg::TypeButtonClicked()
|
||||
{
|
||||
if ( GroupType->RadioButton1->isChecked() ) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
GroupPlane->TextLabel1->setText( tr( "GEOM_EDGE" ) );
|
||||
}
|
||||
else if ( GroupType->RadioButton2->isChecked() ) {
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
GroupPlane->TextLabel1->setText( tr( "GEOM_FACE" ) );
|
||||
}
|
||||
myEditCurrentArgument = GroupPlane->LineEdit1;
|
||||
@ -288,7 +288,7 @@ void PrimitiveGUI_FaceDlg::ConstructorsClicked( int constructorId )
|
||||
case 1:
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
myEditCurrentArgument = GroupPlane->LineEdit1;
|
||||
myEditCurrentArgument->setText("");
|
||||
myEdge.nullify();
|
||||
@ -362,9 +362,9 @@ void PrimitiveGUI_FaceDlg::SetEditCurrentArgument()
|
||||
if ( send == GroupPlane->PushButton1 ) {
|
||||
myEditCurrentArgument = GroupPlane->LineEdit1;
|
||||
if (GroupType->RadioButton1->isChecked())
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
else if (GroupType->RadioButton1->isChecked())
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
|
||||
localSelection( TopAbs_FACE );
|
||||
}
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
|
@ -165,7 +165,7 @@ void PrimitiveGUI_SphereDlg::ConstructorsClicked( int constructorId )
|
||||
case 0:
|
||||
{
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
|
||||
GroupDimensions->hide();
|
||||
GroupPoints->show();
|
||||
@ -268,7 +268,7 @@ void PrimitiveGUI_SphereDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit1->setFocus();
|
||||
myEditCurrentArgument = GroupPoints->LineEdit1;
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
||||
localSelection( TopAbs_VERTEX );
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
}
|
||||
|
@ -296,7 +296,7 @@ void PrimitiveGUI_TorusDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_POINT); // to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton2) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
@ -305,7 +305,7 @@ void PrimitiveGUI_TorusDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
|
||||
globalSelection(GEOM_LINE); // to break previous local selection
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -550,12 +550,10 @@ bool RepairGUI_DivideEdgeDlg::getIsByParameter() const
|
||||
//=================================================================================
|
||||
void RepairGUI_DivideEdgeDlg::initSelection()
|
||||
{
|
||||
TopAbs_ShapeEnum type = TopAbs_EDGE;
|
||||
if ( myEditCurrentArgument == GroupPoints->LineEdit2 )
|
||||
type = TopAbs_VERTEX;
|
||||
|
||||
globalSelection(); // close local contexts, if any
|
||||
localSelection( GEOM::GEOM_Object::_nil(), type ); // load local selection on ALL objects
|
||||
// close local contexts
|
||||
globalSelection();
|
||||
// load local selection on ALL objects
|
||||
localSelection( myEditCurrentArgument == GroupPoints->LineEdit2 ? TopAbs_VERTEX : TopAbs_EDGE );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -266,14 +266,14 @@ void TransformationGUI_MirrorDlg::SetEditCurrentArgument()
|
||||
|
||||
switch (getConstructorId()) {
|
||||
case 0:
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
break;
|
||||
case 1:
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
break;
|
||||
case 2:
|
||||
globalSelection(GEOM_PLANE);
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE);
|
||||
localSelection(TopAbs_FACE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ void TransformationGUI_MultiRotationDlg::SetEditCurrentArgument()
|
||||
else if (send == GroupArgs->PushButton2) {
|
||||
myEditCurrentArgument = GroupArgs->LineEdit2;
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
|
||||
GroupArgs->PushButton1->setDown(false);
|
||||
GroupArgs->LineEdit1->setEnabled(false);
|
||||
|
@ -429,7 +429,7 @@ void TransformationGUI_MultiTranslationDlg::SetEditCurrentArgument()
|
||||
else if (send == GroupPoints->PushButton2) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit2;
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
|
||||
GroupPoints->PushButton1->setDown(false);
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
@ -445,7 +445,7 @@ void TransformationGUI_MultiTranslationDlg::SetEditCurrentArgument()
|
||||
else if (send == GroupDimensions->PushButton2) {
|
||||
myEditCurrentArgument = GroupDimensions->LineEdit2;
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
|
||||
GroupDimensions->PushButton1->setDown(false);
|
||||
GroupDimensions->PushButton3->setDown(false);
|
||||
@ -455,7 +455,7 @@ void TransformationGUI_MultiTranslationDlg::SetEditCurrentArgument()
|
||||
else if (send == GroupDimensions->PushButton3) {
|
||||
myEditCurrentArgument = GroupDimensions->LineEdit3;
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
|
||||
GroupDimensions->PushButton1->setDown(false);
|
||||
GroupDimensions->PushButton2->setDown(false);
|
||||
|
@ -259,7 +259,7 @@ void TransformationGUI_PositionDlg::ConstructorsClicked (int constructorId)
|
||||
void TransformationGUI_PositionDlg::SelectionTypeButtonClicked()
|
||||
{
|
||||
if ( Group1->CheckButton2->isChecked() ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
} else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
aMap.Add(GEOM_WIRE);
|
||||
@ -433,7 +433,7 @@ void TransformationGUI_PositionDlg::SetEditCurrentArgument()
|
||||
Group1->CheckButton2->setEnabled(true);
|
||||
|
||||
if ( Group1->CheckButton2->isChecked() ) {
|
||||
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
||||
localSelection( TopAbs_EDGE );
|
||||
} else {
|
||||
TColStd_MapOfInteger aMap;
|
||||
aMap.Add(GEOM_WIRE);
|
||||
|
@ -239,12 +239,12 @@ void TransformationGUI_ProjectionDlg::SetEditCurrentArgument()
|
||||
globalSelection( aMap );
|
||||
std::list<int> needTypes;
|
||||
needTypes.push_back( TopAbs_VERTEX ), needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE );
|
||||
localSelection(GEOM::GEOM_Object::_nil(), needTypes );
|
||||
localSelection(needTypes);
|
||||
break;
|
||||
}
|
||||
case PROJ_ON_WIRE:
|
||||
case PROJ_ON_EDGE: {
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
break;
|
||||
}
|
||||
default:;
|
||||
@ -258,9 +258,9 @@ void TransformationGUI_ProjectionDlg::SetEditCurrentArgument()
|
||||
myGroup->LineEdit1->setEnabled(false);
|
||||
|
||||
switch ( getConstructorId() ) {
|
||||
case PROJ_ON_FACE: localSelection(GEOM::GEOM_Object::_nil(), TopAbs_FACE); break;
|
||||
case PROJ_ON_WIRE: localSelection(GEOM::GEOM_Object::_nil(), TopAbs_WIRE); break;
|
||||
case PROJ_ON_EDGE: localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE); break;
|
||||
case PROJ_ON_FACE: localSelection(TopAbs_FACE); break;
|
||||
case PROJ_ON_WIRE: localSelection(TopAbs_WIRE); break;
|
||||
case PROJ_ON_EDGE: localSelection(TopAbs_EDGE); break;
|
||||
default:;
|
||||
}
|
||||
}
|
||||
|
@ -361,9 +361,9 @@ void TransformationGUI_RotationDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit5->setEnabled(false);
|
||||
|
||||
if (getConstructorId() == 0)
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
else
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton4) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit4;
|
||||
@ -375,7 +375,7 @@ void TransformationGUI_RotationDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
GroupPoints->LineEdit5->setEnabled(false);
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton5) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit5;
|
||||
@ -387,7 +387,7 @@ void TransformationGUI_RotationDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
GroupPoints->LineEdit4->setEnabled(false);
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
@ -325,7 +325,7 @@ void TransformationGUI_ScaleDlg::SetEditCurrentArgument()
|
||||
else if (send == PushButton2) {
|
||||
myEditCurrentArgument = LineEdit2;
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
|
||||
PushButton1->setDown(false);
|
||||
LineEdit1->setEnabled(false);
|
||||
|
@ -385,9 +385,9 @@ void TransformationGUI_TranslationDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit3->setEnabled(false);
|
||||
|
||||
if (getConstructorId() == 1)
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
else
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
||||
localSelection(TopAbs_EDGE);
|
||||
}
|
||||
else if (send == GroupPoints->PushButton3) {
|
||||
myEditCurrentArgument = GroupPoints->LineEdit3;
|
||||
@ -397,7 +397,7 @@ void TransformationGUI_TranslationDlg::SetEditCurrentArgument()
|
||||
GroupPoints->LineEdit1->setEnabled(false);
|
||||
GroupPoints->LineEdit2->setEnabled(false);
|
||||
|
||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||
localSelection(TopAbs_VERTEX);
|
||||
}
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
|
Loading…
Reference in New Issue
Block a user