{
GEOMBase_Skeleton::ActivateThisDialog();
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),
- this, SLOT( SelectionIntoArgument() ) );
+ this, SLOT( SelectionIntoArgument() ) );
ConstructorsClicked( getConstructorId() );
}
return !myShape->_is_nil() && ok;
case 1:
if (Group2->RadioButton1->isChecked())
- ok = Group2->SpinBox_DX->isValid( msg, !IsPreview() );
+ ok = Group2->SpinBox_DX->isValid( msg, !IsPreview() );
else
{
- ok = Group2->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
- ok = Group2->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+ ok = Group2->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+ ok = Group2->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
}
return !myShape->_is_nil() && myEdges.Extent() > 0 && ok;
case 2:
if (Group3->RadioButton1->isChecked())
- ok = Group3->SpinBox_DX->isValid( msg, !IsPreview() );
+ ok = Group3->SpinBox_DX->isValid( msg, !IsPreview() );
else
{
- ok = Group3->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
- ok = Group3->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
+ ok = Group3->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
+ ok = Group3->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
}
return !myShape->_is_nil() && myFaces.Extent() > 0 && ok;
default: return false;
GEOM::GEOM_Object_var anObj;
int anId = getConstructorId();
+
+ GEOM::GEOM_ILocalOperations_var anOper = GEOM::GEOM_ILocalOperations::_narrow(getOperation());
+
if (anId == 0) {
- anObj = GEOM::GEOM_ILocalOperations::_narrow(getOperation())->
- MakeFilletAll(myShape, getRadius());
+ anObj = anOper->MakeFilletAll(myShape, getRadius());
if (!anObj->_is_nil())
aParameters << Group1->SpinBox_DX->text();
}
if (Group2->RadioButton1->isChecked())
{
- anObj = GEOM::GEOM_ILocalOperations::_narrow(getOperation())->
- MakeFilletEdges(myShape, getRadius(), aList);
+ anObj = anOper->MakeFilletEdges(myShape, getRadius(), aList);
if (!anObj->_is_nil())
- aParameters << Group2->SpinBox_DX->text();
+ aParameters << Group2->SpinBox_DX->text();
}
else
{
- anObj = GEOM::GEOM_ILocalOperations::_narrow(getOperation())->
- MakeFilletEdgesR1R2(myShape,
- Group2->SpinBox_DY->value(),
- Group2->SpinBox_DZ->value(),
- aList);
+ anObj = anOper->MakeFilletEdgesR1R2(myShape,
+ Group2->SpinBox_DY->value(),
+ Group2->SpinBox_DZ->value(),
+ aList);
if (!anObj->_is_nil())
{
- aParameters << Group2->SpinBox_DY->text();
- aParameters << Group2->SpinBox_DZ->text();
+ aParameters << Group2->SpinBox_DY->text();
+ aParameters << Group2->SpinBox_DZ->text();
}
}
}
aList[ i - 1 ] = myFaces(i);
if (Group3->RadioButton1->isChecked()) {
- anObj = GEOM::GEOM_ILocalOperations::_narrow(getOperation())->
- MakeFilletFaces(myShape, getRadius(), aList);
+ anObj = anOper->MakeFilletFaces(myShape, getRadius(), aList);
if (!anObj->_is_nil())
- aParameters << Group3->SpinBox_DX->text();
+ aParameters << Group3->SpinBox_DX->text();
}
else {
- anObj = GEOM::GEOM_ILocalOperations::_narrow(getOperation())->
- MakeFilletFacesR1R2(myShape,
- Group3->SpinBox_DY->value(),
- Group3->SpinBox_DZ->value(), aList);
+ anObj = anOper->MakeFilletFacesR1R2(myShape,
+ Group3->SpinBox_DY->value(),
+ Group3->SpinBox_DZ->value(), aList);
if (!anObj->_is_nil())
{
- aParameters << Group3->SpinBox_DY->text();
- aParameters << Group3->SpinBox_DZ->text();
+ aParameters << Group3->SpinBox_DY->text();
+ aParameters << Group3->SpinBox_DZ->text();
}
}
}
if (!anObj->_is_nil())
{
if (!IsPreview())
- anObj->SetParameters(GeometryGUI::JoinObjectParameters(aParameters));
+ anObj->SetParameters(aParameters.join(":").toLatin1().constData());
objects.push_back(anObj._retn());
}