]> ruin.nu Git - hbs.git/commitdiff
commiting the basic structure and some test code
authorMichael Andreen <harv@ruin.nu>
Mon, 24 Sep 2001 19:52:55 +0000 (19:52 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 24 Sep 2001 19:52:55 +0000 (19:52 +0000)
bs/ui/fleetviewbase.ui
bs/ui/fleetviewbase.ui.h [new file with mode: 0644]

index edacee0f8f7ae785788c5ba7aa32401e6b5dd3f4..a736d64b576bc65833f424a6c2e14f53de2d4402 100644 (file)
     <property name="caption">
         <string>Form1</string>
     </property>
-    <widget class="QLabel">
+    <widget class="QLayoutWidget">
         <property name="name">
-            <cstring>TextLabel6</cstring>
+            <cstring>Layout13</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>410</x>
-                <y>90</y>
-                <width>65</width>
-                <height>15</height>
+                <x>308</x>
+                <y>11</y>
+                <width>281</width>
+                <height>344</height>
             </rect>
         </property>
-        <property name="text">
-            <string>TextLabel6</string>
-        </property>
-    </widget>
-    <widget class="QLabel">
-        <property name="name">
-            <cstring>TextLabel7</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>415</x>
-                <y>110</y>
-                <width>65</width>
-                <height>15</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>TextLabel7</string>
-        </property>
+        <vbox>
+            <property name="name">
+                <cstring>unnamed</cstring>
+            </property>
+            <property name="margin">
+                <number>0</number>
+            </property>
+            <property name="spacing">
+                <number>6</number>
+            </property>
+            <widget class="QLayoutWidget">
+                <property name="name">
+                    <cstring>Layout12</cstring>
+                </property>
+                <vbox>
+                    <property name="name">
+                        <cstring>unnamed</cstring>
+                    </property>
+                    <property name="margin">
+                        <number>0</number>
+                    </property>
+                    <property name="spacing">
+                        <number>6</number>
+                    </property>
+                    <widget class="QLayoutWidget">
+                        <property name="name">
+                            <cstring>Layout11</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel15</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Name</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel16</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Total</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel17</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>L/S</string>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget">
+                        <property name="name">
+                            <cstring>Layout8</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout2</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>SpiderLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Spider</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>WraithLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Wraith</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>BlackWidowLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>BlackWidow</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>TextLabel9</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>TextLabel9</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>TextLabel10</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>TextLabel10</string>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout7</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit1_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit2_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit3_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit4_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit5_2</cstring>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout6</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit7_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit8_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit9_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit10_2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit11_2</cstring>
+                                        </property>
+                                        <property name="readOnly">
+                                            <bool>true</bool>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                        </hbox>
+                    </widget>
+                </vbox>
+            </widget>
+            <spacer>
+                <property name="name">
+                    <cstring>Spacer2</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>
+        </vbox>
     </widget>
-    <widget class="QLabel">
+    <spacer>
         <property name="name">
-            <cstring>TextLabel8</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>415</x>
-                <y>130</y>
-                <width>65</width>
-                <height>15</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>TextLabel8</string>
-        </property>
-    </widget>
-    <widget class="QLabel">
-        <property name="name">
-            <cstring>TextLabel9</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>415</x>
-                <y>150</y>
-                <width>65</width>
-                <height>15</height>
-            </rect>
+            <cstring>Spacer1</cstring>
         </property>
-        <property name="text">
-            <string>TextLabel9</string>
+        <property name="orientation">
+            <enum>Horizontal</enum>
         </property>
-    </widget>
-    <widget class="QLabel">
-        <property name="name">
-            <cstring>TextLabel10</cstring>
+        <property name="sizeType">
+            <enum>Expanding</enum>
         </property>
-        <property name="geometry">
-            <rect>
-                <x>420</x>
-                <y>170</y>
-                <width>72</width>
-                <height>15</height>
-            </rect>
+        <property name="sizeHint">
+            <size>
+                <width>20</width>
+                <height>20</height>
+            </size>
         </property>
-        <property name="text">
-            <string>TextLabel10</string>
-        </property>
-    </widget>
-    <widget class="QLabel">
+    </spacer>
+    <widget class="QLayoutWidget">
         <property name="name">
-            <cstring>TextLabel3</cstring>
+            <cstring>Layout15</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>100</x>
-                <y>120</y>
-                <width>65</width>
-                <height>15</height>
+                <x>11</x>
+                <y>11</y>
+                <width>284</width>
+                <height>305</height>
             </rect>
         </property>
-        <property name="text">
-            <string>TextLabel3</string>
-        </property>
+        <vbox>
+            <property name="name">
+                <cstring>unnamed</cstring>
+            </property>
+            <property name="margin">
+                <number>0</number>
+            </property>
+            <property name="spacing">
+                <number>6</number>
+            </property>
+            <widget class="QLayoutWidget">
+                <property name="name">
+                    <cstring>Layout10</cstring>
+                </property>
+                <vbox>
+                    <property name="name">
+                        <cstring>unnamed</cstring>
+                    </property>
+                    <property name="margin">
+                        <number>0</number>
+                    </property>
+                    <property name="spacing">
+                        <number>6</number>
+                    </property>
+                    <widget class="QLayoutWidget">
+                        <property name="name">
+                            <cstring>Layout9</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel12</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Name</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel13</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>Total</string>
+                                </property>
+                            </widget>
+                            <widget class="QLabel">
+                                <property name="name">
+                                    <cstring>TextLabel14</cstring>
+                                </property>
+                                <property name="text">
+                                    <string>L/S</string>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <widget class="QLayoutWidget">
+                        <property name="name">
+                            <cstring>Layout5</cstring>
+                        </property>
+                        <hbox>
+                            <property name="name">
+                                <cstring>unnamed</cstring>
+                            </property>
+                            <property name="margin">
+                                <number>0</number>
+                            </property>
+                            <property name="spacing">
+                                <number>6</number>
+                            </property>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout1</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>InterceptorLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Interceptor</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>PheonixLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Pheonix</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>WarfrigateLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Warfrigate</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>DevistatorLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Devistator</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>StarCruiserLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>StarCruiser</string>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLabel">
+                                        <property name="name">
+                                            <cstring>DreadnaughLabel</cstring>
+                                        </property>
+                                        <property name="text">
+                                            <string>Dreadnaught</string>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout3</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit1</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit2</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit3</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit4</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit5</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit6</cstring>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget class="QLayoutWidget">
+                                <property name="name">
+                                    <cstring>Layout4</cstring>
+                                </property>
+                                <vbox>
+                                    <property name="name">
+                                        <cstring>unnamed</cstring>
+                                    </property>
+                                    <property name="margin">
+                                        <number>0</number>
+                                    </property>
+                                    <property name="spacing">
+                                        <number>6</number>
+                                    </property>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit7</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit8</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit9</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit10</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit11</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget class="QLineEdit">
+                                        <property name="name">
+                                            <cstring>LineEdit12</cstring>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                        </hbox>
+                    </widget>
+                </vbox>
+            </widget>
+            <spacer>
+                <property name="name">
+                    <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>
+        </vbox>
     </widget>
-    <widget class="QLabel">
+    <widget class="QGroupBox">
         <property name="name">
-            <cstring>TextLabel4</cstring>
+            <cstring>CaptureBox</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>115</x>
-                <y>155</y>
-                <width>65</width>
-                <height>15</height>
+                <x>11</x>
+                <y>361</y>
+                <width>578</width>
+                <height>51</height>
             </rect>
         </property>
-        <property name="text">
-            <string>TextLabel4</string>
+        <property name="title">
+            <string>Captured roids</string>
         </property>
+        <hbox>
+            <property name="name">
+                <cstring>unnamed</cstring>
+            </property>
+            <property name="margin">
+                <number>11</number>
+            </property>
+            <property name="spacing">
+                <number>6</number>
+            </property>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel18</cstring>
+                </property>
+                <property name="text">
+                    <string>Metal</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit23</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel19</cstring>
+                </property>
+                <property name="text">
+                    <string>Crystal</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit24</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel20</cstring>
+                </property>
+                <property name="text">
+                    <string>Eonium</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit25</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+        </hbox>
     </widget>
-    <widget class="QLabel">
+    <widget class="QGroupBox">
         <property name="name">
-            <cstring>TextLabel1</cstring>
+            <cstring>SalvageBox</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>90</x>
-                <y>65</y>
-                <width>65</width>
-                <height>15</height>
+                <x>11</x>
+                <y>418</y>
+                <width>578</width>
+                <height>51</height>
             </rect>
         </property>
-        <property name="text">
-            <string>TextLabel1</string>
+        <property name="title">
+            <string>Salvage</string>
         </property>
+        <hbox>
+            <property name="name">
+                <cstring>unnamed</cstring>
+            </property>
+            <property name="margin">
+                <number>11</number>
+            </property>
+            <property name="spacing">
+                <number>6</number>
+            </property>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel18_2</cstring>
+                </property>
+                <property name="text">
+                    <string>Metal</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit23_2</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel19_2</cstring>
+                </property>
+                <property name="text">
+                    <string>Crystal</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit24_2</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+            <widget class="QLabel">
+                <property name="name">
+                    <cstring>TextLabel20_2</cstring>
+                </property>
+                <property name="text">
+                    <string>Eonium</string>
+                </property>
+            </widget>
+            <widget class="QLineEdit">
+                <property name="name">
+                    <cstring>LineEdit25_2</cstring>
+                </property>
+                <property name="readOnly">
+                    <bool>true</bool>
+                </property>
+            </widget>
+        </hbox>
     </widget>
-    <widget class="QLabel">
+    <widget class="QPushButton">
         <property name="name">
-            <cstring>TextLabel2</cstring>
+            <cstring>PushButton1</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>95</x>
-                <y>90</y>
-                <width>65</width>
-                <height>15</height>
+                <x>170</x>
+                <y>330</y>
+                <width>80</width>
+                <height>25</height>
             </rect>
         </property>
         <property name="text">
-            <string>TextLabel2</string>
+            <string>PushButton1</string>
         </property>
-    </widget>
-    <widget class="QLabel">
-        <property name="name">
-            <cstring>TextLabel5</cstring>
+        <property name="toggleButton">
+            <bool>true</bool>
         </property>
-        <property name="geometry">
-            <rect>
-                <x>110</x>
-                <y>180</y>
-                <width>65</width>
-                <height>15</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>TextLabel5</string>
+        <property name="toggleButton">
+            <bool>true</bool>
         </property>
     </widget>
 </widget>
+<connections>
+    <connection>
+        <sender>PushButton1</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>FleetViewBase</receiver>
+        <slot>slotAttacker(bool)</slot>
+    </connection>
+</connections>
+<includes>
+    <include location="local" impldecl="in implementation">fleetviewbase.ui.h</include>
+</includes>
+<slots>
+    <slot>slotAttacker( bool b )</slot>
+</slots>
 <pixmapinproject/>
 <layoutdefaults spacing="6" margin="11"/>
 </UI>
diff --git a/bs/ui/fleetviewbase.ui.h b/bs/ui/fleetviewbase.ui.h
new file mode 100644 (file)
index 0000000..89d1385
--- /dev/null
@@ -0,0 +1,22 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you wish to add, delete or rename slots use Qt Designer which will
+** update this file, preserving your code. Create an init() slot in place of
+** a constructor, and a destroy() slot in place of a destructor.
+*****************************************************************************/
+
+
+void FleetViewBase::slotAttacker(bool b)
+{
+    if (b)
+    {
+       CaptureBox->show();
+       SalvageBox->hide();
+    }
+    else
+    {
+       SalvageBox->show();
+       CaptureBox->hid();
+    }
+}
\ No newline at end of file