GroupWire->CheckButton1->setChecked( true );
myWires.clear();
- TColStd_MapOfInteger aMap;
- aMap.Add( GEOM_EDGE );
- aMap.Add( GEOM_WIRE );
- globalSelection( aMap );
+ setGlobalSelection();
/* signals and slots connections */
connect( buttonOk(), SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
SelectionIntoArgument();
}
+//=================================================================================
+// function : setGlobalSelection
+// purpose :
+//=================================================================================
+void BuildGUI_FaceDlg::setGlobalSelection()
+{
+ TColStd_MapOfInteger aMap;
+
+ aMap.Add(GEOM_EDGE);
+ aMap.Add(GEOM_WIRE);
+ aMap.Add(GEOM_FACE);
+ aMap.Add(GEOM_SHELL);
+ aMap.Add(GEOM_SOLID);
+ aMap.Add(GEOM_COMPOUND);
+
+ globalSelection(aMap);
+}
//=================================================================================
// function : ClickOnOk()
myEditCurrentArgument->setText( "" );
QList<TopAbs_ShapeEnum> types;
- types << TopAbs_EDGE << TopAbs_WIRE;
+ types << TopAbs_EDGE << TopAbs_WIRE << TopAbs_FACE
+ << TopAbs_SHELL << TopAbs_SOLID << TopAbs_COMPOUND;
myWires = getSelected( types, -1 );
if ( !myWires.isEmpty() ) {
QPushButton* send = (QPushButton*)sender();
if ( send != GroupWire->PushButton1 )
return;
-
- TColStd_MapOfInteger aMap;
- aMap.Add( GEOM_EDGE );
- aMap.Add( GEOM_WIRE );
- globalSelection( aMap );
+ setGlobalSelection();
myEditCurrentArgument = GroupWire->LineEdit1;
myEditCurrentArgument->setFocus();
GEOMBase_Skeleton::ActivateThisDialog();
connect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(),
SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
- TColStd_MapOfInteger aMap;
- aMap.Add( GEOM_EDGE );
- aMap.Add( GEOM_WIRE );
- globalSelection( aMap );
+ setGlobalSelection();
}