preferences 3D view dialog beautification

- rearrange items to grid view
- add missing SetEnabled slot

- also add some tooltips for the color settings dialog
This commit is contained in:
donovaly
2020-03-07 22:16:36 +01:00
committed by wwmayer
parent d2d27e9e79
commit 8dc120fde7
2 changed files with 269 additions and 302 deletions

View File

@@ -16,6 +16,9 @@
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="GroupBox12">
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>3D View settings</string>
</property>
@@ -122,14 +125,14 @@ will be shown at the lower left corner in opened files</string>
<property name="toolTip">
<string>Number of steps by turn when using arrows (default = 8 : step angle = 360/8 = 45 deg)</string>
</property>
<property name="value">
<number>8</number>
</property>
<property name="minimum">
<double>4</double>
<number>4</number>
</property>
<property name="maximum">
<double>36</double>
<number>36</number>
</property>
<property name="value">
<number>8</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>NaviStepByTurn</cstring>
@@ -217,25 +220,25 @@ report this setting as enabled when seeking support on the FreeCAD forums</strin
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="renderCacheLabel">
<property name="text">
<string>Render cache</string>
</property>
</widget>
</item>
<item>
<item row="0" column="1" colspan="2">
<widget class="QComboBox" name="renderCache">
<property name="toolTip">
<string>'Render Caching' is another way to say 'Rendering Acceleration'.
<property name="toolTip">
<string>'Render Caching' is another way to say 'Rendering Acceleration'.
There are 3 options available to achieve this:
1) 'Auto' (default), let Coin3D decide where to cache.
2) 'Distributed', manually turn on cache for all view provider root node.
3) 'Centralized', manually turn off cache in all nodes of all view provider, and
only cache at the scene graph root node. This offers the fastest rendering speed
but slower response to any scene changes.</string>
</property>
</property>
<property name="currentIndex">
<number>0</number>
</property>
@@ -256,33 +259,46 @@ but slower response to any scene changes.</string>
</item>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="CheckBox_UseAutoRotation">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Enable animated rotations</string>
</property>
<property name="text">
<string>Enable animation</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>UseAutoRotation</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout2">
<item row="0" column="2">
<item row="1" column="0">
<widget class="Gui::PrefCheckBox" name="CheckBox_UseAutoRotation">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Enable animated rotations</string>
</property>
<property name="text">
<string>Enable animation</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>UseAutoRotation</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="navigationLabel">
<property name="text">
<string>3D Navigation</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QComboBox" name="comboNavigationStyle">
<property name="toolTip">
<string>Navigation settings set</string>
</property>
<property name="currentIndex">
<number>-1</number>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QPushButton" name="mouseButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
@@ -299,14 +315,14 @@ Select a set and then press the button to view said configurations.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="aliasingLAbel">
<item row="3" column="0">
<widget class="QLabel" name="orbitLabel">
<property name="text">
<string>Anti-Aliasing</string>
<string>Orbit style</string>
</property>
</widget>
</item>
<item row="1" column="1">
<item row="3" column="1" colspan="2">
<widget class="QComboBox" name="comboOrbitStyle">
<property name="toolTip">
<string>Rotation orbit style.
@@ -328,7 +344,14 @@ Turntable: the part will be rotated around the z-axis.</string>
</item>
</widget>
</item>
<item row="2" column="1">
<item row="4" column="0">
<widget class="QLabel" name="aliasingLAbel">
<property name="text">
<string>Anti-Aliasing</string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="Gui::PrefComboBox" name="comboAliasing">
<property name="toolTip">
<string>What kind of multisample anti-aliasing is used </string>
@@ -366,52 +389,28 @@ Turntable: the part will be rotated around the z-axis.</string>
</item>
</widget>
</item>
<item row="3" column="0">
<item row="5" column="0">
<widget class="QLabel" name="newDocViewLabel">
<property name="text">
<string>New Document Camera Orientation</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboNavigationStyle">
<property name="toolTip">
<string>Navigation settings set</string>
</property>
<property name="currentIndex">
<number>-1</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="orbitLabel">
<property name="text">
<string>Orbit style</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="navigationLabel">
<property name="text">
<string>3D Navigation</string>
</property>
</widget>
</item>
<item row="3" column="1">
<item row="5" column="1" colspan="2">
<widget class="QComboBox" name="comboNewDocView">
<property name="toolTip">
<string>Camera orientation for new documents</string>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="6" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>New document scale</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="6" column="1" colspan="2">
<widget class="PrefUnitSpinBox" name="qspinNewDocScale" native="true">
<property name="toolTip">
<string>Sets camera zoom for new documents.
@@ -437,11 +436,7 @@ The value is the diameter of the sphere to fit on the screen.</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<item row="7" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxZoomAtCursor">
<property name="toolTip">
<string>Zoom operations will be performed at position of mouse pointer</string>
@@ -460,131 +455,116 @@ The value is the diameter of the sphere to fit on the screen.</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Zoom step</string>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefDoubleSpinBox" name="spinBoxZoomStep">
<property name="toolTip">
<string>How much will be zoomed.
<item row="7" column="1" colspan="3">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Zoom step</string>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefDoubleSpinBox" name="spinBoxZoomStep">
<property name="toolTip">
<string>How much will be zoomed.
Zoom step of '1' means a factor of 7.5 for every zoom step. </string>
</property>
<property name="minimum">
<double>0.010000000000000</double>
</property>
<property name="maximum">
<double>1.000000000000000</double>
</property>
<property name="singleStep">
<double>0.050000000000000</double>
</property>
<property name="value">
<double>0.200000000000000</double>
</property>
<property name="prefEntry" stdset="0">
<cstring>ZoomStep</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="8" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxInvertZoom">
<property name="toolTip">
<string>Direction of zoom operations will be inverted</string>
</property>
<property name="minimum">
<double>0.010000000000000</double>
<property name="text">
<string>Invert zoom</string>
</property>
<property name="maximum">
<double>1.000000000000000</double>
</property>
<property name="singleStep">
<double>0.050000000000000</double>
</property>
<property name="value">
<double>0.200000000000000</double>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>ZoomStep</cstring>
<cstring>InvertZoom</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxInvertZoom">
<property name="toolTip">
<string>Direction of zoom operations will be inverted</string>
</property>
<property name="text">
<string>Invert zoom</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>InvertZoom</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxDisableTilt">
<property name="toolTip">
<string>Prevents view tilting when pinch-zooming.
<item row="9" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxDisableTilt">
<property name="toolTip">
<string>Prevents view tilting when pinch-zooming.
Affects only gesture navigation style.
Mouse tilting is not disabled by this setting.</string>
</property>
<property name="text">
<string>Disable touchscreen tilt gesture</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>DisableTouchTilt</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxDragAtCursor">
<property name="toolTip">
<string>Rotations in 3D will use current cursor position as center for rotation</string>
</property>
<property name="text">
<string>Rotate at cursor</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>DragAtCursor</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
</property>
<property name="text">
<string>Disable touchscreen tilt gesture</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>DisableTouchTilt</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxDragAtCursor">
<property name="toolTip">
<string>Rotations in 3D will use current cursor position as center for rotation</string>
</property>
<property name="text">
<string>Rotate at cursor</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>DragAtCursor</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="markerSizeLabel">
<property name="toolTip">
<string/>
@@ -594,53 +574,21 @@ Mouse tilting is not disabled by this setting.</string>
</property>
</widget>
</item>
<item>
<item row="11" column="1" colspan="2">
<widget class="QComboBox" name="boxMarkerSize">
<property name="toolTip">
<string>Size of vertices in the Sketcher workbench</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line1">
<property name="frameShape">
<enum>QFrame::HLine</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="eyedistanceLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<item row="12" column="0" colspan="2">
<widget class="QLabel" name="textLabel1">
<property name="text">
<string>Eye to eye distance for stereo modes:</string>
<string>Eye to eye distance for stereo modes</string>
</property>
</widget>
</item>
<item>
<item row="12" column="2">
<widget class="Gui::PrefDoubleSpinBox" name="FloatSpinBox_EyeDistance">
<property name="toolTip">
<string>Eye-to-eye distance used for stereo projections.
@@ -673,33 +621,70 @@ bounding box size of the 3D object that is currently displayed. </string>
</layout>
</item>
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="backlightLayout">
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxBacklight">
<property name="toolTip">
<string>Backlight is enabled with the defined color</string>
</property>
<property name="text">
<string>Enable backlight color</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>EnableBacklight</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefColorButton" name="backlightColor">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Backlight color</string>
</property>
<property name="color" stdset="0">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="prefEntry" stdset="0">
<cstring>BacklightColor</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="backlightLabel">
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Intensity of backlight</string>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefSlider" name="sliderIntensity">
<property name="enabled">
<bool>false</bool>
@@ -739,55 +724,6 @@ bounding box size of the 3D object that is currently displayed. </string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Gui::PrefColorButton" name="backlightColor">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Backlight color</string>
</property>
<property name="color" stdset="0">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="prefEntry" stdset="0">
<cstring>BacklightColor</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="backlightLabel">
<property name="toolTip">
<string/>
</property>
<property name="text">
<string>Intensity of backlight</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxBacklight">
<property name="toolTip">
<string>Backlight is enabled with the defined color</string>
</property>
<property name="text">
<string>Enable backlight color</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>EnableBacklight</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>View</cstring>
</property>
</widget>
</item>
</layout>
</item>
</layout>
@@ -971,5 +907,21 @@ bounding box size of the 3D object that is currently displayed. </string>
</hint>
</hints>
</connection>
<connection>
<sender>checkBoxBacklight</sender>
<signal>toggled(bool)</signal>
<receiver>backlightLabel</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>82</x>
<y>507</y>
</hint>
<hint type="destinationlabel">
<x>316</x>
<y>507</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@@ -219,6 +219,9 @@ Larger value eases to pick things, but can make small features impossible to sel
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBoxColor">
<property name="toolTip">
<string>Background color for the model view</string>
</property>
<property name="title">
<string>Background color</string>
</property>
@@ -295,6 +298,9 @@ Larger value eases to pick things, but can make small features impossible to sel
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Background will have selected color</string>
</property>
<property name="text">
<string/>
</property>
@@ -331,6 +337,9 @@ Larger value eases to pick things, but can make small features impossible to sel
</item>
<item row="2" column="1">
<widget class="Gui::PrefColorButton" name="backgroundColorTo">
<property name="toolTip">
<string>Bottom color</string>
</property>
<property name="text">
<string/>
</property>
@@ -354,6 +363,9 @@ Larger value eases to pick things, but can make small features impossible to sel
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Middle color</string>
</property>
<property name="text">
<string/>
</property>
@@ -375,7 +387,7 @@ Larger value eases to pick things, but can make small features impossible to sel
<item row="1" column="0">
<widget class="Gui::PrefRadioButton" name="radioButtonGradient">
<property name="toolTip">
<string>Background for parts will have selected color gradient</string>
<string>Background will have selected color gradient</string>
</property>
<property name="text">
<string>Color gradient</string>
@@ -393,6 +405,9 @@ Larger value eases to pick things, but can make small features impossible to sel
</item>
<item row="1" column="1">
<widget class="Gui::PrefColorButton" name="backgroundColorFrom">
<property name="toolTip">
<string>Top color</string>
</property>
<property name="text">
<string/>
</property>
@@ -420,7 +435,7 @@ Larger value eases to pick things, but can make small features impossible to sel
</size>
</property>
<property name="toolTip">
<string>Background for parts will have selected color</string>
<string>Background will have selected color</string>
</property>
<property name="text">
<string>Simple color</string>