1 | /******************************************************************************** |
2 | ** Form generated from reading UI file 'notepad.ui' |
3 | ** |
4 | ** Created by: Qt User Interface Compiler version 6.0.0 |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
7 | ********************************************************************************/ |
8 | |
9 | #ifndef UI_NOTEPAD_H |
10 | #define UI_NOTEPAD_H |
11 | |
12 | #include <QtCore/QVariant> |
13 | #include <QtGui/QAction> |
14 | #include <QtWidgets/QApplication> |
15 | #include <QtWidgets/QMainWindow> |
16 | #include <QtWidgets/QMenu> |
17 | #include <QtWidgets/QMenuBar> |
18 | #include <QtWidgets/QStatusBar> |
19 | #include <QtWidgets/QTextEdit> |
20 | #include <QtWidgets/QToolBar> |
21 | #include <QtWidgets/QVBoxLayout> |
22 | #include <QtWidgets/QWidget> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class Ui_Notepad |
27 | { |
28 | public: |
29 | QAction *actionNew; |
30 | QAction *actionOpen; |
31 | QAction *actionSave; |
32 | QAction *actionSave_as; |
33 | QAction *actionPrint; |
34 | QAction *actionExit; |
35 | QAction *actionCopy; |
36 | QAction *actionCut; |
37 | QAction *actionPaste; |
38 | QAction *actionUndo; |
39 | QAction *actionRedo; |
40 | QAction *actionFont; |
41 | QAction *actionItalic; |
42 | QAction *actionBold; |
43 | QAction *actionUnderline; |
44 | QAction *actionAbout; |
45 | QWidget *centralWidget; |
46 | QVBoxLayout *verticalLayout; |
47 | QTextEdit *textEdit; |
48 | QMenuBar *; |
49 | QMenu *; |
50 | QMenu *; |
51 | QToolBar *mainToolBar; |
52 | QStatusBar *statusBar; |
53 | |
54 | void setupUi(QMainWindow *Notepad) |
55 | { |
56 | if (Notepad->objectName().isEmpty()) |
57 | Notepad->setObjectName(QString::fromUtf8("Notepad" )); |
58 | Notepad->resize(800, 400); |
59 | actionNew = new QAction(Notepad); |
60 | actionNew->setObjectName(QString::fromUtf8("actionNew" )); |
61 | QIcon icon; |
62 | icon.addFile(QString::fromUtf8(":/images/new.png" ), QSize(), QIcon::Normal, QIcon::Off); |
63 | actionNew->setIcon(icon); |
64 | actionOpen = new QAction(Notepad); |
65 | actionOpen->setObjectName(QString::fromUtf8("actionOpen" )); |
66 | QIcon icon1; |
67 | icon1.addFile(QString::fromUtf8(":/images/open.png" ), QSize(), QIcon::Normal, QIcon::Off); |
68 | actionOpen->setIcon(icon1); |
69 | actionSave = new QAction(Notepad); |
70 | actionSave->setObjectName(QString::fromUtf8("actionSave" )); |
71 | QIcon icon2; |
72 | icon2.addFile(QString::fromUtf8(":/images/save.png" ), QSize(), QIcon::Normal, QIcon::Off); |
73 | actionSave->setIcon(icon2); |
74 | actionSave_as = new QAction(Notepad); |
75 | actionSave_as->setObjectName(QString::fromUtf8("actionSave_as" )); |
76 | QIcon icon3; |
77 | icon3.addFile(QString::fromUtf8(":/images/save_as.png" ), QSize(), QIcon::Normal, QIcon::Off); |
78 | actionSave_as->setIcon(icon3); |
79 | actionPrint = new QAction(Notepad); |
80 | actionPrint->setObjectName(QString::fromUtf8("actionPrint" )); |
81 | QIcon icon4; |
82 | icon4.addFile(QString::fromUtf8(":/images/print.png" ), QSize(), QIcon::Normal, QIcon::Off); |
83 | actionPrint->setIcon(icon4); |
84 | actionExit = new QAction(Notepad); |
85 | actionExit->setObjectName(QString::fromUtf8("actionExit" )); |
86 | QIcon icon5; |
87 | QString iconThemeName = QString::fromUtf8("exit.png" ); |
88 | if (QIcon::hasThemeIcon(iconThemeName)) { |
89 | icon5 = QIcon::fromTheme(iconThemeName); |
90 | } else { |
91 | icon5.addFile(QString::fromUtf8(":/images/exit.png" ), QSize(), QIcon::Normal, QIcon::Off); |
92 | } |
93 | actionExit->setIcon(icon5); |
94 | actionCopy = new QAction(Notepad); |
95 | actionCopy->setObjectName(QString::fromUtf8("actionCopy" )); |
96 | QIcon icon6; |
97 | icon6.addFile(QString::fromUtf8(":/images/copy.png" ), QSize(), QIcon::Normal, QIcon::Off); |
98 | actionCopy->setIcon(icon6); |
99 | actionCut = new QAction(Notepad); |
100 | actionCut->setObjectName(QString::fromUtf8("actionCut" )); |
101 | QIcon icon7; |
102 | icon7.addFile(QString::fromUtf8(":/images/cut.png" ), QSize(), QIcon::Normal, QIcon::Off); |
103 | actionCut->setIcon(icon7); |
104 | actionPaste = new QAction(Notepad); |
105 | actionPaste->setObjectName(QString::fromUtf8("actionPaste" )); |
106 | QIcon icon8; |
107 | icon8.addFile(QString::fromUtf8(":/images/paste.png" ), QSize(), QIcon::Normal, QIcon::Off); |
108 | actionPaste->setIcon(icon8); |
109 | actionUndo = new QAction(Notepad); |
110 | actionUndo->setObjectName(QString::fromUtf8("actionUndo" )); |
111 | QIcon icon9; |
112 | icon9.addFile(QString::fromUtf8(":/images/edit_undo.png" ), QSize(), QIcon::Normal, QIcon::Off); |
113 | actionUndo->setIcon(icon9); |
114 | actionRedo = new QAction(Notepad); |
115 | actionRedo->setObjectName(QString::fromUtf8("actionRedo" )); |
116 | QIcon icon10; |
117 | icon10.addFile(QString::fromUtf8(":/images/edit_redo.png" ), QSize(), QIcon::Normal, QIcon::Off); |
118 | actionRedo->setIcon(icon10); |
119 | actionFont = new QAction(Notepad); |
120 | actionFont->setObjectName(QString::fromUtf8("actionFont" )); |
121 | QIcon icon11; |
122 | icon11.addFile(QString::fromUtf8(":/images/font.png" ), QSize(), QIcon::Normal, QIcon::Off); |
123 | actionFont->setIcon(icon11); |
124 | actionItalic = new QAction(Notepad); |
125 | actionItalic->setObjectName(QString::fromUtf8("actionItalic" )); |
126 | actionItalic->setCheckable(true); |
127 | QIcon icon12; |
128 | icon12.addFile(QString::fromUtf8(":/images/italic.png" ), QSize(), QIcon::Normal, QIcon::Off); |
129 | actionItalic->setIcon(icon12); |
130 | actionBold = new QAction(Notepad); |
131 | actionBold->setObjectName(QString::fromUtf8("actionBold" )); |
132 | actionBold->setCheckable(true); |
133 | QIcon icon13; |
134 | icon13.addFile(QString::fromUtf8(":/images/bold.png" ), QSize(), QIcon::Normal, QIcon::Off); |
135 | actionBold->setIcon(icon13); |
136 | actionUnderline = new QAction(Notepad); |
137 | actionUnderline->setObjectName(QString::fromUtf8("actionUnderline" )); |
138 | actionUnderline->setCheckable(true); |
139 | QIcon icon14; |
140 | icon14.addFile(QString::fromUtf8(":/images/underline.png" ), QSize(), QIcon::Normal, QIcon::Off); |
141 | actionUnderline->setIcon(icon14); |
142 | actionAbout = new QAction(Notepad); |
143 | actionAbout->setObjectName(QString::fromUtf8("actionAbout" )); |
144 | QIcon icon15; |
145 | icon15.addFile(QString::fromUtf8(":/images/info.png" ), QSize(), QIcon::Normal, QIcon::Off); |
146 | actionAbout->setIcon(icon15); |
147 | centralWidget = new QWidget(Notepad); |
148 | centralWidget->setObjectName(QString::fromUtf8("centralWidget" )); |
149 | verticalLayout = new QVBoxLayout(centralWidget); |
150 | verticalLayout->setSpacing(6); |
151 | verticalLayout->setContentsMargins(11, 11, 11, 11); |
152 | verticalLayout->setObjectName(QString::fromUtf8("verticalLayout" )); |
153 | textEdit = new QTextEdit(centralWidget); |
154 | textEdit->setObjectName(QString::fromUtf8("textEdit" )); |
155 | |
156 | verticalLayout->addWidget(textEdit); |
157 | |
158 | Notepad->setCentralWidget(centralWidget); |
159 | menuBar = new QMenuBar(Notepad); |
160 | menuBar->setObjectName(QString::fromUtf8("menuBar" )); |
161 | menuBar->setGeometry(QRect(0, 0, 800, 25)); |
162 | menuFile = new QMenu(menuBar); |
163 | menuFile->setObjectName(QString::fromUtf8("menuFile" )); |
164 | menuEdit = new QMenu(menuBar); |
165 | menuEdit->setObjectName(QString::fromUtf8("menuEdit" )); |
166 | Notepad->setMenuBar(menuBar); |
167 | mainToolBar = new QToolBar(Notepad); |
168 | mainToolBar->setObjectName(QString::fromUtf8("mainToolBar" )); |
169 | Notepad->addToolBar(Qt::TopToolBarArea, mainToolBar); |
170 | statusBar = new QStatusBar(Notepad); |
171 | statusBar->setObjectName(QString::fromUtf8("statusBar" )); |
172 | Notepad->setStatusBar(statusBar); |
173 | |
174 | menuBar->addAction(menuFile->menuAction()); |
175 | menuBar->addAction(menuEdit->menuAction()); |
176 | menuFile->addAction(actionNew); |
177 | menuFile->addAction(actionOpen); |
178 | menuFile->addAction(actionSave); |
179 | menuFile->addAction(actionSave_as); |
180 | menuFile->addAction(actionPrint); |
181 | menuFile->addSeparator(); |
182 | menuFile->addAction(actionExit); |
183 | menuEdit->addAction(actionCopy); |
184 | menuEdit->addAction(actionCut); |
185 | menuEdit->addAction(actionPaste); |
186 | menuEdit->addSeparator(); |
187 | menuEdit->addAction(actionUndo); |
188 | menuEdit->addAction(actionRedo); |
189 | menuEdit->addAction(actionFont); |
190 | mainToolBar->addAction(actionNew); |
191 | mainToolBar->addAction(actionOpen); |
192 | mainToolBar->addAction(actionSave); |
193 | mainToolBar->addAction(actionSave_as); |
194 | mainToolBar->addAction(actionPrint); |
195 | mainToolBar->addSeparator(); |
196 | mainToolBar->addAction(actionCopy); |
197 | mainToolBar->addAction(actionCut); |
198 | mainToolBar->addAction(actionPaste); |
199 | mainToolBar->addAction(actionUndo); |
200 | mainToolBar->addAction(actionRedo); |
201 | mainToolBar->addSeparator(); |
202 | mainToolBar->addAction(actionFont); |
203 | mainToolBar->addAction(actionBold); |
204 | mainToolBar->addAction(actionItalic); |
205 | mainToolBar->addAction(actionUnderline); |
206 | mainToolBar->addSeparator(); |
207 | mainToolBar->addAction(actionAbout); |
208 | mainToolBar->addSeparator(); |
209 | mainToolBar->addAction(actionExit); |
210 | |
211 | retranslateUi(Notepad); |
212 | |
213 | QMetaObject::connectSlotsByName(Notepad); |
214 | } // setupUi |
215 | |
216 | void retranslateUi(QMainWindow *Notepad) |
217 | { |
218 | Notepad->setWindowTitle(QCoreApplication::translate("Notepad" , "Notepad" , nullptr)); |
219 | actionNew->setText(QCoreApplication::translate("Notepad" , "New" , nullptr)); |
220 | #if QT_CONFIG(tooltip) |
221 | actionNew->setToolTip(QCoreApplication::translate("Notepad" , "New text document" , nullptr)); |
222 | #endif // QT_CONFIG(tooltip) |
223 | #if QT_CONFIG(shortcut) |
224 | actionNew->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+N" , nullptr)); |
225 | #endif // QT_CONFIG(shortcut) |
226 | actionOpen->setText(QCoreApplication::translate("Notepad" , "Open" , nullptr)); |
227 | #if QT_CONFIG(tooltip) |
228 | actionOpen->setToolTip(QCoreApplication::translate("Notepad" , "Open file" , nullptr)); |
229 | #endif // QT_CONFIG(tooltip) |
230 | #if QT_CONFIG(shortcut) |
231 | actionOpen->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+O" , nullptr)); |
232 | #endif // QT_CONFIG(shortcut) |
233 | actionSave->setText(QCoreApplication::translate("Notepad" , "Save" , nullptr)); |
234 | #if QT_CONFIG(tooltip) |
235 | actionSave->setToolTip(QCoreApplication::translate("Notepad" , "Save file" , nullptr)); |
236 | #endif // QT_CONFIG(tooltip) |
237 | #if QT_CONFIG(shortcut) |
238 | actionSave->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+S" , nullptr)); |
239 | #endif // QT_CONFIG(shortcut) |
240 | actionSave_as->setText(QCoreApplication::translate("Notepad" , "Save as" , nullptr)); |
241 | #if QT_CONFIG(tooltip) |
242 | actionSave_as->setToolTip(QCoreApplication::translate("Notepad" , "Save file as" , nullptr)); |
243 | #endif // QT_CONFIG(tooltip) |
244 | #if QT_CONFIG(shortcut) |
245 | actionSave_as->setShortcut(QCoreApplication::translate("Notepad" , "Alt+S" , nullptr)); |
246 | #endif // QT_CONFIG(shortcut) |
247 | actionPrint->setText(QCoreApplication::translate("Notepad" , "Print" , nullptr)); |
248 | #if QT_CONFIG(tooltip) |
249 | actionPrint->setToolTip(QCoreApplication::translate("Notepad" , "Print file" , nullptr)); |
250 | #endif // QT_CONFIG(tooltip) |
251 | #if QT_CONFIG(shortcut) |
252 | actionPrint->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+P" , nullptr)); |
253 | #endif // QT_CONFIG(shortcut) |
254 | actionExit->setText(QCoreApplication::translate("Notepad" , "Exit" , nullptr)); |
255 | #if QT_CONFIG(tooltip) |
256 | actionExit->setToolTip(QCoreApplication::translate("Notepad" , "Exit notepad" , nullptr)); |
257 | #endif // QT_CONFIG(tooltip) |
258 | actionCopy->setText(QCoreApplication::translate("Notepad" , "Copy" , nullptr)); |
259 | #if QT_CONFIG(shortcut) |
260 | actionCopy->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+C" , nullptr)); |
261 | #endif // QT_CONFIG(shortcut) |
262 | actionCut->setText(QCoreApplication::translate("Notepad" , "Cut" , nullptr)); |
263 | #if QT_CONFIG(shortcut) |
264 | actionCut->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+X" , nullptr)); |
265 | #endif // QT_CONFIG(shortcut) |
266 | actionPaste->setText(QCoreApplication::translate("Notepad" , "Paste" , nullptr)); |
267 | #if QT_CONFIG(shortcut) |
268 | actionPaste->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+V" , nullptr)); |
269 | #endif // QT_CONFIG(shortcut) |
270 | actionUndo->setText(QCoreApplication::translate("Notepad" , "Undo" , nullptr)); |
271 | #if QT_CONFIG(shortcut) |
272 | actionUndo->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+Z" , nullptr)); |
273 | #endif // QT_CONFIG(shortcut) |
274 | actionRedo->setText(QCoreApplication::translate("Notepad" , "Redo" , nullptr)); |
275 | #if QT_CONFIG(shortcut) |
276 | actionRedo->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+Y" , nullptr)); |
277 | #endif // QT_CONFIG(shortcut) |
278 | actionFont->setText(QCoreApplication::translate("Notepad" , "Font" , nullptr)); |
279 | #if QT_CONFIG(shortcut) |
280 | actionFont->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+F" , nullptr)); |
281 | #endif // QT_CONFIG(shortcut) |
282 | actionItalic->setText(QCoreApplication::translate("Notepad" , "Italic" , nullptr)); |
283 | #if QT_CONFIG(tooltip) |
284 | actionItalic->setToolTip(QCoreApplication::translate("Notepad" , "Italic font" , nullptr)); |
285 | #endif // QT_CONFIG(tooltip) |
286 | #if QT_CONFIG(shortcut) |
287 | actionItalic->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+I" , nullptr)); |
288 | #endif // QT_CONFIG(shortcut) |
289 | actionBold->setText(QCoreApplication::translate("Notepad" , "actionBold" , nullptr)); |
290 | #if QT_CONFIG(tooltip) |
291 | actionBold->setToolTip(QCoreApplication::translate("Notepad" , "Bold" , nullptr)); |
292 | #endif // QT_CONFIG(tooltip) |
293 | #if QT_CONFIG(shortcut) |
294 | actionBold->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+B" , nullptr)); |
295 | #endif // QT_CONFIG(shortcut) |
296 | actionUnderline->setText(QCoreApplication::translate("Notepad" , "Underline" , nullptr)); |
297 | #if QT_CONFIG(tooltip) |
298 | actionUnderline->setToolTip(QCoreApplication::translate("Notepad" , "Underline" , nullptr)); |
299 | #endif // QT_CONFIG(tooltip) |
300 | #if QT_CONFIG(shortcut) |
301 | actionUnderline->setShortcut(QCoreApplication::translate("Notepad" , "Ctrl+U" , nullptr)); |
302 | #endif // QT_CONFIG(shortcut) |
303 | actionAbout->setText(QCoreApplication::translate("Notepad" , "About" , nullptr)); |
304 | #if QT_CONFIG(tooltip) |
305 | actionAbout->setToolTip(QCoreApplication::translate("Notepad" , "About Notepad" , nullptr)); |
306 | #endif // QT_CONFIG(tooltip) |
307 | menuFile->setTitle(QCoreApplication::translate("Notepad" , "File" , nullptr)); |
308 | menuEdit->setTitle(QCoreApplication::translate("Notepad" , "Edit" , nullptr)); |
309 | } // retranslateUi |
310 | |
311 | }; |
312 | |
313 | namespace Ui { |
314 | class Notepad: public Ui_Notepad {}; |
315 | } // namespace Ui |
316 | |
317 | QT_END_NAMESPACE |
318 | |
319 | #endif // UI_NOTEPAD_H |
320 | |