Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
annotate qt-gui/MainWindowLayout.cs @ 2:cf68a996b3f1
Re #242: Create Qt# UI for WarFoundry
* Add initial Tango icons until Qt4.6 becomes standard with QIcon.fromTheme() method to get native icons
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 23 Jan 2010 20:26:04 +0000 |
parents | 4ff09911ef64 |
children | 4a724378d66a |
rev | line source |
---|---|
0 | 1 /******************************************************************************** |
2 ** Form generated from reading ui file 'MainWindowLayout.ui' | |
3 ** | |
1
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
4 ** Created: Sat Jan 23 19:54:08 2010 |
0 | 5 ** by: Qt User Interface Compiler for C# version 4.5.3 |
6 ** | |
7 ** WARNING! All changes made in this file will be lost when recompiling ui file! | |
8 ********************************************************************************/ | |
9 | |
10 | |
11 using Qyoto; | |
12 | |
13 public class Ui_MainWindowLayout | |
14 { | |
15 public QAction actionCreateArmy; | |
16 public QAction actionOpenArmy; | |
17 public QAction actionSaveArmy; | |
18 public QAction actionSaveArmyAs; | |
19 public QAction actionExportBasicHtml; | |
20 public QAction actionCloseArmy; | |
21 public QAction actionReloadFiles; | |
22 public QAction actionExit; | |
23 public QAction actionAbout; | |
24 public QAction actionUndo; | |
25 public QAction actionRedo; | |
26 public QWidget mainContent; | |
27 public QGridLayout gridLayout; | |
28 public QSplitter splitter; | |
29 public QTreeView armyTree; | |
30 public QTabWidget unitTabs; | |
31 public QWidget tab; | |
32 public QWidget tab_2; | |
33 public QMenuBar menubar; | |
34 public QMenu menuFile; | |
35 public QMenu menuExportArmyAs; | |
36 public QMenu menuEdit; | |
37 public QMenu menuHelp; | |
38 public QStatusBar statusbar; | |
39 public QToolBar toolBar; | |
40 | |
41 public void SetupUi(QMainWindow MainWindowLayout) | |
42 { | |
43 if (MainWindowLayout.ObjectName == "") | |
44 MainWindowLayout.ObjectName = "MainWindowLayout"; | |
45 QSize Size = new QSize(696, 595); | |
46 Size = Size.ExpandedTo(MainWindowLayout.MinimumSizeHint()); | |
47 MainWindowLayout.Size = Size; | |
48 MainWindowLayout.WindowIcon = new QIcon("../App.png"); | |
49 actionCreateArmy = new QAction(MainWindowLayout); | |
50 actionCreateArmy.ObjectName = "actionCreateArmy"; | |
51 actionOpenArmy = new QAction(MainWindowLayout); | |
52 actionOpenArmy.ObjectName = "actionOpenArmy"; | |
53 actionSaveArmy = new QAction(MainWindowLayout); | |
54 actionSaveArmy.ObjectName = "actionSaveArmy"; | |
55 actionSaveArmy.Enabled = false; | |
56 actionSaveArmyAs = new QAction(MainWindowLayout); | |
57 actionSaveArmyAs.ObjectName = "actionSaveArmyAs"; | |
58 actionSaveArmyAs.Enabled = false; | |
59 actionExportBasicHtml = new QAction(MainWindowLayout); | |
60 actionExportBasicHtml.ObjectName = "actionExportBasicHtml"; | |
61 actionExportBasicHtml.Enabled = false; | |
62 actionCloseArmy = new QAction(MainWindowLayout); | |
63 actionCloseArmy.ObjectName = "actionCloseArmy"; | |
64 actionCloseArmy.Enabled = false; | |
65 actionReloadFiles = new QAction(MainWindowLayout); | |
66 actionReloadFiles.ObjectName = "actionReloadFiles"; | |
67 actionReloadFiles.Enabled = false; | |
68 actionExit = new QAction(MainWindowLayout); | |
69 actionExit.ObjectName = "actionExit"; | |
70 actionAbout = new QAction(MainWindowLayout); | |
71 actionAbout.ObjectName = "actionAbout"; | |
72 actionAbout.Enabled = false; | |
73 actionUndo = new QAction(MainWindowLayout); | |
74 actionUndo.ObjectName = "actionUndo"; | |
75 actionUndo.Enabled = false; | |
76 actionRedo = new QAction(MainWindowLayout); | |
77 actionRedo.ObjectName = "actionRedo"; | |
78 actionRedo.Enabled = false; | |
79 mainContent = new QWidget(MainWindowLayout); | |
80 mainContent.ObjectName = "mainContent"; | |
81 gridLayout = new QGridLayout(mainContent); | |
82 gridLayout.ObjectName = "gridLayout"; | |
83 splitter = new QSplitter(mainContent); | |
84 splitter.ObjectName = "splitter"; | |
85 splitter.Orientation = Qt.Orientation.Horizontal; | |
86 splitter.HandleWidth = 6; | |
87 armyTree = new QTreeView(splitter); | |
88 armyTree.ObjectName = "armyTree"; | |
89 splitter.AddWidget(armyTree); | |
90 unitTabs = new QTabWidget(splitter); | |
91 unitTabs.ObjectName = "unitTabs"; | |
92 unitTabs.MinimumSize = new QSize(500, 0); | |
93 tab = new QWidget(); | |
94 tab.ObjectName = "tab"; | |
95 unitTabs.AddTab(tab, QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); | |
96 tab_2 = new QWidget(); | |
97 tab_2.ObjectName = "tab_2"; | |
98 unitTabs.AddTab(tab_2, QApplication.Translate("MainWindowLayout", "Tab 2", null, QApplication.Encoding.UnicodeUTF8)); | |
99 splitter.AddWidget(unitTabs); | |
100 | |
101 gridLayout.AddWidget(splitter, 0, 0, 1, 1); | |
102 | |
103 MainWindowLayout.SetCentralWidget(mainContent); | |
104 menubar = new QMenuBar(MainWindowLayout); | |
105 menubar.ObjectName = "menubar"; | |
106 menubar.Geometry = new QRect(0, 0, 696, 20); | |
107 menuFile = new QMenu(menubar); | |
108 menuFile.ObjectName = "menuFile"; | |
109 menuExportArmyAs = new QMenu(menuFile); | |
110 menuExportArmyAs.ObjectName = "menuExportArmyAs"; | |
111 menuExportArmyAs.Enabled = false; | |
112 menuEdit = new QMenu(menubar); | |
113 menuEdit.ObjectName = "menuEdit"; | |
114 menuHelp = new QMenu(menubar); | |
115 menuHelp.ObjectName = "menuHelp"; | |
116 MainWindowLayout.SetMenuBar(menubar); | |
117 statusbar = new QStatusBar(MainWindowLayout); | |
118 statusbar.ObjectName = "statusbar"; | |
119 MainWindowLayout.SetStatusBar(statusbar); | |
120 toolBar = new QToolBar(MainWindowLayout); | |
121 toolBar.ObjectName = "toolBar"; | |
122 toolBar.ToolButtonStyle = Qt.ToolButtonStyle.ToolButtonIconOnly; | |
123 MainWindowLayout.AddToolBar(Qt.ToolBarArea.TopToolBarArea, toolBar); | |
124 MainWindowLayout.InsertToolBarBreak(toolBar); | |
125 | |
126 menubar.AddAction(menuFile.MenuAction()); | |
127 menubar.AddAction(menuEdit.MenuAction()); | |
128 menubar.AddAction(menuHelp.MenuAction()); | |
129 menuFile.AddAction(actionCreateArmy); | |
130 menuFile.AddAction(actionOpenArmy); | |
131 menuFile.AddAction(actionSaveArmy); | |
132 menuFile.AddAction(actionSaveArmyAs); | |
133 menuFile.AddAction(menuExportArmyAs.MenuAction()); | |
134 menuFile.AddAction(actionCloseArmy); | |
135 menuFile.AddSeparator(); | |
136 menuFile.AddAction(actionReloadFiles); | |
137 menuFile.AddSeparator(); | |
138 menuFile.AddAction(actionExit); | |
139 menuExportArmyAs.AddAction(actionExportBasicHtml); | |
140 menuEdit.AddAction(actionUndo); | |
141 menuEdit.AddAction(actionRedo); | |
142 menuHelp.AddAction(actionAbout); | |
143 | |
144 RetranslateUi(MainWindowLayout); | |
145 QObject.Connect(actionExit, Qt.SIGNAL("triggered()"), MainWindowLayout, Qt.SLOT("close()")); | |
146 | |
147 unitTabs.CurrentIndex = 0; | |
148 | |
149 | |
150 QMetaObject.ConnectSlotsByName(MainWindowLayout); | |
151 } // SetupUi | |
152 | |
153 public void RetranslateUi(QMainWindow MainWindowLayout) | |
154 { | |
155 MainWindowLayout.WindowTitle = QApplication.Translate("MainWindowLayout", "MainWindow", null, QApplication.Encoding.UnicodeUTF8); | |
156 actionCreateArmy.Text = QApplication.Translate("MainWindowLayout", "&create army", null, QApplication.Encoding.UnicodeUTF8); | |
157 actionOpenArmy.Text = QApplication.Translate("MainWindowLayout", "&open army", null, QApplication.Encoding.UnicodeUTF8); | |
158 actionSaveArmy.Text = QApplication.Translate("MainWindowLayout", "&save army", null, QApplication.Encoding.UnicodeUTF8); | |
159 actionSaveArmyAs.Text = QApplication.Translate("MainWindowLayout", "save army as", null, QApplication.Encoding.UnicodeUTF8); | |
160 actionExportBasicHtml.Text = QApplication.Translate("MainWindowLayout", "&basic html", null, QApplication.Encoding.UnicodeUTF8); | |
161 actionCloseArmy.Text = QApplication.Translate("MainWindowLayout", "close army", null, QApplication.Encoding.UnicodeUTF8); | |
162 actionReloadFiles.Text = QApplication.Translate("MainWindowLayout", "reload files", null, QApplication.Encoding.UnicodeUTF8); | |
163 actionExit.Text = QApplication.Translate("MainWindowLayout", "exit", null, QApplication.Encoding.UnicodeUTF8); | |
164 actionAbout.Text = QApplication.Translate("MainWindowLayout", "&about", null, QApplication.Encoding.UnicodeUTF8); | |
165 actionUndo.Text = QApplication.Translate("MainWindowLayout", "&undo", null, QApplication.Encoding.UnicodeUTF8); | |
166 actionRedo.Text = QApplication.Translate("MainWindowLayout", "&redo", null, QApplication.Encoding.UnicodeUTF8); | |
167 unitTabs.SetTabText(unitTabs.IndexOf(tab), QApplication.Translate("MainWindowLayout", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); | |
168 unitTabs.SetTabText(unitTabs.IndexOf(tab_2), QApplication.Translate("MainWindowLayout", "Tab 2", null, QApplication.Encoding.UnicodeUTF8)); | |
169 menuFile.Title = QApplication.Translate("MainWindowLayout", "&file", null, QApplication.Encoding.UnicodeUTF8); | |
170 menuExportArmyAs.Title = QApplication.Translate("MainWindowLayout", "export army as", null, QApplication.Encoding.UnicodeUTF8); | |
171 menuEdit.Title = QApplication.Translate("MainWindowLayout", "&edit", null, QApplication.Encoding.UnicodeUTF8); | |
172 menuHelp.Title = QApplication.Translate("MainWindowLayout", "&help", null, QApplication.Encoding.UnicodeUTF8); | |
173 toolBar.WindowTitle = QApplication.Translate("MainWindowLayout", "toolBar", null, QApplication.Encoding.UnicodeUTF8); | |
174 } // RetranslateUi | |
175 | |
176 } | |
177 | |
178 namespace Ui { | |
179 public class MainWindowLayout : Ui_MainWindowLayout {} | |
180 } // namespace Ui | |
181 |