]> ruin.nu Git - hbs.git/blob - bs/ui/infoview.ui
added code so you lose ships if you steal..
[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>4</y>
13             <width>267</width>
14             <height>221</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>221</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>0</number>
40         </property>
41         <property name="spacing">
42             <number>0</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="QLayoutWidget" row="8" column="0" rowspan="1" colspan="3">
93             <property name="name">
94                 <cstring>Layout13</cstring>
95             </property>
96             <hbox>
97                 <property name="name">
98                     <cstring>unnamed</cstring>
99                 </property>
100                 <property name="margin">
101                     <number>0</number>
102                 </property>
103                 <property name="spacing">
104                     <number>0</number>
105                 </property>
106                 <widget class="QPushButton">
107                     <property name="name">
108                         <cstring>ApplyButton</cstring>
109                     </property>
110                     <property name="text">
111                         <string>&amp;Apply</string>
112                     </property>
113                 </widget>
114                 <widget class="QPushButton">
115                     <property name="name">
116                         <cstring>CancelButton</cstring>
117                     </property>
118                     <property name="text">
119                         <string>&amp;Cancel</string>
120                     </property>
121                 </widget>
122                 <spacer>
123                     <property name="name">
124                         <cstring>Spacer1</cstring>
125                     </property>
126                     <property name="orientation">
127                         <enum>Horizontal</enum>
128                     </property>
129                     <property name="sizeType">
130                         <enum>Expanding</enum>
131                     </property>
132                 </spacer>
133                 <widget class="QPushButton">
134                     <property name="name">
135                         <cstring>NewButton</cstring>
136                     </property>
137                     <property name="enabled">
138                         <bool>false</bool>
139                     </property>
140                     <property name="text">
141                         <string>&amp;New</string>
142                     </property>
143                 </widget>
144                 <widget class="QPushButton">
145                     <property name="name">
146                         <cstring>RemoveButton</cstring>
147                     </property>
148                     <property name="enabled">
149                         <bool>false</bool>
150                     </property>
151                     <property name="text">
152                         <string>Remo&amp;ve</string>
153                     </property>
154                 </widget>
155             </hbox>
156         </widget>
157         <spacer row="7" column="1">
158             <property name="name">
159                 <cstring>Spacer4</cstring>
160             </property>
161             <property name="orientation">
162                 <enum>Vertical</enum>
163             </property>
164             <property name="sizeType">
165                 <enum>Expanding</enum>
166             </property>
167         </spacer>
168         <widget class="QLabel" row="6" column="0">
169             <property name="name">
170                 <cstring>RaceLabel</cstring>
171             </property>
172             <property name="text">
173                 <string>&amp;Race</string>
174             </property>
175             <property name="buddy" stdset="0">
176                 <cstring>RaceCombo</cstring>
177             </property>
178         </widget>
179         <widget class="QComboBox" row="6" column="1" rowspan="1" colspan="2">
180             <property name="name">
181                 <cstring>RaceCombo</cstring>
182             </property>
183         </widget>
184         <spacer row="2" column="2">
185             <property name="name">
186                 <cstring>Spacer3</cstring>
187             </property>
188             <property name="orientation">
189                 <enum>Vertical</enum>
190             </property>
191             <property name="sizeType">
192                 <enum>Expanding</enum>
193             </property>
194         </spacer>
195         <widget class="QLabel" row="3" column="0">
196             <property name="name">
197                 <cstring>NameLabel</cstring>
198             </property>
199             <property name="text">
200                 <string>Na&amp;me</string>
201             </property>
202             <property name="buddy" stdset="0">
203                 <cstring>NameLine</cstring>
204             </property>
205         </widget>
206         <widget class="QLabel" row="4" column="0">
207             <property name="name">
208                 <cstring>EtaLabel</cstring>
209             </property>
210             <property name="text">
211                 <string>E&amp;ta</string>
212             </property>
213             <property name="buddy" stdset="0">
214                 <cstring>EtaSpin</cstring>
215             </property>
216         </widget>
217         <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="2">
218             <property name="name">
219                 <cstring>NameLine</cstring>
220             </property>
221         </widget>
222         <widget class="QSpinBox" row="4" column="1" rowspan="1" colspan="2">
223             <property name="name">
224                 <cstring>EtaSpin</cstring>
225             </property>
226         </widget>
227         <widget class="QLabel" row="5" column="0">
228             <property name="name">
229                 <cstring>StayLabel</cstring>
230             </property>
231             <property name="text">
232                 <string>Stays</string>
233             </property>
234             <property name="buddy" stdset="0">
235                 <cstring>StaySpin</cstring>
236             </property>
237             <property name="toolTip" stdset="0">
238                 <string>Sets the number of ticks the fleet stays at the target, usually 3 for hostile and 6 for friendly. The fleet is disabled if stays is 0, and it stays the whole battle if it's -1</string>
239             </property>
240         </widget>
241         <widget class="QSpinBox" row="5" column="1" rowspan="1" colspan="2">
242             <property name="name">
243                 <cstring>StaySpin</cstring>
244             </property>
245             <property name="minValue">
246                 <number>-1</number>
247             </property>
248         </widget>
249     </grid>
250 </widget>
251 <connections>
252     <connection>
253         <sender>CancelButton</sender>
254         <signal>clicked()</signal>
255         <receiver>InfoView</receiver>
256         <slot>CancelButton_clicked()</slot>
257     </connection>
258     <connection>
259         <sender>NewButton</sender>
260         <signal>clicked()</signal>
261         <receiver>InfoView</receiver>
262         <slot>NewButton_clicked()</slot>
263     </connection>
264     <connection>
265         <sender>RemoveButton</sender>
266         <signal>clicked()</signal>
267         <receiver>InfoView</receiver>
268         <slot>RemoveButton_clicked()</slot>
269     </connection>
270     <connection>
271         <sender>ApplyButton</sender>
272         <signal>clicked()</signal>
273         <receiver>InfoView</receiver>
274         <slot>ApplyButton_clicked()</slot>
275     </connection>
276     <connection>
277         <sender>NameLine</sender>
278         <signal>textChanged(const QString&amp;)</signal>
279         <receiver>InfoView</receiver>
280         <slot>slotNameChanged(const QString&amp;)</slot>
281     </connection>
282 </connections>
283 <tabstops>
284     <tabstop>NameLine</tabstop>
285     <tabstop>EtaSpin</tabstop>
286     <tabstop>RaceCombo</tabstop>
287     <tabstop>ApplyButton</tabstop>
288     <tabstop>CancelButton</tabstop>
289     <tabstop>NewButton</tabstop>
290     <tabstop>RemoveButton</tabstop>
291 </tabstops>
292 <includes>
293     <include location="global" impldecl="in declaration">vector</include>
294     <include location="local" impldecl="in implementation">infoview.ui.h</include>
295 </includes>
296 <variables>
297     <variable>QString m_Name;</variable>
298     <variable>QString m_Battle;</variable>
299     <variable>QString m_Group;</variable>
300 </variables>
301 <signals>
302     <signal>remove()</signal>
303     <signal>cancel()</signal>
304     <signal>apply()</signal>
305     <signal>add()</signal>
306 </signals>
307 <slots>
308     <slot>init()</slot>
309     <slot>destroy()</slot>
310     <slot>setRaces( std::vector&lt;QString&gt; races )</slot>
311     <slot>setEta( int eta )</slot>
312     <slot>setFleetName( QString name )</slot>
313     <slot>setRace( QString name )</slot>
314     <slot>InfoView_destroyed( QObject * )</slot>
315     <slot>CancelButton_clicked()</slot>
316     <slot>NewButton_clicked()</slot>
317     <slot>RemoveButton_clicked()</slot>
318     <slot>setGroup( QString s )</slot>
319     <slot>setBattles( std::vector&lt;QString&gt; battles )</slot>
320     <slot>setBattle( QString s )</slot>
321     <slot>enableNameChange( bool b )</slot>
322     <slot>enableRemove( bool b )</slot>
323     <slot>ApplyButton_clicked()</slot>
324     <slot returnType="QString">battle()</slot>
325     <slot returnType="int">eta()</slot>
326     <slot returnType="QString">fleetName()</slot>
327     <slot returnType="QString">group()</slot>
328     <slot returnType="QString">race()</slot>
329     <slot>slotNameChanged( const QString &amp; s )</slot>
330     <slot returnType="int">stays()</slot>
331     <slot>setStays( int ticks )</slot>
332 </slots>
333 <layoutdefaults spacing="0" margin="0"/>
334 </UI>