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