author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Thu, 22 Apr 2010 16:15:11 +0300 | |
branch | RCL_3 |
changeset 14 | 8c4229025c0b |
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 'qfiledialog.ui' |
|
46 |
** |
|
47 |
** Created: Fri Sep 4 10:17:14 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 QFILEDIALOG_H |
|
54 |
#define QFILEDIALOG_H |
|
55 |
||
56 |
#include <QtCore/QVariant> |
|
57 |
#include <QtGui/QAction> |
|
58 |
#include <QtGui/QApplication> |
|
59 |
#include <QtGui/QButtonGroup> |
|
60 |
#include <QtGui/QComboBox> |
|
61 |
#include <QtGui/QDialog> |
|
62 |
#include <QtGui/QDialogButtonBox> |
|
63 |
#include <QtGui/QFrame> |
|
64 |
#include <QtGui/QGridLayout> |
|
65 |
#include <QtGui/QHBoxLayout> |
|
66 |
#include <QtGui/QHeaderView> |
|
67 |
#include <QtGui/QLabel> |
|
68 |
#include <QtGui/QSplitter> |
|
69 |
#include <QtGui/QStackedWidget> |
|
70 |
#include <QtGui/QToolButton> |
|
71 |
#include <QtGui/QVBoxLayout> |
|
72 |
#include <QtGui/QWidget> |
|
73 |
#include "qfiledialog_p.h" |
|
74 |
#include "qsidebar_p.h" |
|
75 |
||
76 |
QT_BEGIN_NAMESPACE |
|
77 |
||
78 |
class Ui_QFileDialog |
|
79 |
{ |
|
80 |
public: |
|
81 |
QGridLayout *gridLayout; |
|
82 |
QLabel *lookInLabel; |
|
83 |
QHBoxLayout *hboxLayout; |
|
84 |
QFileDialogComboBox *lookInCombo; |
|
85 |
QToolButton *backButton; |
|
86 |
QToolButton *forwardButton; |
|
87 |
QToolButton *toParentButton; |
|
88 |
QToolButton *newFolderButton; |
|
89 |
QToolButton *listModeButton; |
|
90 |
QToolButton *detailModeButton; |
|
91 |
QSplitter *splitter; |
|
92 |
QSidebar *sidebar; |
|
93 |
QFrame *frame; |
|
94 |
QVBoxLayout *vboxLayout; |
|
95 |
QStackedWidget *stackedWidget; |
|
96 |
QWidget *page; |
|
97 |
QVBoxLayout *vboxLayout1; |
|
98 |
QFileDialogListView *listView; |
|
99 |
QWidget *page_2; |
|
100 |
QVBoxLayout *vboxLayout2; |
|
101 |
QFileDialogTreeView *treeView; |
|
102 |
QLabel *fileNameLabel; |
|
103 |
QFileDialogLineEdit *fileNameEdit; |
|
104 |
QDialogButtonBox *buttonBox; |
|
105 |
QLabel *fileTypeLabel; |
|
106 |
QComboBox *fileTypeCombo; |
|
107 |
||
108 |
void setupUi(QDialog *QFileDialog) |
|
109 |
{ |
|
110 |
if (QFileDialog->objectName().isEmpty()) |
|
111 |
QFileDialog->setObjectName(QString::fromUtf8("QFileDialog")); |
|
112 |
QFileDialog->resize(521, 316); |
|
113 |
QFileDialog->setSizeGripEnabled(true); |
|
114 |
gridLayout = new QGridLayout(QFileDialog); |
|
115 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
116 |
lookInLabel = new QLabel(QFileDialog); |
|
117 |
lookInLabel->setObjectName(QString::fromUtf8("lookInLabel")); |
|
118 |
||
119 |
gridLayout->addWidget(lookInLabel, 0, 0, 1, 1); |
|
120 |
||
121 |
hboxLayout = new QHBoxLayout(); |
|
122 |
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
|
123 |
lookInCombo = new QFileDialogComboBox(QFileDialog); |
|
124 |
lookInCombo->setObjectName(QString::fromUtf8("lookInCombo")); |
|
125 |
QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); |
|
126 |
sizePolicy.setHorizontalStretch(1); |
|
127 |
sizePolicy.setVerticalStretch(0); |
|
128 |
sizePolicy.setHeightForWidth(lookInCombo->sizePolicy().hasHeightForWidth()); |
|
129 |
lookInCombo->setSizePolicy(sizePolicy); |
|
130 |
lookInCombo->setMinimumSize(QSize(50, 0)); |
|
131 |
||
132 |
hboxLayout->addWidget(lookInCombo); |
|
133 |
||
134 |
backButton = new QToolButton(QFileDialog); |
|
135 |
backButton->setObjectName(QString::fromUtf8("backButton")); |
|
136 |
||
137 |
hboxLayout->addWidget(backButton); |
|
138 |
||
139 |
forwardButton = new QToolButton(QFileDialog); |
|
140 |
forwardButton->setObjectName(QString::fromUtf8("forwardButton")); |
|
141 |
||
142 |
hboxLayout->addWidget(forwardButton); |
|
143 |
||
144 |
toParentButton = new QToolButton(QFileDialog); |
|
145 |
toParentButton->setObjectName(QString::fromUtf8("toParentButton")); |
|
146 |
||
147 |
hboxLayout->addWidget(toParentButton); |
|
148 |
||
149 |
newFolderButton = new QToolButton(QFileDialog); |
|
150 |
newFolderButton->setObjectName(QString::fromUtf8("newFolderButton")); |
|
151 |
||
152 |
hboxLayout->addWidget(newFolderButton); |
|
153 |
||
154 |
listModeButton = new QToolButton(QFileDialog); |
|
155 |
listModeButton->setObjectName(QString::fromUtf8("listModeButton")); |
|
156 |
||
157 |
hboxLayout->addWidget(listModeButton); |
|
158 |
||
159 |
detailModeButton = new QToolButton(QFileDialog); |
|
160 |
detailModeButton->setObjectName(QString::fromUtf8("detailModeButton")); |
|
161 |
||
162 |
hboxLayout->addWidget(detailModeButton); |
|
163 |
||
164 |
||
165 |
gridLayout->addLayout(hboxLayout, 0, 1, 1, 2); |
|
166 |
||
167 |
splitter = new QSplitter(QFileDialog); |
|
168 |
splitter->setObjectName(QString::fromUtf8("splitter")); |
|
169 |
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
170 |
sizePolicy1.setHorizontalStretch(0); |
|
171 |
sizePolicy1.setVerticalStretch(0); |
|
172 |
sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth()); |
|
173 |
splitter->setSizePolicy(sizePolicy1); |
|
174 |
splitter->setOrientation(Qt::Horizontal); |
|
175 |
sidebar = new QSidebar(splitter); |
|
176 |
sidebar->setObjectName(QString::fromUtf8("sidebar")); |
|
177 |
splitter->addWidget(sidebar); |
|
178 |
frame = new QFrame(splitter); |
|
179 |
frame->setObjectName(QString::fromUtf8("frame")); |
|
180 |
frame->setFrameShape(QFrame::NoFrame); |
|
181 |
frame->setFrameShadow(QFrame::Raised); |
|
182 |
vboxLayout = new QVBoxLayout(frame); |
|
183 |
vboxLayout->setSpacing(0); |
|
184 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
|
185 |
vboxLayout->setContentsMargins(0, 0, 0, 0); |
|
186 |
stackedWidget = new QStackedWidget(frame); |
|
187 |
stackedWidget->setObjectName(QString::fromUtf8("stackedWidget")); |
|
188 |
page = new QWidget(); |
|
189 |
page->setObjectName(QString::fromUtf8("page")); |
|
190 |
vboxLayout1 = new QVBoxLayout(page); |
|
191 |
vboxLayout1->setSpacing(0); |
|
192 |
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); |
|
193 |
vboxLayout1->setContentsMargins(0, 0, 0, 0); |
|
194 |
listView = new QFileDialogListView(page); |
|
195 |
listView->setObjectName(QString::fromUtf8("listView")); |
|
196 |
||
197 |
vboxLayout1->addWidget(listView); |
|
198 |
||
199 |
stackedWidget->addWidget(page); |
|
200 |
page_2 = new QWidget(); |
|
201 |
page_2->setObjectName(QString::fromUtf8("page_2")); |
|
202 |
vboxLayout2 = new QVBoxLayout(page_2); |
|
203 |
vboxLayout2->setSpacing(0); |
|
204 |
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); |
|
205 |
vboxLayout2->setContentsMargins(0, 0, 0, 0); |
|
206 |
treeView = new QFileDialogTreeView(page_2); |
|
207 |
treeView->setObjectName(QString::fromUtf8("treeView")); |
|
208 |
||
209 |
vboxLayout2->addWidget(treeView); |
|
210 |
||
211 |
stackedWidget->addWidget(page_2); |
|
212 |
||
213 |
vboxLayout->addWidget(stackedWidget); |
|
214 |
||
215 |
splitter->addWidget(frame); |
|
216 |
||
217 |
gridLayout->addWidget(splitter, 1, 0, 1, 3); |
|
218 |
||
219 |
fileNameLabel = new QLabel(QFileDialog); |
|
220 |
fileNameLabel->setObjectName(QString::fromUtf8("fileNameLabel")); |
|
221 |
QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred); |
|
222 |
sizePolicy2.setHorizontalStretch(0); |
|
223 |
sizePolicy2.setVerticalStretch(0); |
|
224 |
sizePolicy2.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth()); |
|
225 |
fileNameLabel->setSizePolicy(sizePolicy2); |
|
226 |
fileNameLabel->setMinimumSize(QSize(0, 0)); |
|
227 |
||
228 |
gridLayout->addWidget(fileNameLabel, 2, 0, 1, 1); |
|
229 |
||
230 |
fileNameEdit = new QFileDialogLineEdit(QFileDialog); |
|
231 |
fileNameEdit->setObjectName(QString::fromUtf8("fileNameEdit")); |
|
232 |
QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed); |
|
233 |
sizePolicy3.setHorizontalStretch(1); |
|
234 |
sizePolicy3.setVerticalStretch(0); |
|
235 |
sizePolicy3.setHeightForWidth(fileNameEdit->sizePolicy().hasHeightForWidth()); |
|
236 |
fileNameEdit->setSizePolicy(sizePolicy3); |
|
237 |
||
238 |
gridLayout->addWidget(fileNameEdit, 2, 1, 1, 1); |
|
239 |
||
240 |
buttonBox = new QDialogButtonBox(QFileDialog); |
|
241 |
buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
|
242 |
buttonBox->setOrientation(Qt::Vertical); |
|
243 |
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok); |
|
244 |
||
245 |
gridLayout->addWidget(buttonBox, 2, 2, 2, 1); |
|
246 |
||
247 |
fileTypeLabel = new QLabel(QFileDialog); |
|
248 |
fileTypeLabel->setObjectName(QString::fromUtf8("fileTypeLabel")); |
|
249 |
QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed); |
|
250 |
sizePolicy4.setHorizontalStretch(0); |
|
251 |
sizePolicy4.setVerticalStretch(0); |
|
252 |
sizePolicy4.setHeightForWidth(fileTypeLabel->sizePolicy().hasHeightForWidth()); |
|
253 |
fileTypeLabel->setSizePolicy(sizePolicy4); |
|
254 |
||
255 |
gridLayout->addWidget(fileTypeLabel, 3, 0, 1, 1); |
|
256 |
||
257 |
fileTypeCombo = new QComboBox(QFileDialog); |
|
258 |
fileTypeCombo->setObjectName(QString::fromUtf8("fileTypeCombo")); |
|
259 |
QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed); |
|
260 |
sizePolicy5.setHorizontalStretch(0); |
|
261 |
sizePolicy5.setVerticalStretch(0); |
|
262 |
sizePolicy5.setHeightForWidth(fileTypeCombo->sizePolicy().hasHeightForWidth()); |
|
263 |
fileTypeCombo->setSizePolicy(sizePolicy5); |
|
264 |
||
265 |
gridLayout->addWidget(fileTypeCombo, 3, 1, 1, 1); |
|
266 |
||
267 |
QWidget::setTabOrder(lookInCombo, backButton); |
|
268 |
QWidget::setTabOrder(backButton, forwardButton); |
|
269 |
QWidget::setTabOrder(forwardButton, toParentButton); |
|
270 |
QWidget::setTabOrder(toParentButton, newFolderButton); |
|
271 |
QWidget::setTabOrder(newFolderButton, listModeButton); |
|
272 |
QWidget::setTabOrder(listModeButton, detailModeButton); |
|
273 |
QWidget::setTabOrder(detailModeButton, sidebar); |
|
274 |
QWidget::setTabOrder(sidebar, listView); |
|
275 |
QWidget::setTabOrder(listView, fileNameEdit); |
|
276 |
QWidget::setTabOrder(fileNameEdit, fileTypeCombo); |
|
277 |
QWidget::setTabOrder(fileTypeCombo, buttonBox); |
|
278 |
QWidget::setTabOrder(buttonBox, treeView); |
|
279 |
||
280 |
retranslateUi(QFileDialog); |
|
281 |
||
282 |
stackedWidget->setCurrentIndex(0); |
|
283 |
||
284 |
||
285 |
QMetaObject::connectSlotsByName(QFileDialog); |
|
286 |
} // setupUi |
|
287 |
||
288 |
void retranslateUi(QDialog *QFileDialog) |
|
289 |
{ |
|
290 |
lookInLabel->setText(QApplication::translate("QFileDialog", "Look in:", 0, QApplication::UnicodeUTF8)); |
|
291 |
#ifndef QT_NO_TOOLTIP |
|
292 |
backButton->setToolTip(QApplication::translate("QFileDialog", "Back", 0, QApplication::UnicodeUTF8)); |
|
293 |
#endif // QT_NO_TOOLTIP |
|
294 |
#ifndef QT_NO_TOOLTIP |
|
295 |
forwardButton->setToolTip(QApplication::translate("QFileDialog", "Forward", 0, QApplication::UnicodeUTF8)); |
|
296 |
#endif // QT_NO_TOOLTIP |
|
297 |
#ifndef QT_NO_TOOLTIP |
|
298 |
toParentButton->setToolTip(QApplication::translate("QFileDialog", "Parent Directory", 0, QApplication::UnicodeUTF8)); |
|
299 |
#endif // QT_NO_TOOLTIP |
|
300 |
#ifndef QT_NO_TOOLTIP |
|
301 |
newFolderButton->setToolTip(QApplication::translate("QFileDialog", "Create New Folder", 0, QApplication::UnicodeUTF8)); |
|
302 |
#endif // QT_NO_TOOLTIP |
|
303 |
#ifndef QT_NO_TOOLTIP |
|
304 |
listModeButton->setToolTip(QApplication::translate("QFileDialog", "List View", 0, QApplication::UnicodeUTF8)); |
|
305 |
#endif // QT_NO_TOOLTIP |
|
306 |
#ifndef QT_NO_TOOLTIP |
|
307 |
detailModeButton->setToolTip(QApplication::translate("QFileDialog", "Detail View", 0, QApplication::UnicodeUTF8)); |
|
308 |
#endif // QT_NO_TOOLTIP |
|
309 |
fileTypeLabel->setText(QApplication::translate("QFileDialog", "Files of type:", 0, QApplication::UnicodeUTF8)); |
|
310 |
Q_UNUSED(QFileDialog); |
|
311 |
} // retranslateUi |
|
312 |
||
313 |
}; |
|
314 |
||
315 |
namespace Ui { |
|
316 |
class QFileDialog: public Ui_QFileDialog {}; |
|
317 |
} // namespace Ui |
|
318 |
||
319 |
QT_END_NAMESPACE |
|
320 |
||
321 |
#endif // QFILEDIALOG_H |