Add a setting to disable auto horizontal/vertical.
This commit is contained in:
@@ -67,6 +67,7 @@ void SketcherSettings::saveSettings()
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onSave();
|
||||
ui->checkBoxAutoRemoveRedundants->onSave();
|
||||
ui->checkBoxUnifiedCoincident->onSave();
|
||||
ui->checkBoxHorVerAuto->onSave();
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -135,6 +136,7 @@ void SketcherSettings::loadSettings()
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onRestore();
|
||||
ui->checkBoxAutoRemoveRedundants->onRestore();
|
||||
ui->checkBoxUnifiedCoincident->onRestore();
|
||||
ui->checkBoxHorVerAuto->onRestore();
|
||||
|
||||
// Dimensioning constraints mode
|
||||
ui->dimensioningMode->clear();
|
||||
|
||||
@@ -178,6 +178,25 @@ Requires to re-enter edit mode to take effect.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxHorVerAuto">
|
||||
<property name="toolTip">
|
||||
<string>Use the automatic horizontal/vertical constraint tool. This create a command group in which you have the auto tool, horizontal and vertical.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Auto tool for Horizontal/Vertical</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>AutoHorVer</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/Sketcher/Constraints</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -476,8 +476,14 @@ inline void SketcherAddWorkbenchConstraints<Gui::ToolBarItem>(Gui::ToolBarItem&
|
||||
cons << "Sketcher_ConstrainCoincident"
|
||||
<< "Sketcher_ConstrainPointOnObject";
|
||||
}
|
||||
cons << "Sketcher_CompHorVer"
|
||||
<< "Sketcher_ConstrainParallel"
|
||||
if (hGrp->GetBool("AutoHorVer", true)) {
|
||||
cons << "Sketcher_CompHorVer";
|
||||
}
|
||||
else {
|
||||
cons << "Sketcher_ConstrainVertical"
|
||||
<< "Sketcher_ConstrainHorizontal";
|
||||
}
|
||||
cons << "Sketcher_ConstrainParallel"
|
||||
<< "Sketcher_ConstrainPerpendicular"
|
||||
<< "Sketcher_ConstrainTangent"
|
||||
<< "Sketcher_ConstrainEqual"
|
||||
|
||||
Reference in New Issue
Block a user