Add a check box to update 3d view or not

This commit is contained in:
wmayer
2012-08-17 15:36:13 +02:00
parent 3a8f6dff59
commit ee37672dc9
3 changed files with 22 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView,QWidget *parent)
this, SLOT(onModeChanged(int)));
connect(ui->lineFaceName, SIGNAL(textEdited(QString)),
this, SLOT(onFaceName(QString)));
connect(ui->checkBoxUpdateView, SIGNAL(toggled(bool)),
this, SLOT(onUpdateView(bool)));
this->groupLayout()->addWidget(proxy);
@@ -161,6 +163,15 @@ void TaskPadParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
}
}
void TaskPadParameters::onUpdateView(bool on)
{
ui->changeMode->blockSignals(!on);
ui->doubleSpinBox->blockSignals(!on);
ui->checkBoxMidplane->blockSignals(!on);
ui->checkBoxReversed->blockSignals(!on);
ui->doubleSpinBox2->blockSignals(!on);
}
void TaskPadParameters::onLengthChanged(double len)
{
PartDesign::Pad* pcPad = static_cast<PartDesign::Pad*>(PadView->getObject());