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

source code of qtbase/examples/widgets/tutorials/notepad/.uic/ui_notepad.h