]> ruin.nu Git - hbs.git/blobdiff - bs/ui/bsappbase.ui
started to work on the battle report.. almost there =)
[hbs.git] / bs / ui / bsappbase.ui
index 363fc7e16b44f1f3d1003c04367dc77052f97a48..9615c0fcf6b2a780e07df9ab97bbf583234aba65 100644 (file)
@@ -8,8 +8,8 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>726</width>
-            <height>519</height>
+            <width>700</width>
+            <height>534</height>
         </rect>
     </property>
     <property name="caption">
@@ -24,8 +24,8 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>726</width>
-            <height>29</height>
+            <width>700</width>
+            <height>23</height>
         </rect>
     </property>
     <item text="&amp;File" name="fileMenu">
@@ -50,6 +50,7 @@
     </item>
     <item text="Battle" name="PopupMenu">
         <action name="battleNewAction"/>
+        <action name="battleSimulateAction"/>
     </item>
     <item text="&amp;Help" name="helpMenu">
         <action name="helpContentsAction"/>
         <action name="fileNewAction"/>
         <action name="fileOpenAction"/>
         <action name="fileSaveAction"/>
+        <separator/>
+        <widget class="QLabel">
+            <property name="name">
+                <cstring>TextLabel3</cstring>
+            </property>
+            <property name="text">
+                <string>Show result as:</string>
+            </property>
+        </widget>
+        <widget class="QComboBox">
+            <property name="name">
+                <cstring>resultModeCombo</cstring>
+            </property>
+            <item>
+                <property name="text">
+                    <string>Unit difference</string>
+                </property>
+            </item>
+            <item>
+                <property name="text">
+                    <string>Blocked units</string>
+                </property>
+            </item>
+            <item>
+                <property name="text">
+                    <string>Survived units</string>
+                </property>
+            </item>
+        </widget>
+        <separator/>
+        <widget class="QLabel">
+            <property name="name">
+                <cstring>TextLabel1</cstring>
+            </property>
+            <property name="text">
+                <string>From tick:</string>
+            </property>
+        </widget>
+        <widget class="QSpinBox">
+            <property name="name">
+                <cstring>minTickSpin</cstring>
+            </property>
+            <property name="maxValue">
+                <number>0</number>
+            </property>
+        </widget>
+        <widget class="QLabel">
+            <property name="name">
+                <cstring>TextLabel2</cstring>
+            </property>
+            <property name="text">
+                <string>to:</string>
+            </property>
+        </widget>
+        <widget class="QSpinBox">
+            <property name="name">
+                <cstring>maxTickSpin</cstring>
+            </property>
+        </widget>
+        <widget class="QCheckBox">
+            <property name="name">
+                <cstring>oneTickCheck</cstring>
+            </property>
+            <property name="text">
+                <string>One tick only</string>
+            </property>
+        </widget>
     </toolbar>
 </toolbars>
 <actions>
             <number>4194382</number>
         </property>
     </action>
+    <action>
+        <property name="name">
+            <cstring>battleSimulateAction</cstring>
+        </property>
+        <property name="text">
+            <string>Run Simulate Battle</string>
+        </property>
+        <property name="accel">
+            <number>4194386</number>
+        </property>
+    </action>
 </actions>
 <images>
     <image name="image0">
         <receiver>BSAppBase</receiver>
         <slot>battleNew()</slot>
     </connection>
+    <connection>
+        <sender>battleSimulateAction</sender>
+        <signal>activated()</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>battleSimulate()</slot>
+    </connection>
+    <connection>
+        <sender>oneTickCheck</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>oneTickCheck_toggled(bool)</slot>
+    </connection>
+    <connection>
+        <sender>resultModeCombo</sender>
+        <signal>activated(int)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>resultModeCombo_activated(int)</slot>
+    </connection>
+    <connection>
+        <sender>minTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>slotTicksChanged(int)</slot>
+    </connection>
+    <connection>
+        <sender>minTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>minTickSpin_valueChanged(int)</slot>
+    </connection>
+    <connection>
+        <sender>maxTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>slotTicksChanged(int)</slot>
+    </connection>
+    <connection>
+        <sender>maxTickSpin</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>maxTickSpin_valueChanged(int)</slot>
+    </connection>
 </connections>
 <includes>
+    <include location="global" impldecl="in implementation">qapplication.h</include>
     <include location="local" impldecl="in implementation">../bsdoc.h</include>
     <include location="local" impldecl="in implementation">../bsview.h</include>
     <include location="global" impldecl="in implementation">qinputdialog.h</include>
+    <include location="local" impldecl="in implementation">../bsconf.h</include>
     <include location="local" impldecl="in implementation">bsappbase.ui.h</include>
 </includes>
 <forwards>
-    <forward>class BSDoc</forward>
+    <forward>class BSConf</forward>
     <forward>class BSView</forward>
+    <forward>class BSDoc</forward>
 </forwards>
 <variables>
-    <variable>BSDoc* doc</variable>
+    <variable>BSConf* conf</variable>
     <variable>BSView* view</variable>
+    <variable>BSDoc* doc</variable>
 </variables>
+<signals>
+    <signal>ticksChanged(int, int);</signal>
+    <signal>resultModeChanged(int);</signal>
+</signals>
 <slots>
     <slot>fileNew()</slot>
     <slot>fileOpen()</slot>
     <slot>helpContents()</slot>
     <slot>helpAbout()</slot>
     <slot>battleNew()</slot>
+    <slot>battleSimulate()</slot>
+    <slot>oneTickCheck_toggled(bool b)</slot>
+    <slot>minTickSpin_valueChanged(int i)</slot>
+    <slot>maxTickSpin_valueChanged(int i)</slot>
+    <slot>slotTicksChanged(int i)</slot>
+    <slot>resultModeCombo_activated(int i)</slot>
 </slots>
 <layoutdefaults spacing="6" margin="11"/>
 </UI>