Skip to content

Commit

Permalink
add tooltips for meshing dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly authored and wwmayer committed Jul 21, 2019
1 parent 61e9658 commit f54df86
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Mod/Mesh/Gui/DlgSettingsImportExport.ui
Expand Up @@ -24,6 +24,9 @@
<layout class="QGridLayout">
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="maxDeviationExport">
<property name="toolTip">
<string>Maximal deviation between mesh and object</string>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
Expand All @@ -44,7 +47,7 @@
<item row="0" column="0">
<widget class="QLabel" name="textLabel1">
<property name="toolTip">
<string>Defines the deviation of tessellation to the actual surface</string>
<string>Deviation of tessellation to the actual surface</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Tessellation&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;&quot;&gt;&lt;/p&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;&quot;&gt;&lt;span style=&quot; font-weight:400;&quot;&gt;Defines the maximum deviation of the tessellated mesh to the surface. The smaller the value is the slower the render speed which results in increased detail/resolution.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
Expand All @@ -56,6 +59,9 @@
</item>
<item row="1" column="0">
<widget class="Gui::PrefCheckBox" name="exportAmfCompressed">
<property name="toolTip">
<string>ZIP compression is used when writing a mesh file in AMF format</string>
</property>
<property name="text">
<string>Export AMF files using compression</string>
</property>
Expand Down
55 changes: 55 additions & 0 deletions src/Mod/MeshPart/Gui/Tessellation.ui
Expand Up @@ -16,6 +16,9 @@
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">
<widget class="QTreeWidget" name="treeWidget">
<property name="toolTip">
<string>Select a shape to be meshed</string>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
Expand All @@ -34,20 +37,29 @@
<layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="0">
<widget class="QRadioButton" name="radioButtonStandard">
<property name="toolTip">
<string>Use the standard mesher</string>
</property>
<property name="text">
<string>Standard</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QRadioButton" name="radioButtonMefisto">
<property name="toolTip">
<string>Use the Mefisto mesher</string>
</property>
<property name="text">
<string>Mefisto</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QRadioButton" name="radioButtonNetgen">
<property name="toolTip">
<string>Use the Netgen mesher</string>
</property>
<property name="text">
<string>Netgen</string>
</property>
Expand All @@ -71,6 +83,9 @@
</item>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="spinSurfaceDeviation">
<property name="toolTip">
<string>Maximal linear deflection of a mesh section from the surface of the object</string>
</property>
<property name="unit" stdset="0">
<string notr="true">mm</string>
</property>
Expand All @@ -94,6 +109,9 @@
</item>
<item row="1" column="1">
<widget class="Gui::QuantitySpinBox" name="spinAngularDeviation">
<property name="toolTip">
<string>Maximal angular deflection of a mesh section to the next section</string>
</property>
<property name="unit" stdset="0">
<string notr="true">deg</string>
</property>
Expand All @@ -115,20 +133,32 @@
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="relativeDeviation">
<property name="toolTip">
<string>The maximal linear deviation of a mesh segment will be the specified
Surface deviation multiplied by the length of the current mesh segment (edge)</string>
</property>
<property name="text">
<string>Relative surface deviation</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="meshShapeColors">
<property name="toolTip">
<string>Mesh will get face colors of the object</string>
</property>
<property name="text">
<string>Apply face colors to mesh</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="groupsFaceColors">
<property name="toolTip">
<string>Mesh segments will be grouped according to the color of the object faces.
These groups will be exported for mesh output formats supporting
this feature (e.g. the format OBJ).</string>
</property>
<property name="text">
<string>Define segments by face colors</string>
</property>
Expand All @@ -150,6 +180,10 @@
</layout>
</widget>
<widget class="QWidget" name="pageMefisto">
<property name="toolTip">
<string>If this number is smaller the mesh becomes finer.
The smallest value is 0.</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
Expand Down Expand Up @@ -261,6 +295,10 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>If this parameter is smaller, the mesh becomes finer.
A value in the range of 0.1-1.</string>
</property>
<property name="decimals">
<number>1</number>
</property>
Expand Down Expand Up @@ -290,6 +328,10 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>If this parameter is larger, the mesh becomes finer.
A value in the range of 0.2-10.</string>
</property>
<property name="decimals">
<number>1</number>
</property>
Expand Down Expand Up @@ -319,6 +361,10 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>If this parameter is larger, the mesh becomes finer.
A value in the range of 0.2-10.</string>
</property>
<property name="decimals">
<number>1</number>
</property>
Expand All @@ -340,6 +386,9 @@
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkOptimizeSurface">
<property name="toolTip">
<string>Whether optimization of surface shape will be done</string>
</property>
<property name="text">
<string>Optimize surface</string>
</property>
Expand All @@ -350,13 +399,19 @@
</item>
<item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="checkSecondOrder">
<property name="toolTip">
<string>Whether second order elements will be generated</string>
</property>
<property name="text">
<string>Second order elements</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="checkQuadDominated">
<property name="toolTip">
<string>Whether meshes will be arranged preferably using quadrilateral faces</string>
</property>
<property name="text">
<string>Quad dominated</string>
</property>
Expand Down

0 comments on commit f54df86

Please sign in to comment.