Merge pull request #11366 from Roy-043/Draft-remove-unused-dimorientation-and-saveonexit-prefs

Draft: remove unused dimorientation and saveonexit prefs
This commit is contained in:
Roy-043
2023-11-12 21:24:30 +01:00
committed by GitHub
3 changed files with 2 additions and 56 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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",
@@ -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",