]> ruin.nu Git - hbs.git/blobdiff - bs/ui/bsappbase.ui
Added the possibility to add new battles.
[hbs.git] / bs / ui / bsappbase.ui
index 0c34bec8dd27f97e8957fc3181ce438f36490828..fa0d859239421cae44553de64c051fa872ab6ee5 100644 (file)
     <property name="name">
         <cstring>menubar</cstring>
     </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>726</width>
+            <height>29</height>
+        </rect>
+    </property>
     <item text="&amp;File" name="fileMenu">
         <action name="fileNewAction"/>
         <action name="fileOpenAction"/>
         <action name="fileSaveAction"/>
         <action name="fileSaveAsAction"/>
-        <action name="KulSak"/>
         <separator/>
         <action name="filePrintAction"/>
         <separator/>
@@ -47,6 +54,9 @@
         <separator/>
         <action name="helpAboutAction"/>
     </item>
+    <item text="Battle" name="PopupMenu">
+        <action name="battleNewAction"/>
+    </item>
 </menubar>
 <toolbars>
     <toolbar dock="2">
@@ -59,7 +69,6 @@
         <action name="fileNewAction"/>
         <action name="fileOpenAction"/>
         <action name="fileSaveAction"/>
-        <action name="fileSaveAsAction"/>
     </toolbar>
 </toolbars>
 <actions>
@@ -77,7 +86,7 @@
             <string>&amp;New</string>
         </property>
         <property name="accel">
-            <number>4194382</number>
+            <number>0</number>
         </property>
     </action>
     <action>
     </action>
     <action>
         <property name="name">
-            <cstring>KulSak</cstring>
+            <cstring>battleNewAction</cstring>
         </property>
         <property name="text">
-            <string>Kul sak</string>
+            <string>New</string>
         </property>
         <property name="accel">
-            <number>0</number>
+            <number>4194382</number>
         </property>
     </action>
 </actions>
         <receiver>BSAppBase</receiver>
         <slot>editCut()</slot>
     </connection>
-    <connection>
-        <sender>editCopyAction</sender>
-        <signal>activated()</signal>
-        <receiver>BSAppBase</receiver>
-        <slot>editCopy()</slot>
-    </connection>
     <connection>
         <sender>editPasteAction</sender>
         <signal>activated()</signal>
         <receiver>BSAppBase</receiver>
         <slot>helpAbout()</slot>
     </connection>
+    <connection>
+        <sender>battleNewAction</sender>
+        <signal>activated()</signal>
+        <receiver>BSAppBase</receiver>
+        <slot>battleNew()</slot>
+    </connection>
 </connections>
 <includes>
+    <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">bsappbase.ui.h</include>
 </includes>
+<forwards>
+    <forward>class BSDoc</forward>
+    <forward>class BSView</forward>
+</forwards>
+<variables>
+    <variable>BSDoc* doc</variable>
+    <variable>BSView* view</variable>
+</variables>
 <slots>
     <slot>fileNew()</slot>
     <slot>fileOpen()</slot>
     <slot>editUndo()</slot>
     <slot>editRedo()</slot>
     <slot>editCut()</slot>
-    <slot>editCopy()</slot>
+    <slot>init()</slot>
     <slot>editPaste()</slot>
     <slot>editFind()</slot>
     <slot>helpIndex()</slot>
     <slot>helpContents()</slot>
     <slot>helpAbout()</slot>
+    <slot>battleNew()</slot>
 </slots>
 <layoutdefaults spacing="6" margin="11"/>
 </UI>