mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-06-07 23:37:50 +05:00
NPAL13408 GetInPlace in GUI functionnality
This commit is contained in:
parent
d34fc92202
commit
be244d874f
@ -81,7 +81,7 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode, GeometryGUI* theGeometryGUI, QWi
|
|||||||
Layout1->addWidget( GroupMedium, 2, 0 );
|
Layout1->addWidget( GroupMedium, 2, 0 );
|
||||||
|
|
||||||
QWidget* aFrame = new QWidget( GroupMedium );
|
QWidget* aFrame = new QWidget( GroupMedium );
|
||||||
QGridLayout* aMedLayout = new QGridLayout( aFrame, 4, 4, 0, 6 );
|
QGridLayout* aMedLayout = new QGridLayout( aFrame, 5, 4, 0, 6 );
|
||||||
|
|
||||||
QLabel* aMainLabel = new QLabel( tr( "MAIN_SHAPE" ), aFrame );
|
QLabel* aMainLabel = new QLabel( tr( "MAIN_SHAPE" ), aFrame );
|
||||||
|
|
||||||
@ -93,7 +93,18 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode, GeometryGUI* theGeometryGUI, QWi
|
|||||||
myMainName->setReadOnly( true );
|
myMainName->setReadOnly( true );
|
||||||
myMainName->setEnabled( myMode == CreateGroup );
|
myMainName->setEnabled( myMode == CreateGroup );
|
||||||
|
|
||||||
mySelSubBtn = new QRadioButton (tr( "SELECT_SUB_SHAPES" ), aFrame );
|
QLabel* aSecondLabel = new QLabel( tr( "SECOND_SHAPE" ), aFrame );
|
||||||
|
|
||||||
|
mySelBtn2 = new QPushButton( aFrame );
|
||||||
|
mySelBtn2->setPixmap( iconSelect );
|
||||||
|
mySelBtn2->setEnabled( false );
|
||||||
|
|
||||||
|
myShape2Name = new QLineEdit( aFrame );
|
||||||
|
myShape2Name->setReadOnly( true );
|
||||||
|
myShape2Name->setEnabled( false );
|
||||||
|
|
||||||
|
mySelSubBtn = new QRadioButton ( tr( "SELECT_SUB_SHAPES" ), aFrame );
|
||||||
|
myPlaceCheckBox = new QCheckBox ( tr( "GET_IN_PLACE" ), aFrame );
|
||||||
mySelAllBtn = new QPushButton( tr( "SELECT_ALL" ), aFrame );
|
mySelAllBtn = new QPushButton( tr( "SELECT_ALL" ), aFrame );
|
||||||
myAddBtn = new QPushButton( tr( "ADD" ), aFrame );
|
myAddBtn = new QPushButton( tr( "ADD" ), aFrame );
|
||||||
myRemBtn = new QPushButton( tr( "REMOVE" ), aFrame );
|
myRemBtn = new QPushButton( tr( "REMOVE" ), aFrame );
|
||||||
@ -105,11 +116,18 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode, GeometryGUI* theGeometryGUI, QWi
|
|||||||
aMedLayout->addWidget( aMainLabel, 0, 0 );
|
aMedLayout->addWidget( aMainLabel, 0, 0 );
|
||||||
aMedLayout->addWidget( mySelBtn, 0, 1 );
|
aMedLayout->addWidget( mySelBtn, 0, 1 );
|
||||||
aMedLayout->addMultiCellWidget( myMainName, 0, 0, 2, 3 );
|
aMedLayout->addMultiCellWidget( myMainName, 0, 0, 2, 3 );
|
||||||
aMedLayout->addMultiCellWidget( mySelSubBtn, 1, 1, 0, 2 );
|
|
||||||
aMedLayout->addWidget( mySelAllBtn, 1, 3 );
|
aMedLayout->addWidget( aSecondLabel, 1, 0 );
|
||||||
aMedLayout->addMultiCellWidget( myIdList, 2, 3, 0, 2 );
|
aMedLayout->addWidget( mySelBtn2, 1, 1 );
|
||||||
aMedLayout->addWidget( myAddBtn, 2, 3 );
|
aMedLayout->addMultiCellWidget( myShape2Name, 1, 1, 2, 3 );
|
||||||
aMedLayout->addWidget( myRemBtn, 3, 3 );
|
|
||||||
|
|
||||||
|
aMedLayout->addMultiCellWidget( mySelSubBtn, 2, 2, 0, 1 );
|
||||||
|
aMedLayout->addWidget( myPlaceCheckBox, 2, 2 );
|
||||||
|
aMedLayout->addWidget( mySelAllBtn, 2, 3 );
|
||||||
|
aMedLayout->addMultiCellWidget( myIdList, 3, 4, 0, 2 );
|
||||||
|
aMedLayout->addWidget( myAddBtn, 3, 3 );
|
||||||
|
aMedLayout->addWidget( myRemBtn, 4, 3 );
|
||||||
|
|
||||||
setHelpFileName("work_with_groups_page.html");
|
setHelpFileName("work_with_groups_page.html");
|
||||||
|
|
||||||
@ -137,6 +155,7 @@ void GroupGUI_GroupDlg::Init()
|
|||||||
|
|
||||||
connect( GroupConstructors, SIGNAL( clicked( int ) ), this, SLOT( ConstructorsClicked( int ) ) );
|
connect( GroupConstructors, SIGNAL( clicked( int ) ), this, SLOT( ConstructorsClicked( int ) ) );
|
||||||
connect( mySelBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
connect( mySelBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
||||||
|
connect( mySelBtn2, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
||||||
}
|
}
|
||||||
else if ( myMode == EditGroup && IObjectCount() ) {
|
else if ( myMode == EditGroup && IObjectCount() ) {
|
||||||
Standard_Boolean aResult = Standard_False;
|
Standard_Boolean aResult = Standard_False;
|
||||||
@ -175,6 +194,7 @@ void GroupGUI_GroupDlg::Init()
|
|||||||
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( ClickOnApply() ) );
|
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( ClickOnApply() ) );
|
||||||
|
|
||||||
connect( mySelSubBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
connect( mySelSubBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
||||||
|
connect( myPlaceCheckBox, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
||||||
connect( mySelAllBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
connect( mySelAllBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
|
||||||
connect( myAddBtn, SIGNAL( clicked() ), this, SLOT( add() ) );
|
connect( myAddBtn, SIGNAL( clicked() ), this, SLOT( add() ) );
|
||||||
connect( myRemBtn, SIGNAL( clicked() ), this, SLOT( remove() ) );
|
connect( myRemBtn, SIGNAL( clicked() ), this, SLOT( remove() ) );
|
||||||
@ -261,7 +281,6 @@ void GroupGUI_GroupDlg::LineEditReturnPressed()
|
|||||||
updateState();
|
updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : SetEditCurrentArgument()
|
// function : SetEditCurrentArgument()
|
||||||
// purpose :
|
// purpose :
|
||||||
@ -270,19 +289,97 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument()
|
|||||||
{
|
{
|
||||||
QPushButton* send = (QPushButton*)sender();
|
QPushButton* send = (QPushButton*)sender();
|
||||||
|
|
||||||
if ( send == mySelBtn )
|
if ( send == mySelBtn ) {
|
||||||
myEditCurrentArgument = myMainName;
|
myEditCurrentArgument = myMainName;
|
||||||
|
myShape2Name->setText( "" );
|
||||||
|
}
|
||||||
else if ( (QRadioButton*)sender() == mySelSubBtn || send == mySelAllBtn )
|
else if ( (QRadioButton*)sender() == mySelSubBtn || send == mySelAllBtn )
|
||||||
myEditCurrentArgument = 0;
|
myEditCurrentArgument = 0;
|
||||||
|
else if ( send == mySelBtn2 || (QCheckBox*)sender() == myPlaceCheckBox ) {
|
||||||
|
if ( myPlaceCheckBox->isChecked() ) {
|
||||||
|
myEditCurrentArgument = myShape2Name;
|
||||||
|
myIdList->clear();
|
||||||
|
myShape2Name->setText( "" );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
myEditCurrentArgument = myMainName;
|
||||||
|
myShape2Name->setText( "" );
|
||||||
|
myIdList->clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
activateSelection();
|
activateSelection();
|
||||||
|
|
||||||
if ( send == mySelAllBtn )
|
if ( send == mySelAllBtn ) {
|
||||||
|
myIdList->clear();
|
||||||
|
myShape2Name->setText( "" );
|
||||||
|
myPlaceCheckBox->setChecked( false );
|
||||||
|
mySelBtn2->setEnabled( false );
|
||||||
|
myShape2Name->setEnabled( false );
|
||||||
selectAllSubShapes();
|
selectAllSubShapes();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
updateState();
|
updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : onGetInPlace()
|
||||||
|
// purpose :
|
||||||
|
//=================================================================================
|
||||||
|
void GroupGUI_GroupDlg::onGetInPlace()
|
||||||
|
{
|
||||||
|
Standard_Boolean aResult = Standard_False;
|
||||||
|
GEOM::GEOM_Object_var anObj =
|
||||||
|
GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
|
||||||
|
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
|
||||||
|
if ( !anObj->_is_equivalent(myMainObj) ) {
|
||||||
|
myEditCurrentArgument->setText( GEOMBase::GetName( anObj ) );
|
||||||
|
GEOM::GEOM_IShapesOperations_var aShapesOp = getGeomEngine()->GetIShapesOperations( getStudyId() );
|
||||||
|
GEOM::GEOM_Object_var aGetInPlaceObj = aShapesOp->GetInPlace(myMainObj, anObj);
|
||||||
|
localSelection( aGetInPlaceObj, getShapeType() );
|
||||||
|
myEditCurrentArgument = 0;
|
||||||
|
|
||||||
|
//Get indexes
|
||||||
|
GEOM::ListOfGO_var aSubObjects = new GEOM::ListOfGO();
|
||||||
|
TopoDS_Shape aShape;
|
||||||
|
if ( GEOMBase::GetShape(aGetInPlaceObj, aShape, getShapeType()) )
|
||||||
|
{
|
||||||
|
aSubObjects->length(1);
|
||||||
|
aSubObjects[0] = aGetInPlaceObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
aSubObjects = aShapesOp->MakeExplode( aGetInPlaceObj, getShapeType(), false);
|
||||||
|
GEOM::GEOM_ILocalOperations_var aLocOp = getGeomEngine()->GetILocalOperations( getStudyId() );
|
||||||
|
QListBoxItem* anItem;
|
||||||
|
|
||||||
|
bool isBlocked = myIdList->signalsBlocked();
|
||||||
|
myIdList->blockSignals( true );
|
||||||
|
myIdList->clear();
|
||||||
|
|
||||||
|
for (int i = 0; i < aSubObjects->length(); i++)
|
||||||
|
{
|
||||||
|
TopoDS_Shape aShape;
|
||||||
|
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
||||||
|
{
|
||||||
|
CORBA::Long anIndex;
|
||||||
|
anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
||||||
|
if ( anIndex >= 0 ) {
|
||||||
|
anItem = new QListBoxText( QString( "%1" ).arg( anIndex ) );
|
||||||
|
myIdList->insertItem( anItem );
|
||||||
|
myIdList->setSelected( anItem, true );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( !myMainObj->_is_nil() )
|
||||||
|
localSelection( myMainObj, getShapeType() );
|
||||||
|
|
||||||
|
myIdList->blockSignals( isBlocked );
|
||||||
|
highlightSubShapes();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : SelectionIntoArgument()
|
// function : SelectionIntoArgument()
|
||||||
@ -290,23 +387,28 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
void GroupGUI_GroupDlg::SelectionIntoArgument()
|
void GroupGUI_GroupDlg::SelectionIntoArgument()
|
||||||
{
|
{
|
||||||
if ( myEditCurrentArgument ) { // Selection of a main shape is active
|
if (myPlaceCheckBox->isChecked() && myEditCurrentArgument == myShape2Name ) {
|
||||||
|
onGetInPlace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( myEditCurrentArgument == myMainName) { // Selection of a main shape is active
|
||||||
myEditCurrentArgument->setText( "" );
|
myEditCurrentArgument->setText( "" );
|
||||||
myIdList->clear();
|
myIdList->clear();
|
||||||
|
|
||||||
if ( IObjectCount() == 1 ) {
|
if ( IObjectCount() == 1 ) {
|
||||||
Standard_Boolean aResult = Standard_False;
|
Standard_Boolean aResult = Standard_False;
|
||||||
GEOM::GEOM_Object_var anObj =
|
GEOM::GEOM_Object_var anObj =
|
||||||
GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
|
GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
|
||||||
|
|
||||||
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
|
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
|
||||||
myMainObj = anObj;
|
myMainObj = anObj;
|
||||||
myEditCurrentArgument->setText( GEOMBase::GetName( anObj ) );
|
myEditCurrentArgument->setText( GEOMBase::GetName( anObj ) );
|
||||||
// activate subshapes selection by default
|
// activate subshapes selection by default
|
||||||
myEditCurrentArgument = 0;
|
myEditCurrentArgument = 0;
|
||||||
activateSelection();
|
activateSelection();
|
||||||
updateState();
|
updateState();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,7 +466,8 @@ void GroupGUI_GroupDlg::SelectionIntoArgument()
|
|||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
||||||
{
|
{
|
||||||
CORBA::Long anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
CORBA::Long anIndex;
|
||||||
|
anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
||||||
if ( anIndex >= 0 )
|
if ( anIndex >= 0 )
|
||||||
aMapIndex.Add( anIndex );
|
aMapIndex.Add( anIndex );
|
||||||
}
|
}
|
||||||
@ -412,8 +515,10 @@ void GroupGUI_GroupDlg::selectAllSubShapes()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
GEOM::GEOM_IShapesOperations_var aShOp = getGeomEngine()->GetIShapesOperations( getStudyId() );
|
GEOM::GEOM_IShapesOperations_var aShOp = getGeomEngine()->GetIShapesOperations( getStudyId() );
|
||||||
|
GEOM::ListOfLong_var aSubShapes;
|
||||||
|
|
||||||
|
aSubShapes = aShOp->SubShapeAllIDs(myMainObj, getShapeType(), false);
|
||||||
|
|
||||||
GEOM::ListOfLong_var aSubShapes = aShOp->SubShapeAllIDs(myMainObj, getShapeType(), false);
|
|
||||||
if ( !aShOp->IsDone() )
|
if ( !aShOp->IsDone() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -434,7 +539,6 @@ void GroupGUI_GroupDlg::selectAllSubShapes()
|
|||||||
|
|
||||||
myIdList->blockSignals( isBlocked );
|
myIdList->blockSignals( isBlocked );
|
||||||
highlightSubShapes();
|
highlightSubShapes();
|
||||||
//updateState(); // already done in highlightSubShapes()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -489,7 +593,8 @@ void GroupGUI_GroupDlg::add()
|
|||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
||||||
{
|
{
|
||||||
CORBA::Long anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
CORBA::Long anIndex;
|
||||||
|
anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
||||||
if ( anIndex >= 0 )
|
if ( anIndex >= 0 )
|
||||||
aMapIndex.Add( anIndex );
|
aMapIndex.Add( anIndex );
|
||||||
}
|
}
|
||||||
@ -586,9 +691,8 @@ void GroupGUI_GroupDlg::activateSelection()
|
|||||||
{
|
{
|
||||||
globalSelection( GEOM_ALLSHAPES );
|
globalSelection( GEOM_ALLSHAPES );
|
||||||
|
|
||||||
if ( !myMainObj->_is_nil() && !myEditCurrentArgument ) {
|
if ( !myMainObj->_is_nil() && !myEditCurrentArgument && !myPlaceCheckBox->isChecked() )
|
||||||
localSelection( myMainObj, getShapeType() );
|
localSelection( myMainObj, getShapeType() );
|
||||||
}
|
|
||||||
|
|
||||||
SelectionIntoArgument();
|
SelectionIntoArgument();
|
||||||
}
|
}
|
||||||
@ -649,7 +753,8 @@ void GroupGUI_GroupDlg::updateState()
|
|||||||
aSubObjects[i];
|
aSubObjects[i];
|
||||||
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
if ( GEOMBase::GetShape(aSubObjects[i], aShape, getShapeType()) )
|
||||||
{
|
{
|
||||||
CORBA::Long anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
CORBA::Long anIndex;
|
||||||
|
anIndex = aLocOp->GetSubShapeIndex( myMainObj, aSubObjects[i] );
|
||||||
if ( anIndex >= 0 )
|
if ( anIndex >= 0 )
|
||||||
aMapIndex.Add( anIndex );
|
aMapIndex.Add( anIndex );
|
||||||
else
|
else
|
||||||
@ -678,7 +783,10 @@ void GroupGUI_GroupDlg::updateState()
|
|||||||
hasSel = myIdList->isSelected( ii );
|
hasSel = myIdList->isSelected( ii );
|
||||||
myRemBtn->setEnabled( hasSel );
|
myRemBtn->setEnabled( hasSel );
|
||||||
mySelSubBtn->setEnabled( !CORBA::is_nil( myMainObj ) );
|
mySelSubBtn->setEnabled( !CORBA::is_nil( myMainObj ) );
|
||||||
|
myPlaceCheckBox->setEnabled( !CORBA::is_nil( myMainObj ) );
|
||||||
mySelAllBtn->setEnabled( !CORBA::is_nil( myMainObj ) );
|
mySelAllBtn->setEnabled( !CORBA::is_nil( myMainObj ) );
|
||||||
|
mySelBtn2->setEnabled( myPlaceCheckBox->isChecked() );
|
||||||
|
myShape2Name->setEnabled( myPlaceCheckBox->isChecked() );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -700,7 +808,10 @@ void GroupGUI_GroupDlg::highlightSubShapes()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Standard_Boolean isOk;
|
Standard_Boolean isOk;
|
||||||
char* objIOR = GEOMBase::GetIORFromObject( myMainObj );
|
char* objIOR;
|
||||||
|
|
||||||
|
objIOR = GEOMBase::GetIORFromObject( myMainObj );
|
||||||
|
|
||||||
Handle(GEOM_AISShape) aSh = GEOMBase::ConvertIORinGEOMAISShape( objIOR, isOk, true );
|
Handle(GEOM_AISShape) aSh = GEOMBase::ConvertIORinGEOMAISShape( objIOR, isOk, true );
|
||||||
free( objIOR );
|
free( objIOR );
|
||||||
if ( !isOk || aSh.IsNull() )
|
if ( !isOk || aSh.IsNull() )
|
||||||
@ -712,21 +823,20 @@ void GroupGUI_GroupDlg::highlightSubShapes()
|
|||||||
|
|
||||||
int ii = 0, nn = myIdList->count();
|
int ii = 0, nn = myIdList->count();
|
||||||
for ( ; ii < nn; ii++ )
|
for ( ; ii < nn; ii++ )
|
||||||
if ( myIdList->isSelected( ii ) )
|
if ( myIdList->isSelected( ii ) ) {
|
||||||
anIds.Add( myIdList->item( ii )->text().toInt() );
|
anIds.Add( myIdList->item( ii )->text().toInt() );
|
||||||
|
}
|
||||||
|
|
||||||
SalomeApp_Application* app = myGeomGUI->getApp();
|
SalomeApp_Application* app = myGeomGUI->getApp();
|
||||||
LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
|
LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
|
||||||
aSelMgr->clearSelected();
|
aSelMgr->clearSelected();
|
||||||
//if (nn < 3000) aSelMgr->AddOrRemoveIndex(aSh->getIO(), anIds, false);
|
|
||||||
aSelMgr->AddOrRemoveIndex(aSh->getIO(), anIds, false);
|
aSelMgr->AddOrRemoveIndex(aSh->getIO(), anIds, false);
|
||||||
|
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
//updateState();
|
if (nn < 3000)
|
||||||
if (nn < 3000) {
|
|
||||||
updateState();
|
updateState();
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
myAddBtn->setEnabled( true );
|
myAddBtn->setEnabled( true );
|
||||||
myRemBtn->setEnabled( true );
|
myRemBtn->setEnabled( true );
|
||||||
|
@ -29,12 +29,13 @@
|
|||||||
#define GROUPGUI_GROUPDLG_H
|
#define GROUPGUI_GROUPDLG_H
|
||||||
|
|
||||||
#include "GEOMBase_Skeleton.h"
|
#include "GEOMBase_Skeleton.h"
|
||||||
|
#include <qcheckbox.h>
|
||||||
#include <TopAbs_ShapeEnum.hxx>
|
#include <TopAbs_ShapeEnum.hxx>
|
||||||
|
|
||||||
class QGroupBox;
|
class QGroupBox;
|
||||||
class QLineEdit;
|
class QLineEdit;
|
||||||
class QListBox;
|
class QListBox;
|
||||||
|
|
||||||
class QRadioButton;
|
class QRadioButton;
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -84,6 +85,7 @@ private:
|
|||||||
void activateSelection();
|
void activateSelection();
|
||||||
void updateState();
|
void updateState();
|
||||||
void highlightSubShapes();
|
void highlightSubShapes();
|
||||||
|
void onGetInPlace();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mode myMode;
|
Mode myMode;
|
||||||
@ -94,7 +96,10 @@ private:
|
|||||||
QGroupBox* GroupMedium;
|
QGroupBox* GroupMedium;
|
||||||
QPushButton* mySelBtn;
|
QPushButton* mySelBtn;
|
||||||
QLineEdit* myMainName;
|
QLineEdit* myMainName;
|
||||||
|
QPushButton* mySelBtn2;
|
||||||
|
QLineEdit* myShape2Name;
|
||||||
QRadioButton* mySelSubBtn;
|
QRadioButton* mySelSubBtn;
|
||||||
|
QCheckBox* myPlaceCheckBox;
|
||||||
QPushButton* mySelAllBtn;
|
QPushButton* mySelAllBtn;
|
||||||
QPushButton* myAddBtn;
|
QPushButton* myAddBtn;
|
||||||
QPushButton* myRemBtn;
|
QPushButton* myRemBtn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user