author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Thu, 08 Apr 2010 14:19:33 +0300 | |
branch | RCL_3 |
changeset 7 | 3f74d0d4af4c |
parent 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
********************************************************************* |
|
3 |
** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
4 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 5 |
** All rights reserved. |
6 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
|
7 |
** |
|
8 |
** This file is part of the autotests of the Qt Toolkit. |
|
9 |
** |
|
10 |
** $QT_BEGIN_LICENSE:LGPL$ |
|
11 |
** No Commercial Usage |
|
12 |
** This file contains pre-release code and may not be distributed. |
|
13 |
** You may use this file in accordance with the terms and conditions |
|
14 |
** contained in the Technology Preview License Agreement accompanying |
|
15 |
** this package. |
|
16 |
** |
|
17 |
** GNU Lesser General Public License Usage |
|
18 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
19 |
** General Public License version 2.1 as published by the Free Software |
|
20 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
21 |
** packaging of this file. Please review the following information to |
|
22 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
23 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
24 |
** |
|
25 |
** In addition, as a special exception, Nokia gives you certain additional |
|
26 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
27 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
28 |
** |
|
29 |
** If you have questions regarding the use of this file, please contact |
|
30 |
** Nokia at qt-info@nokia.com. |
|
31 |
** |
|
32 |
** |
|
33 |
** |
|
34 |
** |
|
35 |
** |
|
36 |
** |
|
37 |
** |
|
38 |
** |
|
39 |
** $QT_END_LICENSE$ |
|
40 |
** |
|
41 |
********************************************************************* |
|
42 |
*/ |
|
43 |
||
44 |
/******************************************************************************** |
|
45 |
** Form generated from reading UI file 'translatedialog.ui' |
|
46 |
** |
|
47 |
** Created: Fri Sep 4 10:17:15 2009 |
|
48 |
** by: Qt User Interface Compiler version 4.6.0 |
|
49 |
** |
|
50 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
|
51 |
********************************************************************************/ |
|
52 |
||
53 |
#ifndef TRANSLATEDIALOG_H |
|
54 |
#define TRANSLATEDIALOG_H |
|
55 |
||
56 |
#include <QtCore/QVariant> |
|
57 |
#include <QtGui/QAction> |
|
58 |
#include <QtGui/QApplication> |
|
59 |
#include <QtGui/QButtonGroup> |
|
60 |
#include <QtGui/QCheckBox> |
|
61 |
#include <QtGui/QDialog> |
|
62 |
#include <QtGui/QGridLayout> |
|
63 |
#include <QtGui/QGroupBox> |
|
64 |
#include <QtGui/QHBoxLayout> |
|
65 |
#include <QtGui/QHeaderView> |
|
66 |
#include <QtGui/QLabel> |
|
67 |
#include <QtGui/QLineEdit> |
|
68 |
#include <QtGui/QPushButton> |
|
69 |
#include <QtGui/QSpacerItem> |
|
70 |
#include <QtGui/QVBoxLayout> |
|
71 |
||
72 |
QT_BEGIN_NAMESPACE |
|
73 |
||
74 |
class Ui_TranslateDialog |
|
75 |
{ |
|
76 |
public: |
|
77 |
QHBoxLayout *hboxLayout; |
|
78 |
QVBoxLayout *vboxLayout; |
|
79 |
QGridLayout *gridLayout; |
|
80 |
QLineEdit *ledTranslateTo; |
|
81 |
QLabel *findWhat; |
|
82 |
QLabel *translateTo; |
|
83 |
QLineEdit *ledFindWhat; |
|
84 |
QGroupBox *groupBox; |
|
85 |
QVBoxLayout *vboxLayout1; |
|
86 |
QCheckBox *ckMatchCase; |
|
87 |
QCheckBox *ckMarkFinished; |
|
88 |
QSpacerItem *spacerItem; |
|
89 |
QVBoxLayout *vboxLayout2; |
|
90 |
QPushButton *findNxt; |
|
91 |
QPushButton *translate; |
|
92 |
QPushButton *translateAll; |
|
93 |
QPushButton *cancel; |
|
94 |
QSpacerItem *spacerItem1; |
|
95 |
||
96 |
void setupUi(QDialog *TranslateDialog) |
|
97 |
{ |
|
98 |
if (TranslateDialog->objectName().isEmpty()) |
|
99 |
TranslateDialog->setObjectName(QString::fromUtf8("TranslateDialog")); |
|
100 |
TranslateDialog->resize(407, 145); |
|
101 |
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); |
|
102 |
sizePolicy.setHorizontalStretch(0); |
|
103 |
sizePolicy.setVerticalStretch(0); |
|
104 |
sizePolicy.setHeightForWidth(TranslateDialog->sizePolicy().hasHeightForWidth()); |
|
105 |
TranslateDialog->setSizePolicy(sizePolicy); |
|
106 |
hboxLayout = new QHBoxLayout(TranslateDialog); |
|
107 |
hboxLayout->setSpacing(6); |
|
108 |
hboxLayout->setContentsMargins(11, 11, 11, 11); |
|
109 |
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
|
110 |
hboxLayout->setContentsMargins(9, 9, 9, 9); |
|
111 |
vboxLayout = new QVBoxLayout(); |
|
112 |
vboxLayout->setSpacing(6); |
|
113 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
|
114 |
vboxLayout->setContentsMargins(0, 0, 0, 0); |
|
115 |
gridLayout = new QGridLayout(); |
|
116 |
gridLayout->setSpacing(6); |
|
117 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
118 |
gridLayout->setHorizontalSpacing(6); |
|
119 |
gridLayout->setVerticalSpacing(6); |
|
120 |
gridLayout->setContentsMargins(0, 0, 0, 0); |
|
121 |
ledTranslateTo = new QLineEdit(TranslateDialog); |
|
122 |
ledTranslateTo->setObjectName(QString::fromUtf8("ledTranslateTo")); |
|
123 |
||
124 |
gridLayout->addWidget(ledTranslateTo, 1, 1, 1, 1); |
|
125 |
||
126 |
findWhat = new QLabel(TranslateDialog); |
|
127 |
findWhat->setObjectName(QString::fromUtf8("findWhat")); |
|
128 |
||
129 |
gridLayout->addWidget(findWhat, 0, 0, 1, 1); |
|
130 |
||
131 |
translateTo = new QLabel(TranslateDialog); |
|
132 |
translateTo->setObjectName(QString::fromUtf8("translateTo")); |
|
133 |
||
134 |
gridLayout->addWidget(translateTo, 1, 0, 1, 1); |
|
135 |
||
136 |
ledFindWhat = new QLineEdit(TranslateDialog); |
|
137 |
ledFindWhat->setObjectName(QString::fromUtf8("ledFindWhat")); |
|
138 |
||
139 |
gridLayout->addWidget(ledFindWhat, 0, 1, 1, 1); |
|
140 |
||
141 |
||
142 |
vboxLayout->addLayout(gridLayout); |
|
143 |
||
144 |
groupBox = new QGroupBox(TranslateDialog); |
|
145 |
groupBox->setObjectName(QString::fromUtf8("groupBox")); |
|
146 |
vboxLayout1 = new QVBoxLayout(groupBox); |
|
147 |
vboxLayout1->setSpacing(6); |
|
148 |
vboxLayout1->setContentsMargins(11, 11, 11, 11); |
|
149 |
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); |
|
150 |
ckMatchCase = new QCheckBox(groupBox); |
|
151 |
ckMatchCase->setObjectName(QString::fromUtf8("ckMatchCase")); |
|
152 |
||
153 |
vboxLayout1->addWidget(ckMatchCase); |
|
154 |
||
155 |
ckMarkFinished = new QCheckBox(groupBox); |
|
156 |
ckMarkFinished->setObjectName(QString::fromUtf8("ckMarkFinished")); |
|
157 |
||
158 |
vboxLayout1->addWidget(ckMarkFinished); |
|
159 |
||
160 |
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); |
|
161 |
||
162 |
vboxLayout1->addItem(spacerItem); |
|
163 |
||
164 |
||
165 |
vboxLayout->addWidget(groupBox); |
|
166 |
||
167 |
||
168 |
hboxLayout->addLayout(vboxLayout); |
|
169 |
||
170 |
vboxLayout2 = new QVBoxLayout(); |
|
171 |
vboxLayout2->setSpacing(6); |
|
172 |
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); |
|
173 |
vboxLayout2->setContentsMargins(0, 0, 0, 0); |
|
174 |
findNxt = new QPushButton(TranslateDialog); |
|
175 |
findNxt->setObjectName(QString::fromUtf8("findNxt")); |
|
176 |
findNxt->setDefault(true); |
|
177 |
findNxt->setFlat(false); |
|
178 |
||
179 |
vboxLayout2->addWidget(findNxt); |
|
180 |
||
181 |
translate = new QPushButton(TranslateDialog); |
|
182 |
translate->setObjectName(QString::fromUtf8("translate")); |
|
183 |
||
184 |
vboxLayout2->addWidget(translate); |
|
185 |
||
186 |
translateAll = new QPushButton(TranslateDialog); |
|
187 |
translateAll->setObjectName(QString::fromUtf8("translateAll")); |
|
188 |
||
189 |
vboxLayout2->addWidget(translateAll); |
|
190 |
||
191 |
cancel = new QPushButton(TranslateDialog); |
|
192 |
cancel->setObjectName(QString::fromUtf8("cancel")); |
|
193 |
||
194 |
vboxLayout2->addWidget(cancel); |
|
195 |
||
196 |
spacerItem1 = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding); |
|
197 |
||
198 |
vboxLayout2->addItem(spacerItem1); |
|
199 |
||
200 |
||
201 |
hboxLayout->addLayout(vboxLayout2); |
|
202 |
||
203 |
#ifndef QT_NO_SHORTCUT |
|
204 |
findWhat->setBuddy(ledFindWhat); |
|
205 |
translateTo->setBuddy(ledTranslateTo); |
|
206 |
#endif // QT_NO_SHORTCUT |
|
207 |
QWidget::setTabOrder(ledFindWhat, ledTranslateTo); |
|
208 |
QWidget::setTabOrder(ledTranslateTo, findNxt); |
|
209 |
QWidget::setTabOrder(findNxt, translate); |
|
210 |
QWidget::setTabOrder(translate, translateAll); |
|
211 |
QWidget::setTabOrder(translateAll, cancel); |
|
212 |
QWidget::setTabOrder(cancel, ckMatchCase); |
|
213 |
QWidget::setTabOrder(ckMatchCase, ckMarkFinished); |
|
214 |
||
215 |
retranslateUi(TranslateDialog); |
|
216 |
QObject::connect(cancel, SIGNAL(clicked()), TranslateDialog, SLOT(reject())); |
|
217 |
||
218 |
QMetaObject::connectSlotsByName(TranslateDialog); |
|
219 |
} // setupUi |
|
220 |
||
221 |
void retranslateUi(QDialog *TranslateDialog) |
|
222 |
{ |
|
223 |
TranslateDialog->setWindowTitle(QApplication::translate("TranslateDialog", "Qt Linguist", 0, QApplication::UnicodeUTF8)); |
|
224 |
#ifndef QT_NO_WHATSTHIS |
|
225 |
TranslateDialog->setWhatsThis(QApplication::translate("TranslateDialog", "This window allows you to search for some text in the translation source file.", 0, QApplication::UnicodeUTF8)); |
|
226 |
#endif // QT_NO_WHATSTHIS |
|
227 |
#ifndef QT_NO_WHATSTHIS |
|
228 |
ledTranslateTo->setWhatsThis(QApplication::translate("TranslateDialog", "Type in the text to search for.", 0, QApplication::UnicodeUTF8)); |
|
229 |
#endif // QT_NO_WHATSTHIS |
|
230 |
findWhat->setText(QApplication::translate("TranslateDialog", "Find &source text:", 0, QApplication::UnicodeUTF8)); |
|
231 |
translateTo->setText(QApplication::translate("TranslateDialog", "&Translate to:", 0, QApplication::UnicodeUTF8)); |
|
232 |
#ifndef QT_NO_WHATSTHIS |
|
233 |
ledFindWhat->setWhatsThis(QApplication::translate("TranslateDialog", "Type in the text to search for.", 0, QApplication::UnicodeUTF8)); |
|
234 |
#endif // QT_NO_WHATSTHIS |
|
235 |
groupBox->setTitle(QApplication::translate("TranslateDialog", "Search options", 0, QApplication::UnicodeUTF8)); |
|
236 |
#ifndef QT_NO_WHATSTHIS |
|
237 |
ckMatchCase->setWhatsThis(QApplication::translate("TranslateDialog", "Texts such as 'TeX' and 'tex' are considered as different when checked.", 0, QApplication::UnicodeUTF8)); |
|
238 |
#endif // QT_NO_WHATSTHIS |
|
239 |
ckMatchCase->setText(QApplication::translate("TranslateDialog", "Match &case", 0, QApplication::UnicodeUTF8)); |
|
240 |
ckMarkFinished->setText(QApplication::translate("TranslateDialog", "Mark new translation as &finished", 0, QApplication::UnicodeUTF8)); |
|
241 |
#ifndef QT_NO_WHATSTHIS |
|
242 |
findNxt->setWhatsThis(QApplication::translate("TranslateDialog", "Click here to find the next occurrence of the text you typed in.", 0, QApplication::UnicodeUTF8)); |
|
243 |
#endif // QT_NO_WHATSTHIS |
|
244 |
findNxt->setText(QApplication::translate("TranslateDialog", "Find Next", 0, QApplication::UnicodeUTF8)); |
|
245 |
translate->setText(QApplication::translate("TranslateDialog", "Translate", 0, QApplication::UnicodeUTF8)); |
|
246 |
translateAll->setText(QApplication::translate("TranslateDialog", "Translate All", 0, QApplication::UnicodeUTF8)); |
|
247 |
#ifndef QT_NO_WHATSTHIS |
|
248 |
cancel->setWhatsThis(QApplication::translate("TranslateDialog", "Click here to close this window.", 0, QApplication::UnicodeUTF8)); |
|
249 |
#endif // QT_NO_WHATSTHIS |
|
250 |
cancel->setText(QApplication::translate("TranslateDialog", "Cancel", 0, QApplication::UnicodeUTF8)); |
|
251 |
} // retranslateUi |
|
252 |
||
253 |
}; |
|
254 |
||
255 |
namespace Ui { |
|
256 |
class TranslateDialog: public Ui_TranslateDialog {}; |
|
257 |
} // namespace Ui |
|
258 |
||
259 |
QT_END_NAMESPACE |
|
260 |
||
261 |
#endif // TRANSLATEDIALOG_H |