17 : QDialog(parent),
Ui::ScaleDialog() {
20 connect(sameForAllCheckBox, &QCheckBox::toggled,
this,
23 static_cast<void (QDoubleSpinBox::*)(
double)
>(
24 &QDoubleSpinBox::valueChanged),
45 if (sameForAllCheckBox->isChecked()) {
46 fySpinBox->setValue(val);
47 fzSpinBox->setValue(val);
52 return CCVector3d(fxSpinBox->value(), fySpinBox->value(),
57 return keepInPlaceCheckBox->isChecked();
61 return rescaleGlobalShiftCheckBox->isChecked();
66 fySpinBox->setValue(fxSpinBox->value());
67 fzSpinBox->setValue(fxSpinBox->value());
69 fySpinBox->setEnabled(!state);
70 fzSpinBox->setEnabled(!state);
Vector3Tpl< double > CCVector3d
Double 3D Vector.
void saveState()
Saves state.
bool keepInPlace() const
Whether the entity should be 'kept in place' or not.
ccScaleDlg(QWidget *parent=0)
Default constructor.
bool rescaleGlobalShift() const
Whether the Global shift should be rescaled as well.
CCVector3d getScales() const
Returns scales.
void allDimsAtOnceToggled(bool)
static bool s_keepInPlace
static CCVector3d s_lastScales(1.0, 1.0, 1.0)
static bool s_rescaleGlobalShift