Skip to content

Commit

Permalink
Added some tooltips for 3d widgets - I got bored of trying to remembe…
Browse files Browse the repository at this point in the history
…r what the diffuse, specular etc mean.
  • Loading branch information
Tim Sutton authored and github-actions[bot] committed Dec 19, 2021
1 parent 1601ec4 commit 727c7cf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
11 changes: 10 additions & 1 deletion src/ui/3d/goochmaterialwidget.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>394</width>
<height>230</height>
<height>326</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -16,6 +16,9 @@
<layout class="QGridLayout" name="gridLayout">
<item row="4" column="0">
<widget class="QLabel" name="lblShininess">
<property name="toolTip">
<string>How shiny smooth surfaces are.</string>
</property>
<property name="text">
<string>Shininess</string>
</property>
Expand All @@ -30,6 +33,9 @@
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblDiffuse">
<property name="toolTip">
<string>Color of light reflected from rough surfaces.</string>
</property>
<property name="text">
<string>Diffuse</string>
</property>
Expand All @@ -47,6 +53,9 @@
</item>
<item row="3" column="0">
<widget class="QLabel" name="lblSpecular">
<property name="toolTip">
<string>Color of light reflecting from smooth surfaces.</string>
</property>
<property name="text">
<string>Specular</string>
</property>
Expand Down
14 changes: 13 additions & 1 deletion src/ui/3d/phongmaterialwidget.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>394</width>
<height>134</height>
<height>186</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -16,6 +16,9 @@
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0">
<widget class="QLabel" name="lblShininess">
<property name="toolTip">
<string>How shiny smooth surfaces are.</string>
</property>
<property name="text">
<string>Shininess</string>
</property>
Expand Down Expand Up @@ -55,13 +58,19 @@
</item>
<item row="2" column="0">
<widget class="QLabel" name="lblSpecular">
<property name="toolTip">
<string>Color of light reflecting from smooth surfaces.</string>
</property>
<property name="text">
<string>Specular</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblDiffuse">
<property name="toolTip">
<string>Color of light reflected from rough surfaces.</string>
</property>
<property name="text">
<string>Diffuse</string>
</property>
Expand All @@ -76,6 +85,9 @@
</item>
<item row="1" column="0">
<widget class="QLabel" name="lblAmbient">
<property name="toolTip">
<string>Color of light that is scattered around the entire scene.</string>
</property>
<property name="text">
<string>Ambient</string>
</property>
Expand Down
23 changes: 16 additions & 7 deletions src/ui/3d/phongtexturedmaterialwidgetbase.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>394</width>
<height>197</height>
<height>252</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -39,6 +39,9 @@
</item>
<item row="1" column="0">
<widget class="QLabel" name="lblSpecular">
<property name="toolTip">
<string>Color of light reflecting from smooth surfaces.</string>
</property>
<property name="text">
<string>Specular</string>
</property>
Expand Down Expand Up @@ -88,6 +91,9 @@
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblAmbient">
<property name="toolTip">
<string>Color of light that is scattered around the entire scene.</string>
</property>
<property name="text">
<string>Ambient</string>
</property>
Expand Down Expand Up @@ -118,6 +124,9 @@
</item>
<item row="2" column="0">
<widget class="QLabel" name="lblShininess">
<property name="toolTip">
<string>How shiny smooth surfaces are.</string>
</property>
<property name="text">
<string>Shininess</string>
</property>
Expand All @@ -136,12 +145,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsImageSourceLineEdit</class>
<extends>QWidget</extends>
<header>qgsfilecontentsourcelineedit.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
Expand All @@ -153,6 +156,12 @@
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsImageSourceLineEdit</class>
<extends>QWidget</extends>
<header>qgsfilecontentsourcelineedit.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>btnAmbient</tabstop>
Expand Down

0 comments on commit 727c7cf

Please sign in to comment.