Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
view qt-gui/MainWindowLayout.ui @ 26:55d4f16c982b
Fixes #250: QtSharp app doesn't always quit properly
* Override Close event to dispose of file dialogs (open and save)
* Remove unnecessary event handler hooked to close
* Change app initialisation to match pattern used by Synapse
* Create file dialogs without specifying "this" as parent - seems to be main fix, for some reason.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 31 Jul 2010 16:03:14 +0000 |
parents | dbe784f0802c |
children | be876c03054f |
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>21</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> <string>&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>&edit</string> </property> <addaction name="actionUndo"/> <addaction name="actionRedo"/> </widget> <widget class="QMenu" name="menuHelp"> <property name="title"> <string>&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>&create army</string> </property> </action> <action name="actionOpenArmy"> <property name="text"> <string>&open army</string> </property> </action> <action name="actionSaveArmy"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>&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>&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>&about</string> </property> </action> <action name="actionUndo"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>&undo</string> </property> </action> <action name="actionRedo"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>&redo</string> </property> </action> </widget> <resources/> <connections/> </ui>