]> ruin.nu Git - hbs.git/blobdiff - bs/ui/infoview.ui
added comboboxes for the battle and group in the info view
[hbs.git] / bs / ui / infoview.ui
index b4355774119af2ae82f6697ceaff1cbd57137ef6..b34ef8a5428debf100bce165bbef7a9f41b1db2e 100644 (file)
@@ -1,5 +1,7 @@
 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
 <class>InfoView</class>
+<comment>A nice little widget who don't know much about the rest of the world.. ;)</comment>
+<author>Michael Andree</author>
 <widget class="QWidget">
     <property name="name">
         <cstring>InfoView</cstring>
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>293</width>
-            <height>117</height>
+            <width>267</width>
+            <height>198</height>
         </rect>
     </property>
+    <property name="sizePolicy">
+        <sizepolicy>
+            <hsizetype>5</hsizetype>
+            <vsizetype>4</vsizetype>
+            <horstretch>0</horstretch>
+            <verstretch>0</verstretch>
+        </sizepolicy>
+    </property>
     <property name="maximumSize">
         <size>
             <width>32767</width>
-            <height>150</height>
+            <height>200</height>
         </size>
     </property>
     <property name="caption">
         <string>Form2</string>
     </property>
-    <vbox>
+    <grid>
         <property name="name">
             <cstring>unnamed</cstring>
         </property>
         <property name="margin">
-            <number>0</number>
+            <number>3</number>
         </property>
         <property name="spacing">
-            <number>0</number>
+            <number>2</number>
         </property>
-        <widget class="QLayoutWidget">
+        <widget class="QLabel" row="1" column="0">
             <property name="name">
-                <cstring>Layout7</cstring>
+                <cstring>GroupLabel</cstring>
             </property>
-            <grid>
-                <property name="name">
-                    <cstring>unnamed</cstring>
-                </property>
-                <property name="margin">
-                    <number>0</number>
+            <property name="text">
+                <string>&amp;Group</string>
+            </property>
+            <property name="buddy" stdset="0">
+                <cstring>GroupCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QLabel" row="0" column="0">
+            <property name="name">
+                <cstring>BattleLabel</cstring>
+            </property>
+            <property name="text">
+                <string>&amp;Battle</string>
+            </property>
+            <property name="buddy" stdset="0">
+                <cstring>BattleCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QComboBox" row="1" column="1" rowspan="1" colspan="2">
+            <item>
+                <property name="text">
+                    <string>Friendly</string>
                 </property>
-                <property name="spacing">
-                    <number>0</number>
+            </item>
+            <item>
+                <property name="text">
+                    <string>Hostile</string>
                 </property>
