Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
view qt-gui/MainWindowLayout.cs @ 33:be876c03054f
Re #245: Create unit tab implementation
* Add stub widget
* Record which unit tabs are open
* Remove two default tabs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 07 Aug 2010 15:40:37 +0000 |
parents | 55d4f16c982b |
children |
line wrap: on
line source
/******************************************************************************** ** Form generated from reading ui file 'MainWindowLayout.ui' ** ** Created: Sat Aug 7 16:39:03 2010 ** by: Qt User Interface Compiler for C# version 4.6.3 ** ** WARNING! All changes made in this file will be lost when recompiling ui file! ********************************************************************************/ using Qyoto; public class Ui_MainWindowLayout { public QAction actionCreateArmy; public QAction actionOpenArmy; public QAction actionSaveArmy; public QAction actionSaveArmyAs; public QAction actionExportBasicHtml; public QAction actionCloseArmy; public QAction actionReloadFiles; public QAction actionExit; public QAction actionAbout; public QAction actionUndo; public QAction actionRedo; public QWidget mainContent; public QGridLayout gridLayout; public QSplitter splitter; public QTreeView armyTree; public QTabWidget unitTabs; public QMenuBar menubar; public QMenu menuFile; public QMenu menuExportArmyAs; public QMenu menuEdit; public QMenu menuHelp; public QStatusBar statusbar; public QToolBar toolBar; public void SetupUi(QMainWindow MainWindowLayout) { if (MainWindowLayout.ObjectName == "") MainWindowLayout.ObjectName = "MainWindowLayout"; QSize Size = new QSize(696, 595); Size = Size.ExpandedTo(MainWindowLayout.MinimumSizeHint()); MainWindowLayout.Size = Size; MainWindowLayout.WindowIcon = new QIcon("../App.png"); actionCreateArmy = new QAction(MainWindowLayout); actionCreateArmy.ObjectName = "actionCreateArmy"; actionOpenArmy = new QAction(MainWindowLayout); actionOpenArmy.ObjectName = "actionOpenArmy"; actionSaveArmy = new QAction(MainWindowLayout); actionSaveArmy.ObjectName = "actionSaveArmy"; actionSaveArmy.Enabled = false; actionSaveArmyAs = new QAction(MainWindowLayout); actionSaveArmyAs.ObjectName = "actionSaveArmyAs"; actionSaveArmyAs.Enabled = false; actionExportBasicHtml = new QAction(MainWindowLayout); actionExportBasicHtml.ObjectName = "actionExportBasicHtml"; actionExportBasicHtml.Enabled = false; actionCloseArmy = new QAction(MainWindowLayout); actionCloseArmy.ObjectName = "actionCloseArmy"; actionCloseArmy.Enabled = false; actionReloadFiles = new QAction(MainWindowLayout); actionReloadFiles.ObjectName = "actionReloadFiles"; actionReloadFiles.Enabled = false; actionExit = new QAction(MainWindowLayout); actionExit.ObjectName = "actionExit"; actionAbout = new QAction(MainWindowLayout); actionAbout.ObjectName = "actionAbout"; actionAbout.Enabled = false; actionUndo = new QAction(MainWindowLayout); actionUndo.ObjectName = "actionUndo"; actionUndo.Enabled = false; actionRedo = new QAction(MainWindowLayout); actionRedo.ObjectName = "actionRedo"; actionRedo.Enabled = false; mainContent = new QWidget(MainWindowLayout); mainContent.ObjectName = "mainContent"; gridLayout = new QGridLayout(mainContent); gridLayout.ObjectName = "gridLayout"; splitter = new QSplitter(mainContent); splitter.ObjectName = "splitter"; splitter.Orientation = Qt.Orientation.Horizontal; splitter.HandleWidth = 6; armyTree = new QTreeView(splitter); armyTree.ObjectName = "armyTree"; splitter.AddWidget(armyTree); unitTabs = new QTabWidget(splitter); unitTabs.ObjectName = "unitTabs"; unitTabs.MinimumSize = new QSize(500, 200); unitTabs.tabShape = QTabWidget.TabShape.Rounded; unitTabs.ElideMode = Qt.TextElideMode.ElideMiddle; unitTabs.DocumentMode = false; unitTabs.TabsClosable = true; unitTabs.Movable = true; splitter.AddWidget(unitTabs); gridLayout.AddWidget(splitter, 0, 0, 1, 1); MainWindowLayout.SetCentralWidget(mainContent); menubar = new QMenuBar(MainWindowLayout); menubar.ObjectName = "menubar"; menubar.Geometry = new QRect(0, 0, 696, 21); menuFile = new QMenu(menubar); menuFile.ObjectName = "menuFile"; menuExportArmyAs = new QMenu(menuFile); menuExportArmyAs.ObjectName = "menuExportArmyAs"; menuExportArmyAs.Enabled = false; menuEdit = new QMenu(menubar); menuEdit.ObjectName = "menuEdit"; menuHelp = new QMenu(menubar); menuHelp.ObjectName = "menuHelp"; MainWindowLayout.SetMenuBar(menubar); statusbar = new QStatusBar(MainWindowLayout); statusbar.ObjectName = "statusbar"; MainWindowLayout.SetStatusBar(statusbar); toolBar = new QToolBar(MainWindowLayout); toolBar.ObjectName = "toolBar"; toolBar.ToolButtonStyle = Qt.ToolButtonStyle.ToolButtonIconOnly; MainWindowLayout.AddToolBar(Qt.ToolBarArea.TopToolBarArea, toolBar); menubar.AddAction(menuFile.MenuAction()); menubar.AddAction(menuEdit.MenuAction()); menubar.AddAction(menuHelp.MenuAction()); menuFile.AddAction(actionCreateArmy); menuFile.AddAction(actionOpenArmy); menuFile.AddAction(actionSaveArmy); menuFile.AddAction(actionSaveArmyAs); menuFile.AddAction(menuExportArmyAs.MenuAction()); menuFile.AddAction(actionCloseArmy); menuFile.AddSeparator(); menuFile.AddAction(actionReloadFiles); menuFile.AddSeparator(); menuFile.AddAction(actionExit); menuExportArmyAs.AddAction(actionExportBasicHtml); menuEdit.AddAction(actionUndo); menuEdit.AddAction(actionRedo); menuHelp.AddAction(actionAbout); RetranslateUi(MainWindowLayout); unitTabs.CurrentIndex = -1; QMetaObject.ConnectSlotsByName(MainWindowLayout); } // SetupUi public void RetranslateUi(QMainWindow MainWindowLayout) { MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "WarFoundry", null, QApplication.Encoding.UnicodeUTF8); actionCreateArmy.Text = QApplication.Translate("MainWindowLayout", "&create army", null, QApplication.Encoding.UnicodeUTF8); actionOpenArmy.Text = QApplication.Translate("MainWindowLayout", "&open army", null, QApplication.Encoding.UnicodeUTF8); actionSaveArmy.Text = QApplication.Translate("MainWindowLayout", "&save army", null, QApplication.Encoding.UnicodeUTF8); actionSaveArmyAs.Text = QApplication.Translate("MainWindowLayout", "save army as", null, QApplication.Encoding.UnicodeUTF8); actionExportBasicHtml.Text = QApplication.Translate("MainWindowLayout", "&basic html", null, QApplication.Encoding.UnicodeUTF8); actionCloseArmy.Text = QApplication.Translate("MainWindowLayout", "close army", null, QApplication.Encoding.UnicodeUTF8); actionReloadFiles.Text = QApplication.Translate("MainWindowLayout", "reload files", null, QApplication.Encoding.UnicodeUTF8); actionExit.Text = QApplication.Translate("MainWindowLayout", "exit", null, QApplication.Encoding.UnicodeUTF8); actionAbout.Text = QApplication.Translate("MainWindowLayout", "&about", null, QApplication.Encoding.UnicodeUTF8); actionUndo.Text = QApplication.Translate("MainWindowLayout", "&undo", null, QApplication.Encoding.UnicodeUTF8); actionRedo.Text = QApplication.Translate("MainWindowLayout", "&redo", null, QApplication.Encoding.UnicodeUTF8); menuFile.Title = QApplication.Translate("MainWindowLayout", "&file", null, QApplication.Encoding.UnicodeUTF8); menuExportArmyAs.Title = QApplication.Translate("MainWindowLayout", "export army as", null, QApplication.Encoding.UnicodeUTF8); menuEdit.Title = QApplication.Translate("MainWindowLayout", "&edit", null, QApplication.Encoding.UnicodeUTF8); menuHelp.Title = QApplication.Translate("MainWindowLayout", "&help", null, QApplication.Encoding.UnicodeUTF8); toolBar.WindowTitle = QApplication.Translate("MainWindowLayout", "toolBar", null, QApplication.Encoding.UnicodeUTF8); } // RetranslateUi } namespace Ui { public class MainWindowLayout : Ui_MainWindowLayout {} } // namespace Ui