]> ruin.nu Git - hbs.git/blob - bs/ui/infoview.ui
adding, removing and chaning fleets now works.
[hbs.git] / bs / ui / infoview.ui
1 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
2 <class>InfoView</class>
3 <comment>A nice little widget who don't know much about the rest of the world.. ;)</comment>
4 <author>Michael Andree</author>
5 <widget class="QWidget">
6     <property name="name">
7         <cstring>InfoView</cstring>
8     </property>
9     <property name="geometry">
10         <rect>
11             <x>0</x>
12             <y>0</y>
13             <width>267</width>
14             <height>198</height>
15         </rect>
16     </property>
17     <property name="sizePolicy">
18         <sizepolicy>
19             <hsizetype>5</hsizetype>
20             <vsizetype>4</vsizetype>
21             <horstretch>0</horstretch>
22             <verstretch>0</verstretch>
23         </sizepolicy>
24     </property>
25     <property name="maximumSize">
26         <size>
27             <width>32767</width>
28             <height>200</height>
29         </size>
30     </property>
31     <property name="caption">
32         <string>Form2</string>
33     </property>
34     <grid>
35         <property name="name">
36             <cstring>unnamed</cstring>
37         </property>
38         <property name="margin">
39             <number>3</number>
40         </property>
41         <property name="spacing">
42             <number>2</number>
43         </property>
44         <widget class="QLabel" row="1" column="0">
45             <property name="name">
46                 <cstring>GroupLabel</cstring>
47             </property>
48             <property name="text">
49                 <string>&amp;Group</string>
50             </property>
51             <property name="buddy" stdset="0">
52                 <cstring>GroupCombo</cstring>
53             </property>
54         </widget>
55         <widget class="QLabel" row="0" column="0">
56             <property name="name">
57                 <cstring>BattleLabel</cstring>
58             </property>
59             <property name="text">
60                 <string>&amp;Battle</string>
61             </property>
62             <property name="buddy" stdset="0">
63                 <cstring>BattleCombo</cstring>
64             </property>
65         </widget>
66         <widget class="QComboBox" row="1" column="1" rowspan="1" colspan="2">
67             <item>
68                 <property name="text">
69                     <string>Friendly</string>
70                 </property>
71             </item>
72             <item>
73                 <property name="text">
74                     <string>Hostile</string>
75                 </property>
76             </item>
77             <property name="name">
78                 <cstring>GroupCombo</cstring>
79             </property>
80             <property name="insertionPolicy">
81                 <enum>NoInsertion</enum>
82             </property>
83         </widget>
84         <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="2">
85             <property name="name">
86                 <cstring>BattleCombo</cstring>
87             </property>
88             <property name="insertionPolicy">
89                 <enum>NoInsertion</enum>
90             </property>
91         </widget>
92         <widget class="QLabel" row="5" column="0">
93             <property name="name">
94                 <cstring>RaceLabel</cstring>
95             </property>
96             <property name="text">
97                 <string>&amp;Race</string>
98             </property>
99             <property name="buddy" stdset="0">
100                 <cstring>RaceCombo</cstring>
101             </property>
102         </widget>
103         <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="2">
104             <property name="name">
105                 <cstring>NameLine</cstring>
106             </property>
107         </widget>
108         <widget class="QLabel" row="3" column="0">
109             <property name="name">
110                 <cstring>NameLabel</cstring>
111             </property>
112             <property name="text">
113                 <string>Na&amp;me</string>
114             </property>
115             <property name="buddy" stdset="0">
116                 <cstring>NameLine</cstring>
117             </property>
118         </widget>
119         <widget class="QComboBox" row="5" column="1" rowspan="1" colspan="2">
120             <property name="name">
121                 <cstring>RaceCombo</cstring>
122             </property>
123         </widget>
124         <widget class="QLabel" row="4" column="0">
125             <property name="name">
126                 <cstring>EtaLabel</cstring>
127             </property>
128             <property name="text">
129                 <string>E&amp;ta</string>
130             </property>
131             <property name="buddy" stdset="0">
132                 <cstring>EtaSpin</cstring>
133             </property>
134         </widget>
135         <widget class="QSpinBox" row="4" column="1" rowspan="1" colspan="2">
136             <property name="name">
137                 <cstring>EtaSpin</cstring>
138             </property>
139         </widget>
140         <spacer row="2" column="2">
141             <property name="name" stdset="0">
142                 <cstring>Spacer3</cstring>
143             </property>
144             <property name="orientation">
145                 <enum>Vertical</enum>
146             </property>
147             <property name="sizeType">
148                 <enum>Expanding</enum>
149             </property>
150             <property name="sizeHint">
151                 <size>
152                     <width>20</width>
153                     <height>20</height>
154                 </size>
155             </property>
156         </spacer>
157         <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="3">
158             <property name="name">
159                 <cstring>Layout13</cstring>
160             </property>
161             <hbox>
162                 <property name="name">
163                     <cstring>unnamed</cstring>
164                 </property>
165                 <property name="margin">
166                     <number>0</number>
167                 </property>
168                 <property name="spacing">
169                     <number>0</number>
170                 </property>
171                 <widget class="QPushButton">
172                     <property name="name">
173                         <cstring>ApplyButton</cstring>
174                     </property>
175                     <property name="text">
176                         <string>&amp;Apply</string>
177                     </property>
178                 </widget>
179                 <widget class="QPushButton">
180                     <property name="name">
181                         <cstring>CancelButton</cstring>
182                     </property>
183                     <property name="text">
184                         <string>&amp;Cancel</string>
185                     </property>
186                 </widget>
187                 <spacer>
188                     <property name="name" stdset="0">
189                         <cstring>Spacer1</cstring>
190                     </property>
191                     <property name="orientation">
192                         <enum>Horizontal</enum>
193                     </property>
194                     <property name="sizeType">
195                         <enum>Expanding</enum>
196                     </property>
197                     <property name="sizeHint">
198                         <size>
199                             <width>20</width>
200                             <height>20</height>
201                         </size>
202                     </property>
203                 </spacer>
204                 <widget class="QPushButton">
205                     <property name="name">
206                         <cstring>NewButton</cstring>
207                     </property>
208                     <property name="enabled">
209                         <bool>false</bool>
210                     </property>
211                     <property name="text">
212                         <string>&amp;New</string>
213                     </property>
214                 </widget>
215                 <widget class="QPushButton">
216                     <property name="name">
217                         <cstring>RemoveButton</cstring>
218                     </property>
219                     <property name="enabled">
220                         <bool>false</bool>
221                     </property>
222                     <property name="text">
223                         <string>Remo&amp;ve</string>
224                     </property>
225                 </widget>
226             </hbox>
227         </widget>
228         <spacer row="6" column="1">
229             <property name="name" stdset="0">
230                 <cstring>Spacer4</cstring>
231             </property>
232             <property name="orientation">
233                 <enum>Vertical</enum>
234             </property>
235             <property name="sizeType">
236                 <enum>Expanding</enum>
237             </property>
238             <property name="sizeHint">
239                 <size>
240                     <width>20</width>
241                     <height>20</height>
242                 </size>
243             </property>
244         </spacer>
245     </grid>
246 </widget>
247 <connections>
248     <connection>
249         <sender>CancelButton</sender>
250         <signal>clicked()</signal>
251         <receiver>InfoView</receiver>
252         <slot>CancelButton_clicked()</slot>
253     </connection>
254     <connection>
255         <sender>NewButton</sender>
256         <signal>clicked()</signal>
257         <receiver>InfoView</receiver>
258         <slot>NewButton_clicked()</slot>
259     </connection>
260     <connection>
261         <sender>RemoveButton</sender>
262         <signal>clicked()</signal>
263         <receiver>InfoView</receiver>
264         <slot>RemoveButton_clicked()</slot>
265     </connection>
266     <connection>
267         <sender>ApplyButton</sender>
268         <signal>clicked()</signal>
269         <receiver>InfoView</receiver>
270         <slot>ApplyButton_clicked()</slot>
271     </connection>
272     <connection>
273         <sender>NameLine</sender>
274         <signal>textChanged(const QString&amp;)</signal>
275         <receiver>InfoView</receiver>
276         <slot>slotNameChanged(const QString&amp;)</slot>
277     </connection>
278 </connections>
279 <tabstops>
280     <tabstop>NameLine</tabstop>
281     <tabstop>EtaSpin</tabstop>
282     <tabstop>RaceCombo</tabstop>
283     <tabstop>ApplyButton</tabstop>
284     <tabstop>CancelButton</tabstop>
285     <tabstop>NewButton</tabstop>
286     <tabstop>RemoveButton</tabstop>
287 </tabstops>
288 <includes>
289     <include location="global" impldecl="in declaration">vector</include>
290     <include location="local" impldecl="in implementation">infoview.ui.h</include>
291 </includes>
292 <variables>
293     <variable>QString m_Name;</variable>
294     <variable>QString m_Battle;</variable>
295     <variable>QString m_Group;</variable>
296 </variables>
297 <signals>
298     <signal>remove()</signal>
299     <signal>cancel()</signal>
300     <signal>apply()</signal>
301     <signal>add()</signal>
302 </signals>
303 <slots>
304     <slot>init()</slot>
305     <slot>destroy()</slot>
306     <slot>setRaces( std::vector&lt;QString&gt; races )</slot>
307     <slot>setEta( int eta )</slot>
308     <slot>setFleetName( QString name )</slot>
309     <slot>setRace( QString name )</slot>
310     <slot>InfoView_destroyed( QObject * )</slot>
311     <slot>CancelButton_clicked()</slot>
312     <slot>NewButton_clicked()</slot>
313     <slot>RemoveButton_clicked()</slot>
314     <slot>setGroup( QString s )</slot>
315     <slot>setBattles( std::vector&lt;QString&gt; battles )</slot>
316     <slot>setBattle( QString s )</slot>
317     <slot>enableNameChange( bool b )</slot>
318     <slot>enableRemove( bool b )</slot>
319     <slot>ApplyButton_clicked()</slot>
320     <slot returnType="QString">battle()</slot>
321     <slot returnType="int">eta()</slot>
322     <slot returnType="QString">fleetName()</slot>
323     <slot returnType="QString">group()</slot>
324     <slot returnType="QString">race()</slot>
325     <slot>slotNameChanged( const QString &amp; s )</slot>
326 </slots>
327 <layoutdefaults spacing="0" margin="0"/>
328 </UI>