Move dialogs layout code into separate ui file
[vlp.git] / src / edit / ui / dialogs / UnitStructureDialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>UnitStructureDialog</class>
4  <widget class="QDialog" name="UnitStructureDialog">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>486</width>
10     <height>262</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>Dialog</string>
15   </property>
16   <layout class="QVBoxLayout" name="verticalLayout_3">
17    <item>
18     <layout class="QHBoxLayout" name="horizontalLayout">
19      <item>
20       <layout class="QVBoxLayout" name="verticalLayout">
21        <item>
22         <widget class="QLabel" name="label_2">
23          <property name="text">
24           <string>Unit type</string>
25          </property>
26         </widget>
27        </item>
28        <item>
29         <widget class="QListWidget" name="listWidget">
30          <property name="minimumSize">
31           <size>
32            <width>200</width>
33            <height>0</height>
34           </size>
35          </property>
36         </widget>
37        </item>
38       </layout>
39      </item>
40      <item>
41       <layout class="QVBoxLayout" name="verticalLayout_2">
42        <item>
43         <widget class="QLabel" name="label">
44          <property name="sizePolicy">
45           <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
46            <horstretch>0</horstretch>
47            <verstretch>0</verstretch>
48           </sizepolicy>
49          </property>
50          <property name="text">
51           <string>Unit name</string>
52          </property>
53         </widget>
54        </item>
55        <item>
56         <widget class="QLineEdit" name="lineEdit">
57          <property name="sizePolicy">
58           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
59            <horstretch>0</horstretch>
60            <verstretch>0</verstretch>
61           </sizepolicy>
62          </property>
63          <property name="minimumSize">
64           <size>
65            <width>200</width>
66            <height>0</height>
67           </size>
68          </property>
69         </widget>
70        </item>
71        <item>
72         <spacer name="verticalSpacer">
73          <property name="orientation">
74           <enum>Qt::Vertical</enum>
75          </property>
76          <property name="sizeHint" stdset="0">
77           <size>
78            <width>20</width>
79            <height>40</height>
80           </size>
81          </property>
82         </spacer>
83        </item>
84       </layout>
85      </item>
86     </layout>
87    </item>
88    <item>
89     <widget class="QDialogButtonBox" name="buttonBox">
90      <property name="orientation">
91       <enum>Qt::Horizontal</enum>
92      </property>
93      <property name="standardButtons">
94       <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
95      </property>
96     </widget>
97    </item>
98   </layout>
99  </widget>
100  <resources/>
101  <connections>
102   <connection>
103    <sender>buttonBox</sender>
104    <signal>accepted()</signal>
105    <receiver>UnitStructureDialog</receiver>
106    <slot>accept()</slot>
107    <hints>
108     <hint type="sourcelabel">
109      <x>248</x>
110      <y>254</y>
111     </hint>
112     <hint type="destinationlabel">
113      <x>157</x>
114      <y>274</y>
115     </hint>
116    </hints>
117   </connection>
118   <connection>
119    <sender>buttonBox</sender>
120    <signal>rejected()</signal>
121    <receiver>UnitStructureDialog</receiver>
122    <slot>reject()</slot>
123    <hints>
124     <hint type="sourcelabel">
125      <x>316</x>
126      <y>260</y>
127     </hint>
128     <hint type="destinationlabel">
129      <x>286</x>
130      <y>274</y>
131     </hint>
132    </hints>
133   </connection>
134  </connections>
135 </ui>