Sketcher: Make 'Edit control' widget optional. ENABLED by default.
This commit is contained in:
@@ -68,6 +68,7 @@ void SketcherSettings::saveSettings()
|
||||
{
|
||||
// Sketch editing
|
||||
ui->checkBoxAdvancedSolverTaskBox->onSave();
|
||||
ui->checkBoxSettingsTaskBox->onSave();
|
||||
ui->checkBoxRecalculateInitialSolutionWhileDragging->onSave();
|
||||
ui->checkBoxEnableEscape->onSave();
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onSave();
|
||||
@@ -79,6 +80,7 @@ void SketcherSettings::loadSettings()
|
||||
{
|
||||
// Sketch editing
|
||||
ui->checkBoxAdvancedSolverTaskBox->onRestore();
|
||||
ui->checkBoxSettingsTaskBox->onRestore();
|
||||
ui->checkBoxRecalculateInitialSolutionWhileDragging->onRestore();
|
||||
ui->checkBoxEnableEscape->onRestore();
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onRestore();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>Sketcher solver</string>
|
||||
<string>Task Panel Widgets</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="0">
|
||||
@@ -34,7 +34,7 @@
|
||||
'Advanced solver control' to adjust solver settings</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show section 'Advanced solver control' in task dialog</string>
|
||||
<string>Show section 'Advanced solver control'</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ShowSolverAdvancedWidget</cstring>
|
||||
@@ -44,6 +44,26 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxSettingsTaskBox">
|
||||
<property name="toolTip">
|
||||
<string>Sketcher dialog will have additional section
|
||||
'Edit controls' to easily access basic settings.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show section 'Edit controls'</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ShowSettingsWidget</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/Sketcher</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -55,7 +55,10 @@ TaskDlgEditSketch::TaskDlgEditSketch(ViewProviderSketch *sketchView)
|
||||
Content.push_back(SolverAdvanced);
|
||||
}
|
||||
|
||||
Content.push_back(General);
|
||||
if (hGrp->GetBool("ShowSettingsWidget", true)) {
|
||||
Content.push_back(General);
|
||||
}
|
||||
|
||||
Content.push_back(Constraints);
|
||||
Content.push_back(Elements);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user