changeset 0:620c62ba4d07

Re #242: Qt# GUI * Attempt to import to correct location
author IBBoard <dev@ibboard.co.uk>
date Sat, 23 Jan 2010 17:05:18 +0000
parents
children 4ff09911ef64
files AssemblyInfo.cs IBBoard.WarFoundry.GUI.QtSharp.mdp IBBoard.WarFoundry.GUI.QtSharp.pidb Main.cs MainWindow.cs compile-ui.sh icons/App.png qt-gui/MainWindowLayout.cs qt-gui/MainWindowLayout.ui
diffstat 9 files changed, 534 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/AssemblyInfo.cs	Sat Jan 23 17:05:18 2010 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +// This file (AssemblyInfo.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2009 IBBoard
     1.5 +// 
     1.6 +// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
     1.7 +using System.Reflection;
     1.8 +using System.Runtime.CompilerServices;
     1.9 +
    1.10 +// Information about this assembly is defined by the following attributes. 
    1.11 +// Change them to the values specific to your project.
    1.12 +
    1.13 +[assembly: AssemblyTitle("IBBoard.WarFoundry.GUI.QtSharp")]
    1.14 +[assembly: AssemblyDescription("")]
    1.15 +[assembly: AssemblyConfiguration("")]
    1.16 +[assembly: AssemblyCompany("")]
    1.17 +[assembly: AssemblyProduct("")]
    1.18 +[assembly: AssemblyCopyright("")]
    1.19 +[assembly: AssemblyTrademark("")]
    1.20 +[assembly: AssemblyCulture("")]
    1.21 +
    1.22 +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
    1.23 +// The form "{Major}.{Minor}.*" will automatically update the build and revision,
    1.24 +// and "{Major}.{Minor}.{Build}.*" will update just the revision.
    1.25 +
    1.26 +[assembly: AssemblyVersion("1.0.*")]
    1.27 +
    1.28 +// The following attributes are used to specify the signing key for the assembly, 
    1.29 +// if desired. See the Mono documentation for more information about signing.
    1.30 +
    1.31 +//[assembly: AssemblyDelaySign(false)]
    1.32 +//[assembly: AssemblyKeyFile("")]
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/IBBoard.WarFoundry.GUI.QtSharp.mdp	Sat Jan 23 17:05:18 2010 +0000
     2.3 @@ -0,0 +1,34 @@
     2.4 +<Project name="IBBoard.WarFoundry.GUI.QtSharp" fileversion="2.0" DefaultNamespace="IBBoard.WarFoundry.GUI.QtSharp" language="C#" targetFramework="2.0" ctype="DotNetProject">
     2.5 +  <Configurations active="Debug">
     2.6 +    <Configuration name="Debug" ctype="DotNetProjectConfiguration">
     2.7 +      <CustomCommands>
     2.8 +        <Command type="BeforeBuild" command="compile-ui.sh" workingdir="${ProjectDir}" />
     2.9 +      </CustomCommands>
    2.10 +      <Output directory="bin/Debug" assembly="IBBoard.WarFoundry.GUI.QtSharp" />
    2.11 +      <Build debugmode="True" target="Exe" />
    2.12 +      <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" />
    2.13 +      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
    2.14 +    </Configuration>
    2.15 +    <Configuration name="Release" ctype="DotNetProjectConfiguration">
    2.16 +      <Output directory="bin/Release" assembly="IBBoard.WarFoundry.GUI.QtSharp" />
    2.17 +      <Build debugmode="False" target="Exe" />
    2.18 +      <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" />
    2.19 +      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
    2.20 +    </Configuration>
    2.21 +  </Configurations>
    2.22 +  <Contents>
    2.23 +    <File subtype="Code" buildaction="Compile" name="AssemblyInfo.cs" />
    2.24 +    <File subtype="Code" buildaction="Compile" name="MainWindow.cs" />
    2.25 +    <File subtype="Code" buildaction="Compile" name="Main.cs" />
    2.26 +    <File subtype="Code" buildaction="Nothing" name="compile-ui.sh" />
    2.27 +    <File subtype="Directory" buildaction="Compile" name="qt-gui" />
    2.28 +    <File subtype="Code" buildaction="Compile" name="qt-gui/MainWindowLayout.cs" />
    2.29 +    <File subtype="Code" buildaction="Nothing" name="qt-gui/MainWindowLayout.ui" />
    2.30 +    <File subtype="Directory" buildaction="Compile" name="icons" />
    2.31 +    <File subtype="Code" name="icons/App.png" buildaction="FileCopy" />
    2.32 +  </Contents>
    2.33 +  <References>
    2.34 +    <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    2.35 +    <ProjectReference type="Gac" localcopy="True" refto="qt-dotnet, Version=4.5.0.0, Culture=neutral, PublicKeyToken=194a23ba31c08164" />
    2.36 +  </References>
    2.37 +</Project>
    2.38 \ No newline at end of file
     3.1 Binary file IBBoard.WarFoundry.GUI.QtSharp.pidb has changed
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/Main.cs	Sat Jan 23 17:05:18 2010 +0000
     4.3 @@ -0,0 +1,20 @@
     4.4 +// This file (Main.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2009 IBBoard
     4.5 +// 
     4.6 +// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
     4.7 +using System;
     4.8 +using Qyoto;
     4.9 +namespace IBBoard.WarFoundry.GUI.QtSharp
    4.10 +{
    4.11 +	class MainClass
    4.12 +	{
    4.13 +		public static void Main (string[] args)
    4.14 +		{
    4.15 +			new QApplication (args);
    4.16 +			
    4.17 +			MainWindow win = new MainWindow ();
    4.18 +			win.Show ();
    4.19 +			
    4.20 +			QApplication.Exec ();
    4.21 +		}
    4.22 +	}
    4.23 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/MainWindow.cs	Sat Jan 23 17:05:18 2010 +0000
     5.3 @@ -0,0 +1,38 @@
     5.4 +// This file (MainWindow.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2009 IBBoard
     5.5 +// 
     5.6 +// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
     5.7 +using System;
     5.8 +using System.Collections.Generic;
     5.9 +using Qyoto;
    5.10 +
    5.11 +public partial class MainWindow : QMainWindow
    5.12 +{
    5.13 +	private Ui_MainWindowLayout layout;
    5.14 +	
    5.15 +	public MainWindow ()
    5.16 +	{
    5.17 +		layout = new Ui_MainWindowLayout();
    5.18 +		layout.SetupUi(this);
    5.19 +		WindowIcon = new QIcon("icons/App.png");
    5.20 +		AddMenuActions();
    5.21 +		SetUpToolbar();
    5.22 +	}
    5.23 +	
    5.24 +	private void AddMenuActions()
    5.25 +	{
    5.26 +		layout.unitTabs.Clear();
    5.27 +	}
    5.28 +	
    5.29 +	private void SetUpToolbar()
    5.30 +	{
    5.31 +		List<QAction> actions = new List<QAction>(){
    5.32 +			layout.actionCreateArmy,
    5.33 +			layout.actionOpenArmy,
    5.34 +			layout.actionSaveArmy};
    5.35 +		layout.toolBar.AddActions(actions);
    5.36 +		layout.toolBar.AddSeparator();
    5.37 +		layout.toolBar.AddAction(layout.actionUndo);
    5.38 +		layout.toolBar.AddAction(layout.actionRedo);
    5.39 +		layout.toolBar.AddSeparator();
    5.40 +	}
    5.41 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/compile-ui.sh	Sat Jan 23 17:05:18 2010 +0000
     6.3 @@ -0,0 +1,12 @@
     6.4 +#! /bin/bash
     6.5 +
     6.6 +echo "Compiling .ui files to C#"
     6.7 +
     6.8 +for f in qt-gui/*.ui
     6.9 +do
    6.10 +	echo -ne "  * Compiling $f..."
    6.11 +	uics -o ${f/.ui/.cs} $f
    6.12 +	echo "...compiled."
    6.13 +done
    6.14 +
    6.15 +echo
     7.1 Binary file icons/App.png has changed
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/qt-gui/MainWindowLayout.cs	Sat Jan 23 17:05:18 2010 +0000
     8.3 @@ -0,0 +1,181 @@
     8.4 +/********************************************************************************
     8.5 +** Form generated from reading ui file 'MainWindowLayout.ui'
     8.6 +**
     8.7 +** Created: Sat Jan 23 16:57:44 2010
     8.8 +**      by: Qt User Interface Compiler for C# version 4.5.3
     8.9 +**
    8.10 +** WARNING! All changes made in this file will be lost when recompiling ui file!
    8.11 +********************************************************************************/
    8.12 +
    8.13 +
    8.14 +using Qyoto;
    8.15 +
    8.16 +public class Ui_MainWindowLayout
    8.17 +{
    8.18 +    public QAction actionCreateArmy;
    8.19 +    public QAction actionOpenArmy;
    8.20 +    public QAction actionSaveArmy;
    8.21 +    public QAction actionSaveArmyAs;
    8.22 +    public QAction actionExportBasicHtml;
    8.23 +    public QAction actionCloseArmy;
    8.24 +    public QAction actionReloadFiles;
    8.25 +    public QAction actionExit;
    8.26 +    public QAction actionAbout;
    8.27 +    public QAction actionUndo;
    8.28 +    public QAction actionRedo;
    8.29 +    public QWidget mainContent;
    8.30 +    public QGridLayout gridLayout;
    8.31 +    public QSplitter splitter;
    8.32 +    public QTreeView armyTree;
    8.33 +    public QTabWidget unitTabs;
    8.34 +    public QWidget tab;
    8.35 +    public QWidget tab_2;
    8.36 +    public QMenuBar menubar;
    8.37 +    public QMenu menuFile;
    8.38 +    public QMenu menuExportArmyAs;
    8.39 +    public QMenu menuEdit;
    8.40 +    public QMenu menuHelp;
    8.41 +    public QStatusBar statusbar;
    8.42 +    public QToolBar toolBar;
    8.43 +
    8.44 +    public void SetupUi(QMainWindow MainWindowLayout)
    8.45 +    {
    8.46 +    if (MainWindowLayout.ObjectName == "")
    8.47 +        MainWindowLayout.ObjectName = "MainWindowLayout";
    8.48 +    QSize Size = new QSize(696, 595);
    8.49 +    Size = Size.ExpandedTo(MainWindowLayout.MinimumSizeHint());
    8.50 +    MainWindowLayout.Size = Size;
    8.51 +    MainWindowLayout.WindowIcon = new QIcon("../App.png");
    8.52 +    actionCreateArmy = new QAction(MainWindowLayout);
    8.53 +    actionCreateArmy.ObjectName = "actionCreateArmy";
    8.54 +    actionOpenArmy = new QAction(MainWindowLayout);
    8.55 +    actionOpenArmy.ObjectName = "actionOpenArmy";
    8.56 +    actionSaveArmy = new QAction(MainWindowLayout);
    8.57 +    actionSaveArmy.ObjectName = "actionSaveArmy";
    8.58 +    actionSaveArmy.Enabled = false;
    8.59 +    actionSaveArmyAs = new QAction(MainWindowLayout);
    8.60 +    actionSaveArmyAs.ObjectName = "actionSaveArmyAs";
    8.61 +    actionSaveArmyAs.Enabled = false;
    8.62 +    actionExportBasicHtml = new QAction(MainWindowLayout);
    8.63 +    actionExportBasicHtml.ObjectName = "actionExportBasicHtml";
    8.64 +    actionExportBasicHtml.Enabled = false;
    8.65 +    actionCloseArmy = new QAction(MainWindowLayout);
    8.66 +    actionCloseArmy.ObjectName = "actionCloseArmy";
    8.67 +    actionCloseArmy.Enabled = false;
    8.68 +    actionReloadFiles = new QAction(MainWindowLayout);
    8.69 +    actionReloadFiles.ObjectName = "actionReloadFiles";
    8.70 +    actionReloadFiles.Enabled = false;
    8.71 +    actionExit = new QAction(MainWindowLayout);
    8.72 +    actionExit.ObjectName = "actionExit";
    8.73 +    actionAbout = new QAction(MainWindowLayout);
    8.74 +    actionAbout.ObjectName = "actionAbout";
    8.75 +    actionAbout.Enabled = false;
    8.76 +    actionUndo = new QAction(MainWindowLayout);
    8.77 +    actionUndo.ObjectName = "actionUndo";
    8.78 +    actionUndo.Enabled = false;
    8.79 +    actionRedo = new QAction(MainWindowLayout);
    8.80 +    actionRedo.ObjectName = "actionRedo";
    8.81 +    actionRedo.Enabled = false;
    8.82 +    mainContent = new QWidget(MainWindowLayout);
    8.83 +    mainContent.ObjectName = "mainContent";
    8.84 +    gridLayout = new QGridLayout(mainContent);
    8.85 +    gridLayout.ObjectName = "gridLayout";
    8.86 +    splitter = new QSplitter(mainContent);
    8.87 +    splitter.ObjectName = "splitter";
    8.88 +    splitter.Orientation = Qt.Orientation.Horizontal;
    8.89 +    splitter.HandleWidth = 6;
    8.90 +    armyTree = new QTreeView(splitter);
    8.91 +    armyTree.ObjectName = "armyTree";
    8.92 +    splitter.AddWidget(armyTree);
    8.93 +    unitTabs = new QTabWidget(splitter);
    8.94 +    unitTabs.ObjectName = "unitTabs";
    8.95 +    unitTabs.MinimumSize = new QSize(500, 0);
    8.96 +    tab = new QWidget();
    8.97 +    tab.ObjectName = "tab";
    8.98 +    unitTabs.AddTab(tab, QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8));
    8.99 +    tab_2 = new QWidget();
   8.100 +    tab_2.ObjectName = "tab_2";
   8.101 +    unitTabs.AddTab(tab_2, QApplication.Translate("MainWindowLayout", "Tab 2", null, QApplication.Encoding.UnicodeUTF8));
   8.102 +    splitter.AddWidget(unitTabs);
   8.103 +
   8.104 +    gridLayout.AddWidget(splitter, 0, 0, 1, 1);
   8.105 +
   8.106 +    MainWindowLayout.SetCentralWidget(mainContent);
   8.107 +    menubar = new QMenuBar(MainWindowLayout);
   8.108 +    menubar.ObjectName = "menubar";
   8.109 +    menubar.Geometry = new QRect(0, 0, 696, 20);
   8.110 +    menuFile = new QMenu(menubar);
   8.111 +    menuFile.ObjectName = "menuFile";
   8.112 +    menuExportArmyAs = new QMenu(menuFile);
   8.113 +    menuExportArmyAs.ObjectName = "menuExportArmyAs";
   8.114 +    menuExportArmyAs.Enabled = false;
   8.115 +    menuEdit = new QMenu(menubar);
   8.116 +    menuEdit.ObjectName = "menuEdit";
   8.117 +    menuHelp = new QMenu(menubar);
   8.118 +    menuHelp.ObjectName = "menuHelp";
   8.119 +    MainWindowLayout.SetMenuBar(menubar);
   8.120 +    statusbar = new QStatusBar(MainWindowLayout);
   8.121 +    statusbar.ObjectName = "statusbar";
   8.122 +    MainWindowLayout.SetStatusBar(statusbar);
   8.123 +    toolBar = new QToolBar(MainWindowLayout);
   8.124 +    toolBar.ObjectName = "toolBar";
   8.125 +    toolBar.ToolButtonStyle = Qt.ToolButtonStyle.ToolButtonIconOnly;
   8.126 +    MainWindowLayout.AddToolBar(Qt.ToolBarArea.TopToolBarArea, toolBar);
   8.127 +    MainWindowLayout.InsertToolBarBreak(toolBar);
   8.128 +
   8.129 +    menubar.AddAction(menuFile.MenuAction());
   8.130 +    menubar.AddAction(menuEdit.MenuAction());
   8.131 +    menubar.AddAction(menuHelp.MenuAction());
   8.132 +    menuFile.AddAction(actionCreateArmy);
   8.133 +    menuFile.AddAction(actionOpenArmy);
   8.134 +    menuFile.AddAction(actionSaveArmy);
   8.135 +    menuFile.AddAction(actionSaveArmyAs);
   8.136 +    menuFile.AddAction(menuExportArmyAs.MenuAction());
   8.137 +    menuFile.AddAction(actionCloseArmy);
   8.138 +    menuFile.AddSeparator();
   8.139 +    menuFile.AddAction(actionReloadFiles);
   8.140 +    menuFile.AddSeparator();
   8.141 +    menuFile.AddAction(actionExit);
   8.142 +    menuExportArmyAs.AddAction(actionExportBasicHtml);
   8.143 +    menuEdit.AddAction(actionUndo);
   8.144 +    menuEdit.AddAction(actionRedo);
   8.145 +    menuHelp.AddAction(actionAbout);
   8.146 +
   8.147 +    RetranslateUi(MainWindowLayout);
   8.148 +    QObject.Connect(actionExit, Qt.SIGNAL("triggered()"), MainWindowLayout, Qt.SLOT("close()"));
   8.149 +
   8.150 +    unitTabs.CurrentIndex = 0;
   8.151 +
   8.152 +
   8.153 +    QMetaObject.ConnectSlotsByName(MainWindowLayout);
   8.154 +    } // SetupUi
   8.155 +
   8.156 +    public void RetranslateUi(QMainWindow MainWindowLayout)
   8.157 +    {
   8.158 +    MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "MainWindow", null, QApplication.Encoding.UnicodeUTF8);
   8.159 +    actionCreateArmy.Text = QApplication.Translate("MainWindowLayout", "&create army", null, QApplication.Encoding.UnicodeUTF8);
   8.160 +    actionOpenArmy.Text = QApplication.Translate("MainWindowLayout", "&open army", null, QApplication.Encoding.UnicodeUTF8);
   8.161 +    actionSaveArmy.Text = QApplication.Translate("MainWindowLayout", "&save army", null, QApplication.Encoding.UnicodeUTF8);
   8.162 +    actionSaveArmyAs.Text = QApplication.Translate("MainWindowLayout", "save army as", null, QApplication.Encoding.UnicodeUTF8);
   8.163 +    actionExportBasicHtml.Text = QApplication.Translate("MainWindowLayout", "&basic html", null, QApplication.Encoding.UnicodeUTF8);
   8.164 +    actionCloseArmy.Text = QApplication.Translate("MainWindowLayout", "close army", null, QApplication.Encoding.UnicodeUTF8);
   8.165 +    actionReloadFiles.Text = QApplication.Translate("MainWindowLayout", "reload files", null, QApplication.Encoding.UnicodeUTF8);
   8.166 +    actionExit.Text = QApplication.Translate("MainWindowLayout", "exit", null, QApplication.Encoding.UnicodeUTF8);
   8.167 +    actionAbout.Text = QApplication.Translate("MainWindowLayout", "&about", null, QApplication.Encoding.UnicodeUTF8);
   8.168 +    actionUndo.Text = QApplication.Translate("MainWindowLayout", "&undo", null, QApplication.Encoding.UnicodeUTF8);
   8.169 +    actionRedo.Text = QApplication.Translate("MainWindowLayout", "&redo", null, QApplication.Encoding.UnicodeUTF8);
   8.170 +    unitTabs.SetTabText(unitTabs.IndexOf(tab), QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8));
   8.171 +    unitTabs.SetTabText(unitTabs.IndexOf(tab_2), QApplication.Translate("MainWindowLayout", "Tab 2", null, QApplication.Encoding.UnicodeUTF8));
   8.172 +    menuFile.Title = QApplication.Translate("MainWindowLayout", "&file", null, QApplication.Encoding.UnicodeUTF8);
   8.173 +    menuExportArmyAs.Title = QApplication.Translate("MainWindowLayout", "export army as", null, QApplication.Encoding.UnicodeUTF8);
   8.174 +    menuEdit.Title = QApplication.Translate("MainWindowLayout", "&edit", null, QApplication.Encoding.UnicodeUTF8);
   8.175 +    menuHelp.Title = QApplication.Translate("MainWindowLayout", "&help", null, QApplication.Encoding.UnicodeUTF8);
   8.176 +    toolBar.WindowTitle = QApplication.Translate("MainWindowLayout", "toolBar", null, QApplication.Encoding.UnicodeUTF8);
   8.177 +    } // RetranslateUi
   8.178 +
   8.179 +}
   8.180 +
   8.181 +namespace Ui {
   8.182 +    public class MainWindowLayout : Ui_MainWindowLayout {}
   8.183 +} // namespace Ui
   8.184 +
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/qt-gui/MainWindowLayout.ui	Sat Jan 23 17:05:18 2010 +0000
     9.3 @@ -0,0 +1,220 @@
     9.4 +<?xml version="1.0" encoding="UTF-8"?>
     9.5 +<ui version="4.0">
     9.6 + <class>MainWindowLayout</class>
     9.7 + <widget class="QMainWindow" name="MainWindowLayout">
     9.8 +  <property name="geometry">
     9.9 +   <rect>
    9.10 +    <x>0</x>
    9.11 +    <y>0</y>
    9.12 +    <width>696</width>
    9.13 +    <height>595</height>
    9.14 +   </rect>
    9.15 +  </property>
    9.16 +  <property name="windowTitle">
    9.17 +   <string>MainWindow</string>
    9.18 +  </property>
    9.19 +  <property name="windowIcon">
    9.20 +   <iconset>
    9.21 +    <normaloff>../App.png</normaloff>../App.png</iconset>
    9.22 +  </property>
    9.23 +  <widget class="QWidget" name="mainContent">
    9.24 +   <layout class="QGridLayout" name="_2">
    9.25 +    <item row="0" column="0">
    9.26 +     <widget class="QSplitter" name="splitter">
    9.27 +      <property name="orientation">
    9.28 +       <enum>Qt::Horizontal</enum>
    9.29 +      </property>
    9.30 +      <property name="handleWidth">
    9.31 +       <number>6</number>
    9.32 +      </property>
    9.33 +      <widget class="QTreeView" name="armyTree"/>
    9.34 +      <widget class="QTabWidget" name="unitTabs">
    9.35 +       <property name="minimumSize">
    9.36 +        <size>
    9.37 +         <width>500</width>
    9.38 +         <height>0</height>
    9.39 +        </size>
    9.40 +       </property>
    9.41 +       <property name="currentIndex">
    9.42 +        <number>0</number>
    9.43 +       </property>
    9.44 +       <widget class="QWidget" name="tab">
    9.45 +        <attribute name="title">
    9.46 +         <string>Tab 1</string>
    9.47 +        </attribute>
    9.48 +       </widget>
    9.49 +       <widget class="QWidget" name="tab_2">
    9.50 +        <attribute name="title">
    9.51 +         <string>Tab 2</string>
    9.52 +        </attribute>
    9.53 +       </widget>
    9.54 +      </widget>
    9.55 +     </widget>
    9.56 +    </item>
    9.57 +   </layout>
    9.58 +  </widget>
    9.59 +  <widget class="QMenuBar" name="menubar">
    9.60 +   <property name="geometry">
    9.61 +    <rect>
    9.62 +     <x>0</x>
    9.63 +     <y>0</y>
    9.64 +     <width>696</width>
    9.65 +     <height>20</height>
    9.66 +    </rect>
    9.67 +   </property>
    9.68 +   <widget class="QMenu" name="menuFile">
    9.69 +    <property name="title">
    9.70 +     <string>&amp;file</string>
    9.71 +    </property>
    9.72 +    <widget class="QMenu" name="menuExportArmyAs">
    9.73 +     <property name="enabled">
    9.74 +      <bool>false</bool>
    9.75 +     </property>
    9.76 +     <property name="title">
    9.77 +      <string>export army as</string>
    9.78 +     </property>
    9.79 +     <addaction name="actionExportBasicHtml"/>
    9.80 +    </widget>
    9.81 +    <addaction name="actionCreateArmy"/>
    9.82 +    <addaction name="actionOpenArmy"/>
    9.83 +    <addaction name="actionSaveArmy"/>
    9.84 +    <addaction name="actionSaveArmyAs"/>
    9.85 +    <addaction name="menuExportArmyAs"/>
    9.86 +    <addaction name="actionCloseArmy"/>
    9.87 +    <addaction name="separator"/>
    9.88 +    <addaction name="actionReloadFiles"/>
    9.89 +    <addaction name="separator"/>
    9.90 +    <addaction name="actionExit"/>
    9.91 +   </widget>
    9.92 +   <widget class="QMenu" name="menuEdit">
    9.93 +    <property name="title">
    9.94 +     <string>&amp;edit</string>
    9.95 +    </property>
    9.96 +    <addaction name="actionUndo"/>
    9.97 +    <addaction name="actionRedo"/>
    9.98 +   </widget>
    9.99 +   <widget class="QMenu" name="menuHelp">
   9.100 +    <property name="title">
   9.101 +     <string>&amp;help</string>
   9.102 +    </property>
   9.103 +    <addaction name="actionAbout"/>
   9.104 +   </widget>
   9.105 +   <addaction name="menuFile"/>
   9.106 +   <addaction name="menuEdit"/>
   9.107 +   <addaction name="menuHelp"/>
   9.108 +  </widget>
   9.109 +  <widget class="QStatusBar" name="statusbar"/>
   9.110 +  <widget class="QToolBar" name="toolBar">
   9.111 +   <property name="windowTitle">
   9.112 +    <string>toolBar</string>
   9.113 +   </property>
   9.114 +   <property name="toolButtonStyle">
   9.115 +    <enum>Qt::ToolButtonIconOnly</enum>
   9.116 +   </property>
   9.117 +   <attribute name="toolBarArea">
   9.118 +    <enum>TopToolBarArea</enum>
   9.119 +   </attribute>
   9.120 +   <attribute name="toolBarBreak">
   9.121 +    <bool>true</bool>
   9.122 +   </attribute>
   9.123 +  </widget>
   9.124 +  <action name="actionCreateArmy">
   9.125 +   <property name="text">
   9.126 +    <string>&amp;create army</string>
   9.127 +   </property>
   9.128 +  </action>
   9.129 +  <action name="actionOpenArmy">
   9.130 +   <property name="text">
   9.131 +    <string>&amp;open army</string>
   9.132 +   </property>
   9.133 +  </action>
   9.134 +  <action name="actionSaveArmy">
   9.135 +   <property name="enabled">
   9.136 +    <bool>false</bool>
   9.137 +   </property>
   9.138 +   <property name="text">
   9.139 +    <string>&amp;save army</string>
   9.140 +   </property>
   9.141 +  </action>
   9.142 +  <action name="actionSaveArmyAs">
   9.143 +   <property name="enabled">
   9.144 +    <bool>false</bool>
   9.145 +   </property>
   9.146 +   <property name="text">
   9.147 +    <string>save army as</string>
   9.148 +   </property>
   9.149 +  </action>
   9.150 +  <action name="actionExportBasicHtml">
   9.151 +   <property name="enabled">
   9.152 +    <bool>false</bool>
   9.153 +   </property>
   9.154 +   <property name="text">
   9.155 +    <string>&amp;basic html</string>
   9.156 +   </property>
   9.157 +  </action>
   9.158 +  <action name="actionCloseArmy">
   9.159 +   <property name="enabled">
   9.160 +    <bool>false</bool>
   9.161 +   </property>
   9.162 +   <property name="text">
   9.163 +    <string>close army</string>
   9.164 +   </property>
   9.165 +  </action>
   9.166 +  <action name="actionReloadFiles">
   9.167 +   <property name="enabled">
   9.168 +    <bool>false</bool>
   9.169 +   </property>
   9.170 +   <property name="text">
   9.171 +    <string>reload files</string>
   9.172 +   </property>
   9.173 +  </action>
   9.174 +  <action name="actionExit">
   9.175 +   <property name="text">
   9.176 +    <string>exit</string>
   9.177 +   </property>
   9.178 +  </action>
   9.179 +  <action name="actionAbout">
   9.180 +   <property name="enabled">
   9.181 +    <bool>false</bool>
   9.182 +   </property>
   9.183 +   <property name="text">
   9.184 +    <string>&amp;about</string>
   9.185 +   </property>
   9.186 +  </action>
   9.187 +  <action name="actionUndo">
   9.188 +   <property name="enabled">
   9.189 +    <bool>false</bool>
   9.190 +   </property>
   9.191 +   <property name="text">
   9.192 +    <string>&amp;undo</string>
   9.193 +   </property>
   9.194 +  </action>
   9.195 +  <action name="actionRedo">
   9.196 +   <property name="enabled">
   9.197 +    <bool>false</bool>
   9.198 +   </property>
   9.199 +   <property name="text">
   9.200 +    <string>&amp;redo</string>
   9.201 +   </property>
   9.202 +  </action>
   9.203 + </widget>
   9.204 + <resources/>
   9.205 + <connections>
   9.206 +  <connection>
   9.207 +   <sender>actionExit</sender>
   9.208 +   <signal>triggered()</signal>
   9.209 +   <receiver>MainWindowLayout</receiver>
   9.210 +   <slot>close()</slot>
   9.211 +   <hints>
   9.212 +    <hint type="sourcelabel">
   9.213 +     <x>-1</x>
   9.214 +     <y>-1</y>
   9.215 +    </hint>
   9.216 +    <hint type="destinationlabel">
   9.217 +     <x>399</x>
   9.218 +     <y>299</y>
   9.219 +    </hint>
   9.220 +   </hints>
   9.221 +  </connection>
   9.222 + </connections>
   9.223 +</ui>