+ if (!anObj->_is_nil())
+ {
+ if (!IsPreview())
+ anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+ objects.push_back(anObj._retn());
+ }
+
+ return true;
+}
+
+//=================================================================================
+// function : getRadius
+// purpose : Get radius
+//=================================================================================
+double OperationGUI_FilletDlg::getRadius() const
+{
+ int anId = getConstructorId();
+ if (anId == 0) return Group1->SpinBox_DX->value();
+ else if (anId == 1) return Group2->SpinBox_DX->value();
+ else return Group3->SpinBox_DX->value();
+}
+
+//=================================================================================
+// function : RadiobuttonClicked
+// purpose :
+//=================================================================================
+void OperationGUI_FilletDlg::RadioButtonClicked()
+{
+ const QObject* s = sender();
+
+ bool flag = s == Group2->RadioButton1 || s == Group3->RadioButton1;
+
+ Group2->RadioButton1->blockSignals(true);
+ Group2->RadioButton2->blockSignals(true);
+ Group3->RadioButton1->blockSignals(true);
+ Group3->RadioButton2->blockSignals(true);
+
+ Group2->SpinBox_DX->setEnabled(flag);
+ Group2->SpinBox_DY->setEnabled(!flag);
+ Group2->SpinBox_DZ->setEnabled(!flag);
+ Group2->RadioButton1->setChecked(flag);
+ Group2->RadioButton2->setChecked(!flag);
+ Group3->SpinBox_DX->setEnabled(flag);
+ Group3->SpinBox_DY->setEnabled(!flag);
+ Group3->SpinBox_DZ->setEnabled(!flag);
+ Group3->RadioButton1->setChecked(flag);
+ Group3->RadioButton2->setChecked(!flag);
+
+ Group2->RadioButton1->blockSignals(false);
+ Group2->RadioButton2->blockSignals(false);
+ Group3->RadioButton1->blockSignals(false);
+ Group3->RadioButton2->blockSignals(false);
+
+ processPreview();