Skip to content

Commit

Permalink
More refactoring of the "Add container" dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Dec 1, 2021
1 parent ad6d27c commit 2608a94
Showing 1 changed file with 74 additions and 58 deletions.
132 changes: 74 additions & 58 deletions src/ui/qgsaddtaborgroupbase.ui
Expand Up @@ -14,59 +14,34 @@
<string notr="true">Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout_0">
<item row="0" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Create container</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="mName"/>
</item>
<item row="0" column="3">
<widget class="QLabel" name="label_2">
<property name="text">
<string>as</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QRadioButton" name="mTabButton">
<property name="text">
<string>a tab</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup</string>
</attribute>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QRadioButton" name="mGroupButton">
<property name="text">
<string>a group in container</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup</string>
</attribute>
</widget>
</item>
<item row="2" column="2" colspan="2">
<widget class="QComboBox" name="mTabList">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Label</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mName"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Number of columns</string>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer">
Expand All @@ -81,14 +56,55 @@
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Number of columns</string>
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Container Type</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QRadioButton" name="mTabButton">
<property name="text">
<string>Tab</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup</string>
</attribute>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="mGroupButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Group box in container</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup</string>
</attribute>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="mTabList">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<item row="2" column="1">
<widget class="QgsSpinBox" name="mColumnCountSpinBox">
<property name="minimum">
<number>1</number>
Expand Down

0 comments on commit 2608a94

Please sign in to comment.