1 /*
2 *********************************************************************
3 **
4 ** Copyright (C) 2015 The Qt Company Ltd.
5 ** Contact: http://www.qt.io/licensing/
6 **
7 ** This file is part of the autotests of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
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 http://www.qt.io/terms-conditions. For further
16 ** information use the contact form at http://www.qt.io/contact-us.
17 **
18 ** GNU Lesser General Public License Usage
19 ** Alternatively, this file may be used under the terms of the GNU Lesser
20 ** General Public License version 2.1 or version 3 as published by the Free
21 ** Software Foundation and appearing in the file LICENSE.LGPLv21 and
22 ** LICENSE.LGPLv3 included in the packaging of this file. Please review the
23 ** following information to ensure the GNU Lesser General Public License
24 ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
25 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26 **
27 ** As a special exception, The Qt Company gives you certain additional
28 ** rights. These rights are described in The Qt Company LGPL Exception
29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
30 **
31 ** GNU General Public License Usage
32 ** Alternatively, this file may be used under the terms of the GNU
33 ** General Public License version 3.0 as published by the Free Software
34 ** Foundation and appearing in the file LICENSE.GPL included in the
35 ** packaging of this file.  Please review the following information to
36 ** ensure the GNU General Public License version 3.0 requirements will be
37 ** met: http://www.gnu.org/copyleft/gpl.html.
38 **
39 ** $QT_END_LICENSE$
40 **
41 *********************************************************************
42 */
43 
44 /********************************************************************************
45 ** Form generated from reading UI file 'qfiledialog.ui'
46 **
47 ** Created by: Qt User Interface Compiler version 4.8.5
48 **
49 ** WARNING! All changes made in this file will be lost when recompiling UI file!
50 ********************************************************************************/
51 
52 #ifndef QFILEDIALOG_H
53 #define QFILEDIALOG_H
54 
55 #include <QtCore/QVariant>
56 #include <QtGui/QAction>
57 #include <QtGui/QApplication>
58 #include <QtGui/QButtonGroup>
59 #include <QtGui/QComboBox>
60 #include <QtGui/QDialog>
61 #include <QtGui/QDialogButtonBox>
62 #include <QtGui/QFrame>
63 #include <QtGui/QGridLayout>
64 #include <QtGui/QHBoxLayout>
65 #include <QtGui/QHeaderView>
66 #include <QtGui/QLabel>
67 #include <QtGui/QSplitter>
68 #include <QtGui/QStackedWidget>
69 #include <QtGui/QToolButton>
70 #include <QtGui/QVBoxLayout>
71 #include <QtGui/QWidget>
72 #include "qfiledialog_p.h"
73 #include "qsidebar_p.h"
74 
75 QT_BEGIN_NAMESPACE
76 
77 class Ui_QFileDialog
78 {
79 public:
80     QGridLayout *gridLayout;
81     QLabel *lookInLabel;
82     QHBoxLayout *hboxLayout;
83     QFileDialogComboBox *lookInCombo;
84     QToolButton *backButton;
85     QToolButton *forwardButton;
86     QToolButton *toParentButton;
87     QToolButton *newFolderButton;
88     QToolButton *listModeButton;
89     QToolButton *detailModeButton;
90     QSplitter *splitter;
91     QSidebar *sidebar;
92     QFrame *frame;
93     QVBoxLayout *vboxLayout;
94     QStackedWidget *stackedWidget;
95     QWidget *page;
96     QVBoxLayout *vboxLayout1;
97     QFileDialogListView *listView;
98     QWidget *page_2;
99     QVBoxLayout *vboxLayout2;
100     QFileDialogTreeView *treeView;
101     QLabel *fileNameLabel;
102     QFileDialogLineEdit *fileNameEdit;
103     QDialogButtonBox *buttonBox;
104     QLabel *fileTypeLabel;
105     QComboBox *fileTypeCombo;
106 
setupUi(QDialog * QFileDialog)107     void setupUi(QDialog *QFileDialog)
108     {
109         if (QFileDialog->objectName().isEmpty())
110             QFileDialog->setObjectName(QString::fromUtf8("QFileDialog"));
111         QFileDialog->resize(521, 316);
112         QFileDialog->setSizeGripEnabled(true);
113         gridLayout = new QGridLayout(QFileDialog);
114         gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
115         lookInLabel = new QLabel(QFileDialog);
116         lookInLabel->setObjectName(QString::fromUtf8("lookInLabel"));
117 
118         gridLayout->addWidget(lookInLabel, 0, 0, 1, 1);
119 
120         hboxLayout = new QHBoxLayout();
121         hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
122         lookInCombo = new QFileDialogComboBox(QFileDialog);
123         lookInCombo->setObjectName(QString::fromUtf8("lookInCombo"));
124         QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
125         sizePolicy.setHorizontalStretch(1);
126         sizePolicy.setVerticalStretch(0);
127         sizePolicy.setHeightForWidth(lookInCombo->sizePolicy().hasHeightForWidth());
128         lookInCombo->setSizePolicy(sizePolicy);
129         lookInCombo->setMinimumSize(QSize(50, 0));
130 
131         hboxLayout->addWidget(lookInCombo);
132 
133         backButton = new QToolButton(QFileDialog);
134         backButton->setObjectName(QString::fromUtf8("backButton"));
135 
136         hboxLayout->addWidget(backButton);
137 
138         forwardButton = new QToolButton(QFileDialog);
139         forwardButton->setObjectName(QString::fromUtf8("forwardButton"));
140 
141         hboxLayout->addWidget(forwardButton);
142 
143         toParentButton = new QToolButton(QFileDialog);
144         toParentButton->setObjectName(QString::fromUtf8("toParentButton"));
145 
146         hboxLayout->addWidget(toParentButton);
147 
148         newFolderButton = new QToolButton(QFileDialog);
149         newFolderButton->setObjectName(QString::fromUtf8("newFolderButton"));
150 
151         hboxLayout->addWidget(newFolderButton);
152 
153         listModeButton = new QToolButton(QFileDialog);
154         listModeButton->setObjectName(QString::fromUtf8("listModeButton"));
155 
156         hboxLayout->addWidget(listModeButton);
157 
158         detailModeButton = new QToolButton(QFileDialog);
159         detailModeButton->setObjectName(QString::fromUtf8("detailModeButton"));
160 
161         hboxLayout->addWidget(detailModeButton);
162 
163 
164         gridLayout->addLayout(hboxLayout, 0, 1, 1, 2);
165 
166         splitter = new QSplitter(QFileDialog);
167         splitter->setObjectName(QString::fromUtf8("splitter"));
168         QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
169         sizePolicy1.setHorizontalStretch(0);
170         sizePolicy1.setVerticalStretch(0);
171         sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
172         splitter->setSizePolicy(sizePolicy1);
173         splitter->setOrientation(Qt::Horizontal);
174         sidebar = new QSidebar(splitter);
175         sidebar->setObjectName(QString::fromUtf8("sidebar"));
176         splitter->addWidget(sidebar);
177         frame = new QFrame(splitter);
178         frame->setObjectName(QString::fromUtf8("frame"));
179         frame->setFrameShape(QFrame::NoFrame);
180         frame->setFrameShadow(QFrame::Raised);
181         vboxLayout = new QVBoxLayout(frame);
182         vboxLayout->setSpacing(0);
183         vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
184         vboxLayout->setContentsMargins(0, 0, 0, 0);
185         stackedWidget = new QStackedWidget(frame);
186         stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
187         page = new QWidget();
188         page->setObjectName(QString::fromUtf8("page"));
189         vboxLayout1 = new QVBoxLayout(page);
190         vboxLayout1->setSpacing(0);
191         vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
192         vboxLayout1->setContentsMargins(0, 0, 0, 0);
193         listView = new QFileDialogListView(page);
194         listView->setObjectName(QString::fromUtf8("listView"));
195 
196         vboxLayout1->addWidget(listView);
197 
198         stackedWidget->addWidget(page);
199         page_2 = new QWidget();
200         page_2->setObjectName(QString::fromUtf8("page_2"));
201         vboxLayout2 = new QVBoxLayout(page_2);
202         vboxLayout2->setSpacing(0);
203         vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
204         vboxLayout2->setContentsMargins(0, 0, 0, 0);
205         treeView = new QFileDialogTreeView(page_2);
206         treeView->setObjectName(QString::fromUtf8("treeView"));
207 
208         vboxLayout2->addWidget(treeView);
209 
210         stackedWidget->addWidget(page_2);
211 
212         vboxLayout->addWidget(stackedWidget);
213 
214         splitter->addWidget(frame);
215 
216         gridLayout->addWidget(splitter, 1, 0, 1, 3);
217 
218         fileNameLabel = new QLabel(QFileDialog);
219         fileNameLabel->setObjectName(QString::fromUtf8("fileNameLabel"));
220         QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred);
221         sizePolicy2.setHorizontalStretch(0);
222         sizePolicy2.setVerticalStretch(0);
223         sizePolicy2.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth());
224         fileNameLabel->setSizePolicy(sizePolicy2);
225         fileNameLabel->setMinimumSize(QSize(0, 0));
226 
227         gridLayout->addWidget(fileNameLabel, 2, 0, 1, 1);
228 
229         fileNameEdit = new QFileDialogLineEdit(QFileDialog);
230         fileNameEdit->setObjectName(QString::fromUtf8("fileNameEdit"));
231         QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed);
232         sizePolicy3.setHorizontalStretch(1);
233         sizePolicy3.setVerticalStretch(0);
234         sizePolicy3.setHeightForWidth(fileNameEdit->sizePolicy().hasHeightForWidth());
235         fileNameEdit->setSizePolicy(sizePolicy3);
236 
237         gridLayout->addWidget(fileNameEdit, 2, 1, 1, 1);
238 
239         buttonBox = new QDialogButtonBox(QFileDialog);
240         buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
241         buttonBox->setOrientation(Qt::Vertical);
242         buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
243 
244         gridLayout->addWidget(buttonBox, 2, 2, 2, 1);
245 
246         fileTypeLabel = new QLabel(QFileDialog);
247         fileTypeLabel->setObjectName(QString::fromUtf8("fileTypeLabel"));
248         QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed);
249         sizePolicy4.setHorizontalStretch(0);
250         sizePolicy4.setVerticalStretch(0);
251         sizePolicy4.setHeightForWidth(fileTypeLabel->sizePolicy().hasHeightForWidth());
252         fileTypeLabel->setSizePolicy(sizePolicy4);
253 
254         gridLayout->addWidget(fileTypeLabel, 3, 0, 1, 1);
255 
256         fileTypeCombo = new QComboBox(QFileDialog);
257         fileTypeCombo->setObjectName(QString::fromUtf8("fileTypeCombo"));
258         QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed);
259         sizePolicy5.setHorizontalStretch(0);
260         sizePolicy5.setVerticalStretch(0);
261         sizePolicy5.setHeightForWidth(fileTypeCombo->sizePolicy().hasHeightForWidth());
262         fileTypeCombo->setSizePolicy(sizePolicy5);
263 
264         gridLayout->addWidget(fileTypeCombo, 3, 1, 1, 1);
265 
266         QWidget::setTabOrder(lookInCombo, backButton);
267         QWidget::setTabOrder(backButton, forwardButton);
268         QWidget::setTabOrder(forwardButton, toParentButton);
269         QWidget::setTabOrder(toParentButton, newFolderButton);
270         QWidget::setTabOrder(newFolderButton, listModeButton);
271         QWidget::setTabOrder(listModeButton, detailModeButton);
272         QWidget::setTabOrder(detailModeButton, sidebar);
273         QWidget::setTabOrder(sidebar, listView);
274         QWidget::setTabOrder(listView, fileNameEdit);
275         QWidget::setTabOrder(fileNameEdit, fileTypeCombo);
276         QWidget::setTabOrder(fileTypeCombo, buttonBox);
277         QWidget::setTabOrder(buttonBox, treeView);
278 
279         retranslateUi(QFileDialog);
280 
281         stackedWidget->setCurrentIndex(0);
282 
283 
284         QMetaObject::connectSlotsByName(QFileDialog);
285     } // setupUi
286 
retranslateUi(QDialog * QFileDialog)287     void retranslateUi(QDialog *QFileDialog)
288     {
289         lookInLabel->setText(QApplication::translate("QFileDialog", "Look in:", 0, QApplication::UnicodeUTF8));
290 #ifndef QT_NO_TOOLTIP
291         backButton->setToolTip(QApplication::translate("QFileDialog", "Back", 0, QApplication::UnicodeUTF8));
292 #endif // QT_NO_TOOLTIP
293 #ifndef QT_NO_TOOLTIP
294         forwardButton->setToolTip(QApplication::translate("QFileDialog", "Forward", 0, QApplication::UnicodeUTF8));
295 #endif // QT_NO_TOOLTIP
296 #ifndef QT_NO_TOOLTIP
297         toParentButton->setToolTip(QApplication::translate("QFileDialog", "Parent Directory", 0, QApplication::UnicodeUTF8));
298 #endif // QT_NO_TOOLTIP
299 #ifndef QT_NO_TOOLTIP
300         newFolderButton->setToolTip(QApplication::translate("QFileDialog", "Create New Folder", 0, QApplication::UnicodeUTF8));
301 #endif // QT_NO_TOOLTIP
302 #ifndef QT_NO_TOOLTIP
303         listModeButton->setToolTip(QApplication::translate("QFileDialog", "List View", 0, QApplication::UnicodeUTF8));
304 #endif // QT_NO_TOOLTIP
305 #ifndef QT_NO_TOOLTIP
306         detailModeButton->setToolTip(QApplication::translate("QFileDialog", "Detail View", 0, QApplication::UnicodeUTF8));
307 #endif // QT_NO_TOOLTIP
308         fileTypeLabel->setText(QApplication::translate("QFileDialog", "Files of type:", 0, QApplication::UnicodeUTF8));
309         Q_UNUSED(QFileDialog);
310     } // retranslateUi
311 
312 };
313 
314 namespace Ui {
315     class QFileDialog: public Ui_QFileDialog {};
316 } // namespace Ui
317 
318 QT_END_NAMESPACE
319 
320 #endif // QFILEDIALOG_H
321