Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
view qt-gui/MainWindowLayout.cs @ 6:bbf40d66dfe4
Re #242: Create Qt# UI for WarFoundry
* Fix warnings about Connect strings not being signals
Re #243: Create new Qt# "Create Army" dialog
* Change from List View to List Widget (views need models, which only handle QVariants and not arbitrary objects)
* Populate Game System list
* Populate races list on game system selection changed
* Set text on some labels
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 27 Jan 2010 20:58:56 +0000 |
parents | 4ff09911ef64 |
children | 4a724378d66a |
line wrap: on
line source
/******************************************************************************** ** Form generated from reading ui file 'MainWindowLayout.ui' ** ** Created: Sat Jan 23 19:54:08 2010 ** by: Qt User Interface Compiler for C# version 4.5.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 QWidget tab; public QWidget tab_2; 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, 0); tab = new QWidget(); tab.ObjectName = "tab"; unitTabs.AddTab(tab, QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); tab_2 = new QWidget(); tab_2.ObjectName = "tab_2"; unitTabs.AddTab(tab_2, QApplication.Translate("MainWindowLayout", "Tab 2", null, QApplication.Encoding.UnicodeUTF8)); 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, 20); 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); MainWindowLayout.InsertToolBarBreak(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); QObject.Connect(actionExit, Qt.SIGNAL("triggered()"), MainWindowLayout, Qt.SLOT("close()")); unitTabs.CurrentIndex = 0; QMetaObject.ConnectSlotsByName(MainWindowLayout); } // SetupUi public void RetranslateUi(QMainWindow MainWindowLayout) { MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "MainWindow", 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); unitTabs.SetTabText(unitTabs.IndexOf(tab), QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); unitTabs.SetTabText(unitTabs.IndexOf(tab_2), QApplication.Translate("MainWindowLayout", "Tab 2", 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