Add units to some spinboxes on preferences pages (#19143)

* Add units to some spinboxes on preferences pages
* Ensure units have a space, ex: " px"
* FEM: Don't mark units for translation
This commit is contained in:
Ulices
2025-01-22 15:05:49 +00:00
committed by GitHub
parent b990fb129e
commit ee2f327a96
12 changed files with 362 additions and 347 deletions

View File

@@ -162,6 +162,9 @@
<property name="toolTip">
<string>Tabulator raster (how many spaces)</string>
</property>
<property name="suffix">
<string comment="Do not remove leading space"> spaces</string>
</property>
<property name="value">
<number>4</number>
</property>
@@ -185,6 +188,9 @@
<property name="toolTip">
<string>How many spaces will be inserted when pressing &lt;Tab&gt;</string>
</property>
<property name="suffix">
<string comment="Do not remove leading space"> spaces</string>
</property>
<property name="value">
<number>4</number>
</property>
@@ -317,6 +323,9 @@
<property name="toolTip">
<string>Font size to be used for selected code type</string>
</property>
<property name="suffix">
<string notr="true"> pt</string>
</property>
<property name="minimum">
<number>1</number>
</property>

View File

@@ -182,6 +182,9 @@
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string notr="true"> px</string>
</property>
<property name="minimum">
<number>10</number>
</property>
@@ -578,7 +581,7 @@ Free Turntable: the part will be rotated around the z-axis.</string>
The value is the diameter of the sphere to fit on the screen.</string>
</property>
<property name="unit" stdset="0">
<string>mm</string>
<string notr="true">mm</string>
</property>
<property name="minimum">
<double>0.000010000000000</double>
@@ -765,6 +768,25 @@ Mouse tilting is not disabled by this setting.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxSpinningAnimations">
<property name="toolTip">
<string>Enable spinning animations that are used in some navigation styles after dragging</string>
</property>
<property name="text">
<string>Enable spinning animations</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>UseSpinningAnimations</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="Gui::PrefSpinBox" name="spinBoxAnimationDuration">
<property name="maximumSize">
@@ -776,6 +798,9 @@ Mouse tilting is not disabled by this setting.</string>
<property name="toolTip">
<string>The duration of navigation animations in milliseconds</string>
</property>
<property name="suffix">
<string notr="true"> ms</string>
</property>
<property name="minimum">
<number>100</number>
</property>
@@ -809,25 +834,6 @@ Mouse tilting is not disabled by this setting.</string>
</property>
</spacer>
</item>
<item row="2" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxSpinningAnimations">
<property name="toolTip">
<string>Enable spinning animations that are used in some navigation styles after dragging</string>
</property>
<property name="text">
<string>Enable spinning animations</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>UseSpinningAnimations</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>

View File

@@ -118,7 +118,7 @@
<item>
<widget class="QLabel" name="spinPickRadiusLabel">
<property name="text">
<string>Pick radius (px):</string>
<string>Pick radius:</string>
</property>
</widget>
</item>
@@ -153,6 +153,9 @@ Larger value eases to pick things, but can make small features impossible to sel
<property name="inputMethodHints">
<set>Qt::ImhPreferNumbers</set>
</property>
<property name="suffix">
<string notr="true"> px</string>
</property>
<property name="decimals">
<number>1</number>
</property>

View File

@@ -497,29 +497,32 @@
</widget>
</item>
<item row="1" column="1">
<widget class="Gui::PrefSpinBox" name="CbLabelTextSize">
<property name="toolTip">
<string>Color Bar (used in Mesh and FEM Wbs) Label Text Size</string>
</property>
<property name="alignment">
<set>Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>4</number>
</property>
<property name="maximum">
<number>36</number>
</property>
<property name="value">
<number>13</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>CbLabelTextSize</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
<widget class="Gui::PrefSpinBox" name="CbLabelTextSize">
<property name="toolTip">
<string>Color Bar (used in Mesh and FEM Wbs) Label Text Size</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string> pt</string>
</property>
<property name="minimum">
<number>4</number>
</property>
<property name="maximum">
<number>36</number>
</property>
<property name="value">
<number>13</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>CbLabelTextSize</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
</layout>
</item>