Sketcher: Preferences - add 3D view scaling factor
================================================== In addition to the font size in pixels, which controls the 3D View font size (and indirectly the constraint icons), it is now possible to configure a scaling factor controlling the width of geometry, axes, information layer, and constraint lines.
This commit is contained in:
committed by
abdullahtahiriyo
parent
c71a4e0c2f
commit
d30f877788
@@ -147,6 +147,7 @@ SketcherSettingsDisplay::~SketcherSettingsDisplay()
|
||||
void SketcherSettingsDisplay::saveSettings()
|
||||
{
|
||||
ui->EditSketcherFontSize->onSave();
|
||||
ui->viewScalingFactor->onSave();
|
||||
ui->SegmentsPerGeometry->onSave();
|
||||
ui->dialogOnDistanceConstraint->onSave();
|
||||
ui->continueMode->onSave();
|
||||
@@ -166,6 +167,7 @@ void SketcherSettingsDisplay::saveSettings()
|
||||
void SketcherSettingsDisplay::loadSettings()
|
||||
{
|
||||
ui->EditSketcherFontSize->onRestore();
|
||||
ui->viewScalingFactor->onRestore();
|
||||
ui->SegmentsPerGeometry->onRestore();
|
||||
ui->dialogOnDistanceConstraint->onRestore();
|
||||
ui->continueMode->onRestore();
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<string>Sketch editing</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="3" column="0" colspan="2">
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="dialogOnDistanceConstraint">
|
||||
<property name="toolTip">
|
||||
<string>A dialog will pop up to input a value for new dimensional constraints</string>
|
||||
@@ -52,14 +52,14 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>Segments per geometry</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="2">
|
||||
<item row="6" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="constraintMode">
|
||||
<property name="toolTip">
|
||||
<string>Current constraint creation tool will remain active after creation</string>
|
||||
@@ -78,7 +78,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item row="2" column="1">
|
||||
<widget class="QComboBox" name="comboBox">
|
||||
<property name="toolTip">
|
||||
<string>Line pattern used for grid lines</string>
|
||||
@@ -88,7 +88,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<item row="7" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxHideUnits">
|
||||
<property name="toolTip">
|
||||
<string>Base length units will not be displayed in constraints.
|
||||
@@ -118,7 +118,7 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" colspan="2">
|
||||
<item row="8" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
@@ -290,7 +290,7 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<item row="5" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="continueMode">
|
||||
<property name="toolTip">
|
||||
<string>Current sketcher creation tool will remain active after creation</string>
|
||||
@@ -309,14 +309,14 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Grid line pattern</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="3" column="1">
|
||||
<widget class="Gui::PrefSpinBox" name="SegmentsPerGeometry">
|
||||
<property name="toolTip">
|
||||
<string>Number of polygons for geometry approximation</string>
|
||||
@@ -335,6 +335,50 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>182</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>View scale ratio</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="viewScalingFactor">
|
||||
<property name="toolTip">
|
||||
<string>The 3D view is scaled based on this factor</string>
|
||||
</property>
|
||||
<property name="inputMethodHints">
|
||||
<set>Qt::ImhPreferNumbers</set>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>0.500000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>5.000000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.050000000000000</double>
|
||||
</property>
|
||||
<property name="value">
|
||||
<double>1.000000000000000</double>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ViewScalingFactor</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>View</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -351,6 +395,11 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'.</string>
|
||||
<extends>QCheckBox</extends>
|
||||
<header>Gui/PrefWidgets.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>Gui::PrefDoubleSpinBox</class>
|
||||
<extends>QDoubleSpinBox</extends>
|
||||
<header>Gui/PrefWidgets.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>EditSketcherFontSize</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user