1 | /* |
2 | ********************************************************************* |
3 | ** |
4 | ** Copyright (C) 2016 The Qt Company Ltd. |
5 | ** Contact: https://www.qt.io/licensing/ |
6 | ** |
7 | ** This file is part of the Qt Linguist of the Qt Toolkit. |
8 | ** |
9 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
10 | ** Commercial License Usage |
11 | ** Licensees holding valid commercial Qt licenses may use this file in |
12 | ** accordance with the commercial license agreement provided with the |
13 | ** Software or, alternatively, in accordance with the terms contained in |
14 | ** a written agreement between you and The Qt Company. For licensing terms |
15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
16 | ** information use the contact form at https://www.qt.io/contact-us. |
17 | ** |
18 | ** GNU General Public License Usage |
19 | ** Alternatively, this file may be used under the terms of the GNU |
20 | ** General Public License version 3 as published by the Free Software |
21 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
22 | ** included in the packaging of this file. Please review the following |
23 | ** information to ensure the GNU General Public License requirements will |
24 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
25 | ** |
26 | ** $QT_END_LICENSE$ |
27 | ** |
28 | ********************************************************************* |
29 | */ |
30 | |
31 | /******************************************************************************** |
32 | ** Form generated from reading UI file 'translatedialog.ui' |
33 | ** |
34 | ** Created by: Qt User Interface Compiler version 5.15.9 |
35 | ** |
36 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
37 | ********************************************************************************/ |
38 | |
39 | #ifndef UI_TRANSLATEDIALOG_H |
40 | #define UI_TRANSLATEDIALOG_H |
41 | |
42 | #include <QtCore/QVariant> |
43 | #include <QtWidgets/QApplication> |
44 | #include <QtWidgets/QCheckBox> |
45 | #include <QtWidgets/QDialog> |
46 | #include <QtWidgets/QGridLayout> |
47 | #include <QtWidgets/QGroupBox> |
48 | #include <QtWidgets/QHBoxLayout> |
49 | #include <QtWidgets/QLabel> |
50 | #include <QtWidgets/QLineEdit> |
51 | #include <QtWidgets/QPushButton> |
52 | #include <QtWidgets/QSpacerItem> |
53 | #include <QtWidgets/QVBoxLayout> |
54 | |
55 | QT_BEGIN_NAMESPACE |
56 | |
57 | class Ui_TranslateDialog |
58 | { |
59 | public: |
60 | QHBoxLayout *hboxLayout; |
61 | QVBoxLayout *vboxLayout; |
62 | QGridLayout *gridLayout; |
63 | QLineEdit *ledTranslateTo; |
64 | QLabel *findWhat; |
65 | QLabel *translateTo; |
66 | QLineEdit *ledFindWhat; |
67 | QGroupBox *groupBox; |
68 | QVBoxLayout *vboxLayout1; |
69 | QCheckBox *ckMatchCase; |
70 | QCheckBox *ckMarkFinished; |
71 | QSpacerItem *spacerItem; |
72 | QVBoxLayout *vboxLayout2; |
73 | QPushButton *findNxt; |
74 | QPushButton *translate; |
75 | QPushButton *translateAll; |
76 | QPushButton *cancel; |
77 | QSpacerItem *spacerItem1; |
78 | |
79 | void setupUi(QDialog *translateDialog) |
80 | { |
81 | if (translateDialog->objectName().isEmpty()) |
82 | translateDialog->setObjectName(QString::fromUtf8(str: "translateDialog" )); |
83 | translateDialog->resize(w: 407, h: 174); |
84 | QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); |
85 | sizePolicy.setHorizontalStretch(0); |
86 | sizePolicy.setVerticalStretch(0); |
87 | sizePolicy.setHeightForWidth(translateDialog->sizePolicy().hasHeightForWidth()); |
88 | translateDialog->setSizePolicy(sizePolicy); |
89 | hboxLayout = new QHBoxLayout(translateDialog); |
90 | hboxLayout->setSpacing(6); |
91 | hboxLayout->setContentsMargins(left: 9, top: 9, right: 9, bottom: 9); |
92 | hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout" )); |
93 | vboxLayout = new QVBoxLayout(); |
94 | vboxLayout->setSpacing(6); |
95 | vboxLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
96 | vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout" )); |
97 | gridLayout = new QGridLayout(); |
98 | gridLayout->setSpacing(6); |
99 | gridLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
100 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
101 | ledTranslateTo = new QLineEdit(translateDialog); |
102 | ledTranslateTo->setObjectName(QString::fromUtf8(str: "ledTranslateTo" )); |
103 | |
104 | gridLayout->addWidget(ledTranslateTo, row: 1, column: 1, rowSpan: 1, columnSpan: 1); |
105 | |
106 | findWhat = new QLabel(translateDialog); |
107 | findWhat->setObjectName(QString::fromUtf8(str: "findWhat" )); |
108 | |
109 | gridLayout->addWidget(findWhat, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
110 | |
111 | translateTo = new QLabel(translateDialog); |
112 | translateTo->setObjectName(QString::fromUtf8(str: "translateTo" )); |
113 | |
114 | gridLayout->addWidget(translateTo, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
115 | |
116 | ledFindWhat = new QLineEdit(translateDialog); |
117 | ledFindWhat->setObjectName(QString::fromUtf8(str: "ledFindWhat" )); |
118 | |
119 | gridLayout->addWidget(ledFindWhat, row: 0, column: 1, rowSpan: 1, columnSpan: 1); |
120 | |
121 | |
122 | vboxLayout->addLayout(layout: gridLayout); |
123 | |
124 | groupBox = new QGroupBox(translateDialog); |
125 | groupBox->setObjectName(QString::fromUtf8(str: "groupBox" )); |
126 | vboxLayout1 = new QVBoxLayout(groupBox); |
127 | vboxLayout1->setSpacing(6); |
128 | vboxLayout1->setContentsMargins(left: 11, top: 11, right: 11, bottom: 11); |
129 | vboxLayout1->setObjectName(QString::fromUtf8(str: "vboxLayout1" )); |
130 | ckMatchCase = new QCheckBox(groupBox); |
131 | ckMatchCase->setObjectName(QString::fromUtf8(str: "ckMatchCase" )); |
132 | |
133 | vboxLayout1->addWidget(ckMatchCase); |
134 | |
135 | ckMarkFinished = new QCheckBox(groupBox); |
136 | ckMarkFinished->setObjectName(QString::fromUtf8(str: "ckMarkFinished" )); |
137 | |
138 | vboxLayout1->addWidget(ckMarkFinished); |
139 | |
140 | spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
141 | |
142 | vboxLayout1->addItem(spacerItem); |
143 | |
144 | |
145 | vboxLayout->addWidget(groupBox); |
146 | |
147 | |
148 | hboxLayout->addLayout(layout: vboxLayout); |
149 | |
150 | vboxLayout2 = new QVBoxLayout(); |
151 | vboxLayout2->setSpacing(6); |
152 | vboxLayout2->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0); |
153 | vboxLayout2->setObjectName(QString::fromUtf8(str: "vboxLayout2" )); |
154 | findNxt = new QPushButton(translateDialog); |
155 | findNxt->setObjectName(QString::fromUtf8(str: "findNxt" )); |
156 | findNxt->setFlat(false); |
157 | |
158 | vboxLayout2->addWidget(findNxt); |
159 | |
160 | translate = new QPushButton(translateDialog); |
161 | translate->setObjectName(QString::fromUtf8(str: "translate" )); |
162 | |
163 | vboxLayout2->addWidget(translate); |
164 | |
165 | translateAll = new QPushButton(translateDialog); |
166 | translateAll->setObjectName(QString::fromUtf8(str: "translateAll" )); |
167 | |
168 | vboxLayout2->addWidget(translateAll); |
169 | |
170 | cancel = new QPushButton(translateDialog); |
171 | cancel->setObjectName(QString::fromUtf8(str: "cancel" )); |
172 | |
173 | vboxLayout2->addWidget(cancel); |
174 | |
175 | spacerItem1 = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding); |
176 | |
177 | vboxLayout2->addItem(spacerItem1); |
178 | |
179 | |
180 | hboxLayout->addLayout(layout: vboxLayout2); |
181 | |
182 | #if QT_CONFIG(shortcut) |
183 | findWhat->setBuddy(ledFindWhat); |
184 | translateTo->setBuddy(ledTranslateTo); |
185 | #endif // QT_CONFIG(shortcut) |
186 | QWidget::setTabOrder(ledFindWhat, ledTranslateTo); |
187 | QWidget::setTabOrder(ledTranslateTo, findNxt); |
188 | QWidget::setTabOrder(findNxt, translate); |
189 | QWidget::setTabOrder(translate, translateAll); |
190 | QWidget::setTabOrder(translateAll, cancel); |
191 | QWidget::setTabOrder(cancel, ckMatchCase); |
192 | QWidget::setTabOrder(ckMatchCase, ckMarkFinished); |
193 | |
194 | retranslateUi(translateDialog); |
195 | QObject::connect(sender: cancel, SIGNAL(clicked()), receiver: translateDialog, SLOT(reject())); |
196 | |
197 | findNxt->setDefault(true); |
198 | |
199 | |
200 | QMetaObject::connectSlotsByName(o: translateDialog); |
201 | } // setupUi |
202 | |
203 | void retranslateUi(QDialog *translateDialog) |
204 | { |
205 | #if QT_CONFIG(whatsthis) |
206 | translateDialog->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "This window allows you to search for some text in the translation source file." , disambiguation: nullptr)); |
207 | #endif // QT_CONFIG(whatsthis) |
208 | #if QT_CONFIG(whatsthis) |
209 | ledTranslateTo->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "Type in the text to search for." , disambiguation: nullptr)); |
210 | #endif // QT_CONFIG(whatsthis) |
211 | findWhat->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Find &source text:" , disambiguation: nullptr)); |
212 | translateTo->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "&Translate to:" , disambiguation: nullptr)); |
213 | #if QT_CONFIG(whatsthis) |
214 | ledFindWhat->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "Type in the text to search for." , disambiguation: nullptr)); |
215 | #endif // QT_CONFIG(whatsthis) |
216 | groupBox->setTitle(QCoreApplication::translate(context: "TranslateDialog" , key: "Search options" , disambiguation: nullptr)); |
217 | #if QT_CONFIG(whatsthis) |
218 | ckMatchCase->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "Texts such as 'TeX' and 'tex' are considered as different when checked." , disambiguation: nullptr)); |
219 | #endif // QT_CONFIG(whatsthis) |
220 | ckMatchCase->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Match &case" , disambiguation: nullptr)); |
221 | ckMarkFinished->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Mark new translation as &finished" , disambiguation: nullptr)); |
222 | #if QT_CONFIG(whatsthis) |
223 | findNxt->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "Click here to find the next occurrence of the text you typed in." , disambiguation: nullptr)); |
224 | #endif // QT_CONFIG(whatsthis) |
225 | findNxt->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Find Next" , disambiguation: nullptr)); |
226 | translate->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Translate" , disambiguation: nullptr)); |
227 | translateAll->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Translate All" , disambiguation: nullptr)); |
228 | #if QT_CONFIG(whatsthis) |
229 | cancel->setWhatsThis(QCoreApplication::translate(context: "TranslateDialog" , key: "Click here to close this window." , disambiguation: nullptr)); |
230 | #endif // QT_CONFIG(whatsthis) |
231 | cancel->setText(QCoreApplication::translate(context: "TranslateDialog" , key: "Cancel" , disambiguation: nullptr)); |
232 | } // retranslateUi |
233 | |
234 | }; |
235 | |
236 | namespace Ui { |
237 | class TranslateDialog: public Ui_TranslateDialog {}; |
238 | } // namespace Ui |
239 | |
240 | QT_END_NAMESPACE |
241 | |
242 | #endif // UI_TRANSLATEDIALOG_H |
243 | |