bottomLayout->addWidget(PreviewChkB, 3, 0);
// signals and slots connections
- connect(GBOrientation, SIGNAL(buttonClicked(int)), this, SLOT(orientationChanged(int)));
+ connect(GBOrientation, SIGNAL(buttonClicked(int)), this, SLOT(orientationChanged(int)));
connect(Rot1, SIGNAL(valueChanged(double)), this, SLOT(updatePreview()));
connect(Rot2, SIGNAL(valueChanged(double)), this, SLOT(updatePreview()));
connect(PositionSpn, SIGNAL(valueChanged(double)), this, SLOT(onPositionSpn()));
connect(RelativeChkB, SIGNAL(toggled(bool)), this, SLOT(onRelativePos(bool)));
- connect(GBPrsType, SIGNAL(buttonClicked(int)), this, SLOT(onPrsType(int)));
+ connect(GBPrsType, SIGNAL(buttonClicked(int)), this, SLOT(onPrsType(int)));
connect(PreviewChkB, SIGNAL(toggled(bool)), this, SLOT(updatePreview()));
}
case VISU::Plot3D::YZ: id = 1; break;
default: id = 2;
}
- GBOrientation->button(id)->setChecked( true );
- //? orientationChanged(id);
+ GBOrientation->button(id)->click();
// rotation
Rot1->setValue(thePrs->GetRotateX() * 180./PI);
// prs type
id = thePrs->GetIsContourPrs() ? CONTOUR_PRS_ID : SURFACE_PRS_ID;
- //GBPrsType->setButton(id);
- GBPrsType->button(id)->setChecked( true );
- //onPrsType(id);
+ GBPrsType->button(id)->click();
// nb contours
NbContoursSpn->setValue(thePrs->GetNbOfContours());
case VISU::Plot3D::YZ: id = 1; break;
default: id = 2;
}
- GBOrientation->button(id)->setChecked(true);
- //orientationChanged(id);
+ GBOrientation->button(id)->click();
GBoxOrient->setEnabled(false);