1 | /******************************************************************************** |
2 | ** Form generated from reading UI file 'mainwindow.ui' |
3 | ** |
4 | ** Created by: Qt User Interface Compiler version 5.15.9 |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
7 | ********************************************************************************/ |
8 | |
9 | #ifndef UI_MAINWINDOW_H |
10 | #define UI_MAINWINDOW_H |
11 | |
12 | #include <QtCore/QVariant> |
13 | #include <QtWidgets/QAction> |
14 | #include <QtWidgets/QApplication> |
15 | #include <QtWidgets/QDockWidget> |
16 | #include <QtWidgets/QHBoxLayout> |
17 | #include <QtWidgets/QLabel> |
18 | #include <QtWidgets/QMainWindow> |
19 | #include <QtWidgets/QMenu> |
20 | #include <QtWidgets/QMenuBar> |
21 | #include <QtWidgets/QSpacerItem> |
22 | #include <QtWidgets/QSpinBox> |
23 | #include <QtWidgets/QStatusBar> |
24 | #include <QtWidgets/QTabWidget> |
25 | #include <QtWidgets/QToolBar> |
26 | #include <QtWidgets/QUndoView> |
27 | #include <QtWidgets/QVBoxLayout> |
28 | #include <QtWidgets/QWidget> |
29 | |
30 | QT_BEGIN_NAMESPACE |
31 | |
32 | class Ui_MainWindow |
33 | { |
34 | public: |
35 | QAction *actionOpen; |
36 | QAction *actionClose; |
37 | QAction *actionNew; |
38 | QAction *actionSave; |
39 | QAction *actionExit; |
40 | QAction *actionRed; |
41 | QAction *actionGreen; |
42 | QAction *actionBlue; |
43 | QAction *actionAddRectangle; |
44 | QAction *actionAddCircle; |
45 | QAction *actionRemoveShape; |
46 | QAction *actionAddRobot; |
47 | QAction *actionAddSnowman; |
48 | QAction *actionAddTriangle; |
49 | QAction *actionAbout; |
50 | QAction *actionAboutQt; |
51 | QWidget *centralwidget; |
52 | QVBoxLayout *vboxLayout; |
53 | QTabWidget *documentTabs; |
54 | QWidget *tab; |
55 | QMenuBar *menubar; |
56 | QMenu *menuFile; |
57 | QMenu *menuShape; |
58 | QMenu *menuMacros; |
59 | QMenu *menuHelp; |
60 | QStatusBar *statusbar; |
61 | QToolBar *toolBar; |
62 | QToolBar *shapeToolBar; |
63 | QDockWidget *dockWidget; |
64 | QWidget *dockWidgetContents; |
65 | QVBoxLayout *vboxLayout1; |
66 | QHBoxLayout *hboxLayout; |
67 | QSpacerItem *spacerItem; |
68 | QLabel *label; |
69 | QSpinBox *undoLimit; |
70 | QUndoView *undoView; |
71 | |
72 | void setupUi(QMainWindow *MainWindow) |
73 | { |
74 | if (MainWindow->objectName().isEmpty()) |
75 | MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow" )); |
76 | MainWindow->resize(w: 567, h: 600); |
77 | MainWindow->setIconSize(QSize(32, 32)); |
78 | actionOpen = new QAction(MainWindow); |
79 | actionOpen->setObjectName(QString::fromUtf8(str: "actionOpen" )); |
80 | const QIcon icon = QIcon(QString::fromUtf8(str: ":/icons/fileopen.png" )); |
81 | actionOpen->setIcon(icon); |
82 | actionClose = new QAction(MainWindow); |
83 | actionClose->setObjectName(QString::fromUtf8(str: "actionClose" )); |
84 | const QIcon icon1 = QIcon(QString::fromUtf8(str: ":/icons/fileclose.png" )); |
85 | actionClose->setIcon(icon1); |
86 | actionNew = new QAction(MainWindow); |
87 | actionNew->setObjectName(QString::fromUtf8(str: "actionNew" )); |
88 | const QIcon icon2 = QIcon(QString::fromUtf8(str: ":/icons/filenew.png" )); |
89 | actionNew->setIcon(icon2); |
90 | actionSave = new QAction(MainWindow); |
91 | actionSave->setObjectName(QString::fromUtf8(str: "actionSave" )); |
92 | const QIcon icon3 = QIcon(QString::fromUtf8(str: ":/icons/filesave.png" )); |
93 | actionSave->setIcon(icon3); |
94 | actionExit = new QAction(MainWindow); |
95 | actionExit->setObjectName(QString::fromUtf8(str: "actionExit" )); |
96 | const QIcon icon4 = QIcon(QString::fromUtf8(str: ":/icons/exit.png" )); |
97 | actionExit->setIcon(icon4); |
98 | actionRed = new QAction(MainWindow); |
99 | actionRed->setObjectName(QString::fromUtf8(str: "actionRed" )); |
100 | const QIcon icon5 = QIcon(QString::fromUtf8(str: ":/icons/red.png" )); |
101 | actionRed->setIcon(icon5); |
102 | actionGreen = new QAction(MainWindow); |
103 | actionGreen->setObjectName(QString::fromUtf8(str: "actionGreen" )); |
104 | const QIcon icon6 = QIcon(QString::fromUtf8(str: ":/icons/green.png" )); |
105 | actionGreen->setIcon(icon6); |
106 | actionBlue = new QAction(MainWindow); |
107 | actionBlue->setObjectName(QString::fromUtf8(str: "actionBlue" )); |
108 | const QIcon icon7 = QIcon(QString::fromUtf8(str: ":/icons/blue.png" )); |
109 | actionBlue->setIcon(icon7); |
110 | actionAddRectangle = new QAction(MainWindow); |
111 | actionAddRectangle->setObjectName(QString::fromUtf8(str: "actionAddRectangle" )); |
112 | const QIcon icon8 = QIcon(QString::fromUtf8(str: ":/icons/rectangle.png" )); |
113 | actionAddRectangle->setIcon(icon8); |
114 | actionAddCircle = new QAction(MainWindow); |
115 | actionAddCircle->setObjectName(QString::fromUtf8(str: "actionAddCircle" )); |
116 | const QIcon icon9 = QIcon(QString::fromUtf8(str: ":/icons/circle.png" )); |
117 | actionAddCircle->setIcon(icon9); |
118 | actionRemoveShape = new QAction(MainWindow); |
119 | actionRemoveShape->setObjectName(QString::fromUtf8(str: "actionRemoveShape" )); |
120 | const QIcon icon10 = QIcon(QString::fromUtf8(str: ":/icons/remove.png" )); |
121 | actionRemoveShape->setIcon(icon10); |
122 | actionAddRobot = new QAction(MainWindow); |
123 | actionAddRobot->setObjectName(QString::fromUtf8(str: "actionAddRobot" )); |
124 | actionAddSnowman = new QAction(MainWindow); |
125 | actionAddSnowman->setObjectName(QString::fromUtf8(str: "actionAddSnowman" )); |
126 | actionAddTriangle = new QAction(MainWindow); |
127 | actionAddTriangle->setObjectName(QString::fromUtf8(str: "actionAddTriangle" )); |
128 | const QIcon icon11 = QIcon(QString::fromUtf8(str: ":/icons/triangle.png" )); |
129 | actionAddTriangle->setIcon(icon11); |
130 | actionAbout = new QAction(MainWindow); |
131 | actionAbout->setObjectName(QString::fromUtf8(str: "actionAbout" )); |
132 | actionAboutQt = new QAction(MainWindow); |
133 | actionAboutQt->setObjectName(QString::fromUtf8(str: "actionAboutQt" )); |
134 | centralwidget = new QWidget(MainWindow); |
135 | centralwidget->setObjectName(QString::fromUtf8(str: "centralwidget" )); |
136 | vboxLayout = new QVBoxLayout(centralwidget); |
137 | vboxLayout->setSpacing(0); |
138 | vboxLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
139 | vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout" )); |
140 | documentTabs = new QTabWidget(centralwidget); |
141 | documentTabs->setObjectName(QString::fromUtf8(str: "documentTabs" )); |
142 | tab = new QWidget(); |
143 | tab->setObjectName(QString::fromUtf8(str: "tab" )); |
144 | documentTabs->addTab(widget: tab, QString()); |
145 | |
146 | vboxLayout->addWidget(documentTabs); |
147 | |
148 | MainWindow->setCentralWidget(centralwidget); |
149 | menubar = new QMenuBar(MainWindow); |
150 | menubar->setObjectName(QString::fromUtf8(str: "menubar" )); |
151 | menubar->setGeometry(QRect(0, 0, 567, 27)); |
152 | menuFile = new QMenu(menubar); |
153 | menuFile->setObjectName(QString::fromUtf8(str: "menuFile" )); |
154 | menuShape = new QMenu(menubar); |
155 | menuShape->setObjectName(QString::fromUtf8(str: "menuShape" )); |
156 | menuMacros = new QMenu(menuShape); |
157 | menuMacros->setObjectName(QString::fromUtf8(str: "menuMacros" )); |
158 | menuHelp = new QMenu(menubar); |
159 | menuHelp->setObjectName(QString::fromUtf8(str: "menuHelp" )); |
160 | MainWindow->setMenuBar(menubar); |
161 | statusbar = new QStatusBar(MainWindow); |
162 | statusbar->setObjectName(QString::fromUtf8(str: "statusbar" )); |
163 | MainWindow->setStatusBar(statusbar); |
164 | toolBar = new QToolBar(MainWindow); |
165 | toolBar->setObjectName(QString::fromUtf8(str: "toolBar" )); |
166 | toolBar->setOrientation(Qt::Horizontal); |
167 | MainWindow->addToolBar(area: Qt::TopToolBarArea, toolbar: toolBar); |
168 | shapeToolBar = new QToolBar(MainWindow); |
169 | shapeToolBar->setObjectName(QString::fromUtf8(str: "shapeToolBar" )); |
170 | shapeToolBar->setOrientation(Qt::Vertical); |
171 | MainWindow->addToolBar(area: Qt::LeftToolBarArea, toolbar: shapeToolBar); |
172 | dockWidget = new QDockWidget(MainWindow); |
173 | dockWidget->setObjectName(QString::fromUtf8(str: "dockWidget" )); |
174 | dockWidgetContents = new QWidget(); |
175 | dockWidgetContents->setObjectName(QString::fromUtf8(str: "dockWidgetContents" )); |
176 | vboxLayout1 = new QVBoxLayout(dockWidgetContents); |
177 | vboxLayout1->setSpacing(4); |
178 | vboxLayout1->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
179 | vboxLayout1->setObjectName(QString::fromUtf8(str: "vboxLayout1" )); |
180 | hboxLayout = new QHBoxLayout(); |
181 | #ifndef Q_OS_MAC |
182 | hboxLayout->setSpacing(6); |
183 | #endif |
184 | #ifndef Q_OS_MAC |
185 | hboxLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
186 | #endif |
187 | hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout" )); |
188 | spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
189 | |
190 | hboxLayout->addItem(spacerItem); |
191 | |
192 | label = new QLabel(dockWidgetContents); |
193 | label->setObjectName(QString::fromUtf8(str: "label" )); |
194 | |
195 | hboxLayout->addWidget(label); |
196 | |
197 | undoLimit = new QSpinBox(dockWidgetContents); |
198 | undoLimit->setObjectName(QString::fromUtf8(str: "undoLimit" )); |
199 | |
200 | hboxLayout->addWidget(undoLimit); |
201 | |
202 | |
203 | vboxLayout1->addLayout(layout: hboxLayout); |
204 | |
205 | undoView = new QUndoView(dockWidgetContents); |
206 | undoView->setObjectName(QString::fromUtf8(str: "undoView" )); |
207 | undoView->setAlternatingRowColors(false); |
208 | |
209 | vboxLayout1->addWidget(undoView); |
210 | |
211 | dockWidget->setWidget(dockWidgetContents); |
212 | MainWindow->addDockWidget(area: Qt::RightDockWidgetArea, dockwidget: dockWidget); |
213 | |
214 | menubar->addAction(action: menuFile->menuAction()); |
215 | menubar->addAction(action: menuShape->menuAction()); |
216 | menubar->addAction(action: menuHelp->menuAction()); |
217 | menuFile->addAction(action: actionNew); |
218 | menuFile->addAction(action: actionOpen); |
219 | menuFile->addAction(action: actionSave); |
220 | menuFile->addAction(action: actionClose); |
221 | menuFile->addSeparator(); |
222 | menuFile->addAction(action: actionExit); |
223 | menuShape->addSeparator(); |
224 | menuShape->addAction(action: actionAddCircle); |
225 | menuShape->addAction(action: actionAddRectangle); |
226 | menuShape->addAction(action: actionAddTriangle); |
227 | menuShape->addAction(action: actionRemoveShape); |
228 | menuShape->addSeparator(); |
229 | menuShape->addAction(action: actionRed); |
230 | menuShape->addAction(action: actionGreen); |
231 | menuShape->addAction(action: actionBlue); |
232 | menuShape->addSeparator(); |
233 | menuShape->addAction(action: menuMacros->menuAction()); |
234 | menuMacros->addAction(action: actionAddRobot); |
235 | menuMacros->addAction(action: actionAddSnowman); |
236 | menuHelp->addAction(action: actionAbout); |
237 | menuHelp->addAction(action: actionAboutQt); |
238 | toolBar->addAction(action: actionNew); |
239 | toolBar->addAction(action: actionOpen); |
240 | toolBar->addAction(action: actionSave); |
241 | toolBar->addAction(action: actionClose); |
242 | toolBar->addSeparator(); |
243 | shapeToolBar->addAction(action: actionAddRectangle); |
244 | shapeToolBar->addAction(action: actionAddCircle); |
245 | shapeToolBar->addAction(action: actionAddTriangle); |
246 | shapeToolBar->addAction(action: actionRemoveShape); |
247 | shapeToolBar->addSeparator(); |
248 | shapeToolBar->addAction(action: actionRed); |
249 | shapeToolBar->addAction(action: actionGreen); |
250 | shapeToolBar->addAction(action: actionBlue); |
251 | |
252 | retranslateUi(MainWindow); |
253 | |
254 | documentTabs->setCurrentIndex(0); |
255 | |
256 | |
257 | QMetaObject::connectSlotsByName(o: MainWindow); |
258 | } // setupUi |
259 | |
260 | void retranslateUi(QMainWindow *MainWindow) |
261 | { |
262 | actionOpen->setText(QCoreApplication::translate(context: "MainWindow" , key: "&Open" , disambiguation: nullptr)); |
263 | actionClose->setText(QCoreApplication::translate(context: "MainWindow" , key: "&Close" , disambiguation: nullptr)); |
264 | actionNew->setText(QCoreApplication::translate(context: "MainWindow" , key: "&New" , disambiguation: nullptr)); |
265 | actionSave->setText(QCoreApplication::translate(context: "MainWindow" , key: "&Save" , disambiguation: nullptr)); |
266 | actionExit->setText(QCoreApplication::translate(context: "MainWindow" , key: "E&xit" , disambiguation: nullptr)); |
267 | actionRed->setText(QCoreApplication::translate(context: "MainWindow" , key: "Red" , disambiguation: nullptr)); |
268 | actionGreen->setText(QCoreApplication::translate(context: "MainWindow" , key: "Green" , disambiguation: nullptr)); |
269 | actionBlue->setText(QCoreApplication::translate(context: "MainWindow" , key: "Blue" , disambiguation: nullptr)); |
270 | actionAddRectangle->setText(QCoreApplication::translate(context: "MainWindow" , key: "Add Rectangle" , disambiguation: nullptr)); |
271 | actionAddCircle->setText(QCoreApplication::translate(context: "MainWindow" , key: "Add Circle" , disambiguation: nullptr)); |
272 | actionRemoveShape->setText(QCoreApplication::translate(context: "MainWindow" , key: "Remove Shape" , disambiguation: nullptr)); |
273 | actionAddRobot->setText(QCoreApplication::translate(context: "MainWindow" , key: "Add robot" , disambiguation: nullptr)); |
274 | actionAddSnowman->setText(QCoreApplication::translate(context: "MainWindow" , key: "Add snowan" , disambiguation: nullptr)); |
275 | actionAddTriangle->setText(QCoreApplication::translate(context: "MainWindow" , key: "addTriangle" , disambiguation: nullptr)); |
276 | actionAbout->setText(QCoreApplication::translate(context: "MainWindow" , key: "About" , disambiguation: nullptr)); |
277 | actionAboutQt->setText(QCoreApplication::translate(context: "MainWindow" , key: "About Qt" , disambiguation: nullptr)); |
278 | documentTabs->setTabText(index: documentTabs->indexOf(widget: tab), text: QCoreApplication::translate(context: "MainWindow" , key: "Tab 1" , disambiguation: nullptr)); |
279 | menuFile->setTitle(QCoreApplication::translate(context: "MainWindow" , key: "File" , disambiguation: nullptr)); |
280 | menuShape->setTitle(QCoreApplication::translate(context: "MainWindow" , key: "Edit" , disambiguation: nullptr)); |
281 | menuMacros->setTitle(QCoreApplication::translate(context: "MainWindow" , key: "Macros" , disambiguation: nullptr)); |
282 | menuHelp->setTitle(QCoreApplication::translate(context: "MainWindow" , key: "Help" , disambiguation: nullptr)); |
283 | toolBar->setWindowTitle(QCoreApplication::translate(context: "MainWindow" , key: "File actions" , disambiguation: nullptr)); |
284 | shapeToolBar->setWindowTitle(QCoreApplication::translate(context: "MainWindow" , key: "Shape actions" , disambiguation: nullptr)); |
285 | dockWidget->setWindowTitle(QCoreApplication::translate(context: "MainWindow" , key: "Undo Stack" , disambiguation: nullptr)); |
286 | label->setText(QCoreApplication::translate(context: "MainWindow" , key: "Undo limit" , disambiguation: nullptr)); |
287 | (void)MainWindow; |
288 | } // retranslateUi |
289 | |
290 | }; |
291 | |
292 | namespace Ui { |
293 | class MainWindow: public Ui_MainWindow {}; |
294 | } // namespace Ui |
295 | |
296 | QT_END_NAMESPACE |
297 | |
298 | #endif // UI_MAINWINDOW_H |
299 | |