Skip to content

Commit

Permalink
Merge pull request FreeCAD#11366 from Roy-043/Draft-remove-unused-dim…
Browse files Browse the repository at this point in the history
…orientation-and-saveonexit-prefs

Draft: remove unused dimorientation and saveonexit prefs
  • Loading branch information
Roy-043 authored Nov 12, 2023
2 parents a6ec783 + 29fda5e commit dfcfdad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 56 deletions.
34 changes: 0 additions & 34 deletions src/Mod/Draft/Resources/ui/preferences-drafttexts.ui
Original file line number Diff line number Diff line change
Expand Up @@ -389,40 +389,6 @@ such as &quot;Arial:Bold&quot;</string>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_16">
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>Text orientation</string>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefComboBox" name="gui::prefcombobox_3">
<property name="toolTip">
<string>This is the orientation of the dimension texts when those dimensions are vertical. Default is left, which is the ISO standard.</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>dimorientation</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Draft</cstring>
</property>
<item>
<property name="text">
<string>Left (ISO standard)</string>
</property>
</item>
<item>
<property name="text">
<string>Right</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
Expand Down
20 changes: 0 additions & 20 deletions src/Mod/Draft/Resources/ui/preferences-draftvisual.ui
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,6 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="Gui::PrefCheckBox" name="gui::prefcheckbox">
<property name="toolTip">
<string>Check this if you want to use the color/linewidth from the toolbar as default</string>
</property>
<property name="text">
<string>Save current color and linewidth across sessions</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>saveonexit</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Draft</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftutils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_param_type(param):
`'bool'`, `'unsigned'`, depending on the parameter.
It returns `None` for unhandled situations.
"""
if param in ("dimsymbol", "dimPrecision", "dimorientation",
if param in ("dimsymbol", "dimPrecision",
"precision", "defaultWP", "snapRange", "gridEvery",
"linewidth", "modconstrain", "modsnap",
"maxSnapEdges", "modalt", "HatchPatternResolution",
Expand All @@ -182,7 +182,7 @@ def get_param_type(param):
"dimovershoot", "extovershoot", "HatchPatternSize"):
return "float"
elif param in ("selectBaseObjects", "alwaysSnap", "grid",
"fillmode", "saveonexit", "maxSnap",
"fillmode", "maxSnap",
"SvgLinesBlack", "dxfStdSize", "showSnapBar",
"hideSnapBar", "alwaysShowGrid", "renderPolylineWidth",
"showPlaneTracker", "UsePartPrimitives",
Expand Down

0 comments on commit dfcfdad

Please sign in to comment.