Mercurial > projects > qtd
annotate tools/duic/tests/ui_mainwindow.d @ 52:09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
author | eldar |
---|---|
date | Mon, 18 May 2009 15:23:28 +0000 |
parents | 2085c2157b50 |
children | d5a6b6269f44 |
rev | line source |
---|---|
1 | 1 /******************************************************************************** |
2 ** Form generated from reading ui file 'mainwindow.ui' | |
3 ** | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
48
diff
changeset
|
4 ** Created: Mon May 18 06:38:11 2009 |
48 | 5 ** by: QtD User Interface Compiler version 4.5.0 |
1 | 6 ** |
7 ** WARNING! All changes made in this file will be lost when recompiling ui file! | |
8 ********************************************************************************/ | |
9 | |
48 | 10 module ui.MainWindow; |
1 | 11 |
12 import qt.core.QVariant; | |
13 import qt.gui.QAction; | |
14 import qt.gui.QApplication; | |
15 import qt.gui.QButtonGroup; | |
16 import qt.gui.QDockWidget; | |
17 import qt.gui.QDoubleSpinBox; | |
18 import qt.gui.QFontComboBox; | |
19 import qt.gui.QFrame; | |
20 import qt.gui.QGroupBox; | |
21 import qt.gui.QHBoxLayout; | |
22 import qt.gui.QListView; | |
23 import qt.gui.QMainWindow; | |
24 import qt.gui.QMenu; | |
25 import qt.gui.QMenuBar; | |
26 import qt.gui.QRadioButton; | |
27 import qt.gui.QStatusBar; | |
28 import qt.gui.QToolBar; | |
29 import qt.gui.QTreeView; | |
30 import qt.gui.QVBoxLayout; | |
31 import qt.gui.QWidget; | |
32 | |
33 mixin QT_BEGIN_NAMESPACE; | |
34 | |
48 | 35 template Ui_MainWindow |
1 | 36 { |
37 public: | |
48 | 38 QAction actionOpen; |
39 QAction actionClose; | |
40 QAction actionQuit; | |
41 QAction actionCopy; | |
42 QAction actionPaste; | |
43 QAction actionCut; | |
44 QWidget centralwidget; | |
45 QVBoxLayout verticalLayout_3; | |
46 QWidget widget; | |
47 QHBoxLayout horizontalLayout_2; | |
48 QFontComboBox fontComboBox; | |
49 QDoubleSpinBox doubleSpinBox; | |
50 QFrame frame; | |
51 QVBoxLayout verticalLayout_2; | |
52 QListView listView; | |
53 QTreeView treeView; | |
54 QMenuBar menubar; | |
55 QMenu menuFile; | |
56 QMenu menuEdit; | |
57 QStatusBar statusbar; | |
58 QToolBar toolBar; | |
59 QDockWidget dockWidget; | |
60 QWidget dockWidgetContents; | |
61 QHBoxLayout horizontalLayout; | |
62 QGroupBox groupBox; | |
63 QVBoxLayout verticalLayout; | |
64 QRadioButton radioButton; | |
65 QRadioButton radioButton_2; | |
66 QRadioButton radioButton_3; | |
1 | 67 |
68 void setupUi(QMainWindow *MainWindow) | |
69 { | |
70 if (MainWindow.objectName().isEmpty()) | |
48 | 71 MainWindow.setObjectName(QString.fromUtf8("MainWindow")); |
1 | 72 MainWindow.resize(800, 600); |
73 actionOpen = new QAction(MainWindow); | |
48 | 74 actionOpen.setObjectName(QString.fromUtf8("actionOpen")); |
1 | 75 actionClose = new QAction(MainWindow); |
48 | 76 actionClose.setObjectName(QString.fromUtf8("actionClose")); |
1 | 77 actionQuit = new QAction(MainWindow); |
48 | 78 actionQuit.setObjectName(QString.fromUtf8("actionQuit")); |
1 | 79 actionCopy = new QAction(MainWindow); |
48 | 80 actionCopy.setObjectName(QString.fromUtf8("actionCopy")); |
1 | 81 actionPaste = new QAction(MainWindow); |
48 | 82 actionPaste.setObjectName(QString.fromUtf8("actionPaste")); |
1 | 83 actionCut = new QAction(MainWindow); |
48 | 84 actionCut.setObjectName(QString.fromUtf8("actionCut")); |
1 | 85 centralwidget = new QWidget(MainWindow); |
48 | 86 centralwidget.setObjectName(QString.fromUtf8("centralwidget")); |
1 | 87 verticalLayout_3 = new QVBoxLayout(centralwidget); |
48 | 88 verticalLayout_3.setObjectName(QString.fromUtf8("verticalLayout_3")); |
1 | 89 widget = new QWidget(centralwidget); |
48 | 90 widget.setObjectName(QString.fromUtf8("widget")); |
1 | 91 horizontalLayout_2 = new QHBoxLayout(widget); |
48 | 92 horizontalLayout_2.setObjectName(QString.fromUtf8("horizontalLayout_2")); |
1 | 93 fontComboBox = new QFontComboBox(widget); |
48 | 94 fontComboBox.setObjectName(QString.fromUtf8("fontComboBox")); |
1 | 95 |
96 horizontalLayout_2.addWidget(fontComboBox); | |
97 | |
98 doubleSpinBox = new QDoubleSpinBox(widget); | |
48 | 99 doubleSpinBox.setObjectName(QString.fromUtf8("doubleSpinBox")); |
1 | 100 |
101 horizontalLayout_2.addWidget(doubleSpinBox); | |
102 | |
103 | |
104 verticalLayout_3.addWidget(widget); | |
105 | |
106 frame = new QFrame(centralwidget); | |
48 | 107 frame.setObjectName(QString.fromUtf8("frame")); |
1 | 108 frame.setFrameShape(QFrame.QFrame::StyledPanel); |
109 frame.setFrameShadow(QFrame.QFrame::Raised); | |
110 verticalLayout_2 = new QVBoxLayout(frame); | |
48 | 111 verticalLayout_2.setObjectName(QString.fromUtf8("verticalLayout_2")); |
1 | 112 listView = new QListView(frame); |
48 | 113 listView.setObjectName(QString.fromUtf8("listView")); |
1 | 114 |
115 verticalLayout_2.addWidget(listView); | |
116 | |
117 treeView = new QTreeView(frame); | |
48 | 118 treeView.setObjectName(QString.fromUtf8("treeView")); |
1 | 119 |
120 verticalLayout_2.addWidget(treeView); | |
121 | |
122 | |
123 verticalLayout_3.addWidget(frame); | |
124 | |
125 MainWindow.setCentralWidget(centralwidget); | |
126 menubar = new QMenuBar(MainWindow); | |
48 | 127 menubar.setObjectName(QString.fromUtf8("menubar")); |
128 menubar.setGeometry(QRect(0, 0, 800, 27)); | |
1 | 129 menuFile = new QMenu(menubar); |
48 | 130 menuFile.setObjectName(QString.fromUtf8("menuFile")); |
1 | 131 menuEdit = new QMenu(menubar); |
48 | 132 menuEdit.setObjectName(QString.fromUtf8("menuEdit")); |
1 | 133 MainWindow.setMenuBar(menubar); |
134 statusbar = new QStatusBar(MainWindow); | |
48 | 135 statusbar.setObjectName(QString.fromUtf8("statusbar")); |
1 | 136 MainWindow.setStatusBar(statusbar); |
137 toolBar = new QToolBar(MainWindow); | |
48 | 138 toolBar.setObjectName(QString.fromUtf8("toolBar")); |
139 MainWindow.addToolBar(Qt.TopToolBarArea, toolBar); | |
1 | 140 dockWidget = new QDockWidget(MainWindow); |
48 | 141 dockWidget.setObjectName(QString.fromUtf8("dockWidget")); |
1 | 142 dockWidgetContents = new QWidget(); |
48 | 143 dockWidgetContents.setObjectName(QString.fromUtf8("dockWidgetContents")); |
1 | 144 horizontalLayout = new QHBoxLayout(dockWidgetContents); |
48 | 145 horizontalLayout.setObjectName(QString.fromUtf8("horizontalLayout")); |
1 | 146 groupBox = new QGroupBox(dockWidgetContents); |
48 | 147 groupBox.setObjectName(QString.fromUtf8("groupBox")); |
1 | 148 verticalLayout = new QVBoxLayout(groupBox); |
48 | 149 verticalLayout.setObjectName(QString.fromUtf8("verticalLayout")); |
1 | 150 radioButton = new QRadioButton(groupBox); |
48 | 151 radioButton.setObjectName(QString.fromUtf8("radioButton")); |
1 | 152 |
153 verticalLayout.addWidget(radioButton); | |
154 | |
155 radioButton_2 = new QRadioButton(groupBox); | |
48 | 156 radioButton_2.setObjectName(QString.fromUtf8("radioButton_2")); |
1 | 157 |
158 verticalLayout.addWidget(radioButton_2); | |
159 | |
160 radioButton_3 = new QRadioButton(groupBox); | |
48 | 161 radioButton_3.setObjectName(QString.fromUtf8("radioButton_3")); |
1 | 162 |
163 verticalLayout.addWidget(radioButton_3); | |
164 | |
165 | |
166 horizontalLayout.addWidget(groupBox); | |
167 | |
168 dockWidget.setWidget(dockWidgetContents); | |
48 | 169 MainWindow.addDockWidget((cast(Qt.DockWidgetArea)(2)), dockWidget); |
1 | 170 |
171 menubar.addAction(menuFile.menuAction()); | |
172 menubar.addAction(menuEdit.menuAction()); | |
173 menuFile.addAction(actionOpen); | |
174 menuFile.addAction(actionClose); | |
175 menuFile.addAction(actionQuit); | |
176 menuEdit.addAction(actionCopy); | |
177 menuEdit.addAction(actionPaste); | |
178 menuEdit.addAction(actionCut); | |
179 toolBar.addAction(actionOpen); | |
180 toolBar.addAction(actionQuit); | |
181 | |
182 retranslateUi(MainWindow); | |
183 QObject.connect(actionQuit, SIGNAL(activated(int)), MainWindow, SLOT(close())); | |
184 | |
185 QMetaObject.connectSlotsByName(MainWindow); | |
186 } // setupUi | |
187 | |
188 void retranslateUi(QMainWindow *MainWindow) | |
189 { | |
48 | 190 MainWindow.setWindowTitle(QApplication.translate("MainWindow", "MainWindow", 0, QApplication.UnicodeUTF8)); |
191 actionOpen.setText(QApplication.translate("MainWindow", "Open", 0, QApplication.UnicodeUTF8)); | |
192 actionClose.setText(QApplication.translate("MainWindow", "Close", 0, QApplication.UnicodeUTF8)); | |
193 actionQuit.setText(QApplication.translate("MainWindow", "Quit", 0, QApplication.UnicodeUTF8)); | |
194 actionCopy.setText(QApplication.translate("MainWindow", "Copy", 0, QApplication.UnicodeUTF8)); | |
195 actionPaste.setText(QApplication.translate("MainWindow", "Paste", 0, QApplication.UnicodeUTF8)); | |
196 actionCut.setText(QApplication.translate("MainWindow", "Cut", 0, QApplication.UnicodeUTF8)); | |
197 menuFile.setTitle(QApplication.translate("MainWindow", "File", 0, QApplication.UnicodeUTF8)); | |
198 menuEdit.setTitle(QApplication.translate("MainWindow", "Edit", 0, QApplication.UnicodeUTF8)); | |
199 toolBar.setWindowTitle(QApplication.translate("MainWindow", "toolBar", 0, QApplication.UnicodeUTF8)); | |
200 groupBox.setTitle(QApplication.translate("MainWindow", "Some options", 0, QApplication.UnicodeUTF8)); | |
201 radioButton.setText(QApplication.translate("MainWindow", "Option 1", 0, QApplication.UnicodeUTF8)); | |
202 radioButton_2.setText(QApplication.translate("MainWindow", "Option 2", 0, QApplication.UnicodeUTF8)); | |
203 radioButton_3.setText(QApplication.translate("MainWindow", "Option 3", 0, QApplication.UnicodeUTF8)); | |
1 | 204 } // retranslateUi |
205 | |
48 | 206 } |
1 | 207 |
48 | 208 struct MainWindow { |
209 mixin Ui_MainWindow; | |
210 } | |
52
09a0f1d048f2
update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents:
48
diff
changeset
|
211 |
1 | 212 mixin QT_END_NAMESPACE; |
213 |