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());

View File

@ -66,6 +66,7 @@ private Q_SLOTS:
void onLength2Changed(double);
void onModeChanged(int);
void onFaceName(const QString& text);
void onUpdateView(bool);
protected:
void changeEvent(QEvent *e);

View File

@ -119,6 +119,16 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="checkBoxUpdateView">
<property name="text">
<string>Update view</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>