connect(myGroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
connect(myGroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
+ connect(myGroupTangents, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
this, SLOT(SelectionIntoArgument()));
//=================================================================================
void BasicGUI_CurveDlg::CheckButtonToggled()
{
- if (getConstructorId() == 2) { // Interpolation
- bool disableTangents = (myGroupPoints->CheckButton1->isChecked() ||
- myGroupPoints->CheckButton2->isChecked());
- myGroupTangents->setEnabled(!disableTangents);
+ if (sender() == myGroupTangents) {
+ if (myGroupTangents->isChecked())
+ myPushBtnV1->click();
+ else
+ myGroupPoints->PushButton1->click();
+ }
+ else {
+ if (getConstructorId() == 2) { // Interpolation
+ bool disableTangents = (myGroupPoints->CheckButton1->isChecked() ||
+ myGroupPoints->CheckButton2->isChecked());
+ myGroupTangents->setEnabled(!disableTangents);
+ }
+ processPreview();
}
- processPreview();
}
//=================================================================================