Skip to content
Permalink
Browse files

Clean the skybox widget

Simplify dialog, no need to group features in boxes with title
Remove colon at the end of labels
Reorder widgets to ease use of tab key
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 21, 2020
1 parent d4972d7 commit 8bffc6b5c3e3aa6d617c51c46f2b76a207ae51e4
Showing with 85 additions and 97 deletions.
  1. +85 −97 src/ui/3d/skyboxrenderingsettingswidget.ui
@@ -6,120 +6,108 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>449</height>
<width>301</width>
<height>228</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
<widget class="QGroupBox" name="panoramicTextureGroupBox">
<property name="title">
<string>Panoramic image:</string>
<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 row="0" column="1">
<widget class="QLabel" name="skyboxTypeLabel">
<property name="text">
<string>Skybox Type</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QGridLayout" name="hdrTextureLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Panoramic Texture File:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsImageSourceLineEdit" name="panoramicTextureImageSource" native="true"/>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="faceTexturesGroupBox">
<property name="title">
<string>6 separate faces:</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<layout class="QGridLayout" name="faceTexturesLayout">
<item row="5" column="1">
<widget class="QgsImageSourceLineEdit" name="posZImageSource" native="true"/>
</item>
<item row="4" column="1">
<widget class="QgsImageSourceLineEdit" name="posYImageSource" native="true"/>
</item>
<item row="2" column="1">
<widget class="QgsImageSourceLineEdit" name="negZImageSource" native="true"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Front (+Y)</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Right (+X)</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Down (-Y)</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Back (-Z)</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Left (-X)</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Top (+Z)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsImageSourceLineEdit" name="negXImageSource" native="true"/>
</item>
<item row="1" column="1">
<widget class="QgsImageSourceLineEdit" name="negYImageSource" native="true"/>
</item>
<item row="3" column="1">
<widget class="QgsImageSourceLineEdit" name="posXImageSource" native="true"/>
</item>
</layout>
</item>
</layout>
</widget>
<item row="0" column="2">
<widget class="QComboBox" name="skyboxTypeComboBox"/>
</item>
<item row="1" column="1" colspan="2">
<layout class="QGridLayout" name="hdrTextureLayout">
<item row="0" column="0">
<widget class="QLabel" name="panoramicTextureLabel">
<property name="text">
<string>Panoramic Texture File</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsImageSourceLineEdit" name="panoramicTextureImageSource" native="true"/>
</item>
</layout>
</item>
<item row="2" column="1" colspan="2">
<layout class="QGridLayout" name="faceTexturesLayout">
<item row="0" column="0">
<widget class="QLabel" name="negXImageSourceLabel">
<property name="text">
<string>Left (-X)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsImageSourceLineEdit" name="negXImageSource" native="true"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="negYImageSourceLabel">
<property name="text">
<string>Down (-Y)</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QgsImageSourceLineEdit" name="negYImageSource" native="true"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="negZImageSourceLabel">
<property name="text">
<string>Skybox Type:</string>
<string>Back (-Z)</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="skyboxTypeComboBox"/>
<widget class="QgsImageSourceLineEdit" name="negZImageSource" native="true"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="posXImageSourceLabel">
<property name="text">
<string>Right (+X)</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QgsImageSourceLineEdit" name="posXImageSource" native="true"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="posYImageSourceLabel">
<property name="text">
<string>Front (+Y)</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QgsImageSourceLineEdit" name="posYImageSource" native="true"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="posZImageSourceLabel">
<property name="text">
<string>Top (+Z)</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QgsImageSourceLineEdit" name="posZImageSource" native="true"/>
</item>
</layout>
</item>

0 comments on commit 8bffc6b

Please sign in to comment.
You can’t perform that action at this time.