view qt-gui/MainWindowLayout.ui @ 13:dbe784f0802c

Re #246: Create army tree implementation * Create model for the army tree view Re #242: Create Qt# UI for WarFoundry * Add actions directly rather than creating a list Re #247: Implement menu options in Qt# app * Implement enable/disable on undo/redo menu items
author IBBoard <dev@ibboard.co.uk>
date Sat, 13 Feb 2010 10:34:41 +0000
parents 4a724378d66a
children 55d4f16c982b
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindowLayout</class>
 <widget class="QMainWindow" name="MainWindowLayout">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>696</width>
    <height>595</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>WarFoundry</string>
  </property>
  <property name="windowIcon">
   <iconset>
    <normaloff>../App.png</normaloff>../App.png</iconset>
  </property>
  <widget class="QWidget" name="mainContent">
   <layout class="QGridLayout" name="_2">
    <item row="0" column="0">
     <widget class="QSplitter" name="splitter">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
      <property name="handleWidth">
       <number>6</number>
      </property>
      <widget class="QTreeView" name="armyTree">
       <attribute name="headerVisible">
        <bool>false</bool>
       </attribute>
       <attribute name="headerVisible">
        <bool>false</bool>
       </attribute>
      </widget>
      <widget class="QTabWidget" name="unitTabs">
       <property name="minimumSize">
        <size>
         <width>500</width>
         <height>0</height>
        </size>
       </property>
       <property name="currentIndex">
        <number>0</number>
       </property>
       <widget class="QWidget" name="tab">
        <attribute name="title">
         <string>Tab 1</string>
        </attribute>
       </widget>
       <widget class="QWidget" name="tab_2">
        <attribute name="title">
         <string>Tab 2</string>
        </attribute>
       </widget>
      </widget>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>696</width>
     <height>23</height>
    </rect>
   </property>
   <widget class="QMenu" name="menuFile">
    <property name="title">
     <string>&amp;file</string>
    </property>
    <widget class="QMenu" name="menuExportArmyAs">
     <property name="enabled">
      <bool>false</bool>
     </property>
     <property name="title">
      <string>export army as</string>
     </property>
     <addaction name="actionExportBasicHtml"/>
    </widget>
    <addaction name="actionCreateArmy"/>
    <addaction name="actionOpenArmy"/>
    <addaction name="actionSaveArmy"/>
    <addaction name="actionSaveArmyAs"/>
    <addaction name="menuExportArmyAs"/>
    <addaction name="actionCloseArmy"/>
    <addaction name="separator"/>
    <addaction name="actionReloadFiles"/>
    <addaction name="separator"/>
    <addaction name="actionExit"/>
   </widget>
   <widget class="QMenu" name="menuEdit">
    <property name="title">
     <string>&amp;edit</string>
    </property>
    <addaction name="actionUndo"/>
    <addaction name="actionRedo"/>
   </widget>
   <widget class="QMenu" name="menuHelp">
    <property name="title">
     <string>&amp;help</string>
    </property>
    <addaction name="actionAbout"/>
   </widget>
   <addaction name="menuFile"/>
   <addaction name="menuEdit"/>
   <addaction name="menuHelp"/>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
  <widget class="QToolBar" name="toolBar">
   <property name="windowTitle">
    <string>toolBar</string>
   </property>
   <property name="toolButtonStyle">
    <enum>Qt::ToolButtonIconOnly</enum>
   </property>
   <attribute name="toolBarArea">
    <enum>TopToolBarArea</enum>
   </attribute>
   <attribute name="toolBarBreak">
    <bool>false</bool>
   </attribute>
  </widget>
  <action name="actionCreateArmy">
   <property name="text">
    <string>&amp;create army</string>
   </property>
  </action>
  <action name="actionOpenArmy">
   <property name="text">
    <string>&amp;open army</string>
   </property>
  </action>
  <action name="actionSaveArmy">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>&amp;save army</string>
   </property>
  </action>
  <action name="actionSaveArmyAs">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>save army as</string>
   </property>
  </action>
  <action name="actionExportBasicHtml">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>&amp;basic html</string>
   </property>
  </action>
  <action name="actionCloseArmy">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>close army</string>
   </property>
  </action>
  <action name="actionReloadFiles">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>reload files</string>
   </property>
  </action>
  <action name="actionExit">
   <property name="text">
    <string>exit</string>
   </property>
  </action>
  <action name="actionAbout">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>&amp;about</string>
   </property>
  </action>
  <action name="actionUndo">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>&amp;undo</string>
   </property>
  </action>
  <action name="actionRedo">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>&amp;redo</string>
   </property>
  </action>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>actionExit</sender>
   <signal>triggered()</signal>
   <receiver>MainWindowLayout</receiver>
   <slot>close()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>399</x>
     <y>299</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>