-                <widget class="QLabel" row="2" column="0">
-                    <property name="name">
-                        <cstring>RaceLabel</cstring>
-                    </property>
-                    <property name="text">
-                        <string>&amp;Race</string>
-                    </property>
-                    <property name="buddy" stdset="0">
-                        <cstring>RaceCombo</cstring>
-                    </property>
-                </widget>
-                <widget class="QComboBox" row="2" column="1">
-                    <property name="name">
-                        <cstring>RaceCombo</cstring>
-                    </property>
-                </widget>
-                <widget class="QLabel" row="1" column="0">
-                    <property name="name">
-                        <cstring>EtaLabel</cstring>
-                    </property>
-                    <property name="text">
-                        <string>&amp;Eta</string>
-                    </property>
-                    <property name="buddy" stdset="0">
-                        <cstring>EtaSpin</cstring>
-                    </property>
-                </widget>
-                <widget class="QSpinBox" row="1" column="1">
-                    <property name="name">
-                        <cstring>EtaSpin</cstring>
-                    </property>
-                </widget>
-                <widget class="QLineEdit" row="0" column="1">
-                    <property name="name">
-                        <cstring>NameLine</cstring>
-                    </property>
-                </widget>
-                <widget class="QLabel" row="0" column="0">
-                    <property name="name">
-                        <cstring>NameLabel</cstring>
-                    </property>
-                    <property name="text">
-                        <string>&amp;Name</string>
-                    </property>
-                    <property name="buddy" stdset="0">
-                        <cstring>NameLine</cstring>
-                    </property>
-                </widget>
-            </grid>
+            </item>
+            <property name="name">
+                <cstring>GroupCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="2">
+            <property name="name">
+                <cstring>BattleCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QLabel" row="5" column="0">
+            <property name="name">
+                <cstring>RaceLabel</cstring>
+            </property>
+            <property name="text">
+                <string>&amp;Race</string>
+            </property>
+            <property name="buddy" stdset="0">
+                <cstring>RaceCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="2">
+            <property name="name">
+                <cstring>NameLine</cstring>
+            </property>
+        </widget>
+        <widget class="QLabel" row="3" column="0">
+            <property name="name">
+                <cstring>NameLabel</cstring>
+            </property>
+            <property name="text">
+                <string>&amp;Name</string>
+            </property>
+            <property name="buddy" stdset="0">
+                <cstring>NameLine</cstring>
+            </property>
+        </widget>
+        <widget class="QComboBox" row="5" column="1" rowspan="1" colspan="2">
+            <property name="name">
+                <cstring>RaceCombo</cstring>
+            </property>
+        </widget>
+        <widget class="QLabel" row="4" column="0">
+            <property name="name">
+                <cstring>EtaLabel</cstring>
+            </property>
+            <property name="text">
+                <string>&amp;Eta</string>
+            </property>
+            <property name="buddy" stdset="0">
+                <cstring>EtaSpin</cstring>
+            </property>
         </widget>
-        <widget class="QLayoutWidget">
+        <widget class="QSpinBox" row="4" column="1" rowspan="1" colspan="2">
+            <property name="name">
+                <cstring>EtaSpin</cstring>
+            </property>
+        </widget>
+        <spacer row="2" column="2">
+            <property name="name" stdset="0">
+                <cstring>Spacer3</cstring>
+            </property>
+            <property name="orientation">
+                <enum>Vertical</enum>
+            </property>
+            <property name="sizeType">
+                <enum>Expanding</enum>
+            </property>
+            <property name="sizeHint">
+                <size>
+                    <width>20</width>
+                    <height>20</height>
+                </size>
+            </property>
+        </spacer>
+        <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="3">
             <property name="name">
                 <cstring>Layout13</cstring>
             </property>
                 </widget>
             </hbox>
         </widget>
-    </vbox>
+        <spacer row="6" column="1">
+            <property name="name" stdset="0">
+                <cstring>Spacer4</cstring>
+            </property>
+            <property name="orientation">
+                <enum>Vertical</enum>
+            </property>
+            <property name="sizeType">
+                <enum>Expanding</enum>
+            </property>
+            <property name="sizeHint">
+                <size>
+                    <width>20</width>
+                    <height>20</height>
+                </size>
+            </property>
+        </spacer>
+    </grid>
 </widget>
 <connections>
-    <connection>
-        <sender>ApplyButton</sender>
-        <signal>clicked()</signal>
-        <receiver>InfoView</receiver>
-        <slot>ApplyButton_clicked()</slot>
-    </connection>
     <connection>
         <sender>CancelButton</sender>
         <signal>clicked()</signal>
     <slot>setFleetName( QString name )</slot>
     <slot>setRace( QString name )</slot>
     <slot>InfoView_destroyed( QObject * )</slot>
-    <slot>ApplyButton_clicked()</slot>
     <slot>CancelButton_clicked()</slot>
     <slot>NewButton_clicked()</slot>
     <slot>RemoveButton_clicked()</slot>
+    <slot>setGroup( QString s )</slot>
+    <slot>setBattles( std::vector&lt;QString&gt; battles )</slot>
+    <slot>setBattle( QString s )</slot>
 </slots>
 <layoutdefaults spacing="0" margin="0"/>
 </UI>