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 QtWidgets module 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 https://www.qt.io/terms-conditions. For further
16** information use the contact form at https://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 3 as published by the Free Software
21** Foundation and appearing in the file LICENSE.LGPL3 included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU Lesser General Public License version 3 requirements
24** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
25**
26** GNU General Public License Usage
27** Alternatively, this file may be used under the terms of the GNU
28** General Public License version 2.0 or (at your option) the GNU General
29** Public license version 3 or any later version approved by the KDE Free
30** Qt Foundation. The licenses are as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
32** included in the packaging of this file. Please review the following
33** information to ensure the GNU General Public License requirements will
34** be met: https://www.gnu.org/licenses/gpl-2.0.html and
35** https://www.gnu.org/licenses/gpl-3.0.html.
36**
37** $QT_END_LICENSE$
38**
39*********************************************************************
40*/
41
42/********************************************************************************
43** Form generated from reading UI file 'qfiledialog.ui'
44**
45** Created by: Qt User Interface Compiler version 5.15.9
46**
47** WARNING! All changes made in this file will be lost when recompiling UI file!
48********************************************************************************/
49
50#ifndef UI_QFILEDIALOG_H
51#define UI_QFILEDIALOG_H
52
53#include <QtCore/QVariant>
54#include <QtWidgets/QApplication>
55#include <QtWidgets/QComboBox>
56#include <QtWidgets/QDialog>
57#include <QtWidgets/QDialogButtonBox>
58#include <QtWidgets/QFrame>
59#include <QtWidgets/QGridLayout>
60#include <QtWidgets/QHBoxLayout>
61#include <QtWidgets/QHeaderView>
62#include <QtWidgets/QLabel>
63#include <QtWidgets/QSplitter>
64#include <QtWidgets/QStackedWidget>
65#include <QtWidgets/QToolButton>
66#include <QtWidgets/QVBoxLayout>
67#include <QtWidgets/QWidget>
68#include "private/qfiledialog_p.h"
69#include "private/qsidebar_p.h"
70
71QT_BEGIN_NAMESPACE
72
73class Ui_QFileDialog
74{
75public:
76 QGridLayout *gridLayout;
77 QLabel *lookInLabel;
78 QHBoxLayout *hboxLayout;
79 QFileDialogComboBox *lookInCombo;
80 QToolButton *backButton;
81 QToolButton *forwardButton;
82 QToolButton *toParentButton;
83 QToolButton *newFolderButton;
84 QToolButton *listModeButton;
85 QToolButton *detailModeButton;
86 QSplitter *splitter;
87 QSidebar *sidebar;
88 QFrame *frame;
89 QVBoxLayout *vboxLayout;
90 QStackedWidget *stackedWidget;
91 QWidget *page;
92 QVBoxLayout *vboxLayout1;
93 QFileDialogListView *listView;
94 QWidget *page_2;
95 QVBoxLayout *vboxLayout2;
96 QFileDialogTreeView *treeView;
97 QLabel *fileNameLabel;
98 QFileDialogLineEdit *fileNameEdit;
99 QDialogButtonBox *buttonBox;
100 QLabel *fileTypeLabel;
101 QComboBox *fileTypeCombo;
102
103 void setupUi(QDialog *QFileDialog)
104 {
105 if (QFileDialog->objectName().isEmpty())
106 QFileDialog->setObjectName(QString::fromUtf8(str: "QFileDialog"));
107 QFileDialog->resize(w: 521, h: 316);
108 QFileDialog->setSizeGripEnabled(true);
109 gridLayout = new QGridLayout(QFileDialog);
110 gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout"));
111 lookInLabel = new QLabel(QFileDialog);
112 lookInLabel->setObjectName(QString::fromUtf8(str: "lookInLabel"));
113
114 gridLayout->addWidget(lookInLabel, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
115
116 hboxLayout = new QHBoxLayout();
117 hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout"));
118 lookInCombo = new QFileDialogComboBox(QFileDialog);
119 lookInCombo->setObjectName(QString::fromUtf8(str: "lookInCombo"));
120 QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
121 sizePolicy.setHorizontalStretch(1);
122 sizePolicy.setVerticalStretch(0);
123 sizePolicy.setHeightForWidth(lookInCombo->sizePolicy().hasHeightForWidth());
124 lookInCombo->setSizePolicy(sizePolicy);
125 lookInCombo->setMinimumSize(QSize(50, 0));
126
127 hboxLayout->addWidget(lookInCombo);
128
129 backButton = new QToolButton(QFileDialog);
130 backButton->setObjectName(QString::fromUtf8(str: "backButton"));
131
132 hboxLayout->addWidget(backButton);
133
134 forwardButton = new QToolButton(QFileDialog);
135 forwardButton->setObjectName(QString::fromUtf8(str: "forwardButton"));
136
137 hboxLayout->addWidget(forwardButton);
138
139 toParentButton = new QToolButton(QFileDialog);
140 toParentButton->setObjectName(QString::fromUtf8(str: "toParentButton"));
141
142 hboxLayout->addWidget(toParentButton);
143
144 newFolderButton = new QToolButton(QFileDialog);
145 newFolderButton->setObjectName(QString::fromUtf8(str: "newFolderButton"));
146
147 hboxLayout->addWidget(newFolderButton);
148
149 listModeButton = new QToolButton(QFileDialog);
150 listModeButton->setObjectName(QString::fromUtf8(str: "listModeButton"));
151
152 hboxLayout->addWidget(listModeButton);
153
154 detailModeButton = new QToolButton(QFileDialog);
155 detailModeButton->setObjectName(QString::fromUtf8(str: "detailModeButton"));
156
157 hboxLayout->addWidget(detailModeButton);
158
159
160 gridLayout->addLayout(hboxLayout, row: 0, column: 1, rowSpan: 1, columnSpan: 2);
161
162 splitter = new QSplitter(QFileDialog);
163 splitter->setObjectName(QString::fromUtf8(str: "splitter"));
164 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
165 sizePolicy1.setHorizontalStretch(0);
166 sizePolicy1.setVerticalStretch(0);
167 sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
168 splitter->setSizePolicy(sizePolicy1);
169 splitter->setOrientation(Qt::Horizontal);
170 splitter->setChildrenCollapsible(false);
171 sidebar = new QSidebar(splitter);
172 sidebar->setObjectName(QString::fromUtf8(str: "sidebar"));
173 splitter->addWidget(widget: sidebar);
174 frame = new QFrame(splitter);
175 frame->setObjectName(QString::fromUtf8(str: "frame"));
176 frame->setFrameShape(QFrame::NoFrame);
177 frame->setFrameShadow(QFrame::Raised);
178 vboxLayout = new QVBoxLayout(frame);
179 vboxLayout->setSpacing(0);
180 vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout"));
181 vboxLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
182 stackedWidget = new QStackedWidget(frame);
183 stackedWidget->setObjectName(QString::fromUtf8(str: "stackedWidget"));
184 page = new QWidget();
185 page->setObjectName(QString::fromUtf8(str: "page"));
186 vboxLayout1 = new QVBoxLayout(page);
187 vboxLayout1->setSpacing(0);
188 vboxLayout1->setObjectName(QString::fromUtf8(str: "vboxLayout1"));
189 vboxLayout1->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
190 listView = new QFileDialogListView(page);
191 listView->setObjectName(QString::fromUtf8(str: "listView"));
192
193 vboxLayout1->addWidget(listView);
194
195 stackedWidget->addWidget(w: page);
196 page_2 = new QWidget();
197 page_2->setObjectName(QString::fromUtf8(str: "page_2"));
198 vboxLayout2 = new QVBoxLayout(page_2);
199 vboxLayout2->setSpacing(0);
200 vboxLayout2->setObjectName(QString::fromUtf8(str: "vboxLayout2"));
201 vboxLayout2->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
202 treeView = new QFileDialogTreeView(page_2);
203 treeView->setObjectName(QString::fromUtf8(str: "treeView"));
204
205 vboxLayout2->addWidget(treeView);
206
207 stackedWidget->addWidget(w: page_2);
208
209 vboxLayout->addWidget(stackedWidget);
210
211 splitter->addWidget(widget: frame);
212
213 gridLayout->addWidget(splitter, row: 1, column: 0, rowSpan: 1, columnSpan: 3);
214
215 fileNameLabel = new QLabel(QFileDialog);
216 fileNameLabel->setObjectName(QString::fromUtf8(str: "fileNameLabel"));
217 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred);
218 sizePolicy2.setHorizontalStretch(0);
219 sizePolicy2.setVerticalStretch(0);
220 sizePolicy2.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth());
221 fileNameLabel->setSizePolicy(sizePolicy2);
222 fileNameLabel->setMinimumSize(QSize(0, 0));
223
224 gridLayout->addWidget(fileNameLabel, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
225
226 fileNameEdit = new QFileDialogLineEdit(QFileDialog);
227 fileNameEdit->setObjectName(QString::fromUtf8(str: "fileNameEdit"));
228 QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed);
229 sizePolicy3.setHorizontalStretch(1);
230 sizePolicy3.setVerticalStretch(0);
231 sizePolicy3.setHeightForWidth(fileNameEdit->sizePolicy().hasHeightForWidth());
232 fileNameEdit->setSizePolicy(sizePolicy3);
233
234 gridLayout->addWidget(fileNameEdit, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
235
236 buttonBox = new QDialogButtonBox(QFileDialog);
237 buttonBox->setObjectName(QString::fromUtf8(str: "buttonBox"));
238 buttonBox->setOrientation(Qt::Vertical);
239 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
240
241 gridLayout->addWidget(buttonBox, row: 2, column: 2, rowSpan: 2, columnSpan: 1);
242
243 fileTypeLabel = new QLabel(QFileDialog);
244 fileTypeLabel->setObjectName(QString::fromUtf8(str: "fileTypeLabel"));
245 QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed);
246 sizePolicy4.setHorizontalStretch(0);
247 sizePolicy4.setVerticalStretch(0);
248 sizePolicy4.setHeightForWidth(fileTypeLabel->sizePolicy().hasHeightForWidth());
249 fileTypeLabel->setSizePolicy(sizePolicy4);
250
251 gridLayout->addWidget(fileTypeLabel, row: 3, column: 0, rowSpan: 1, columnSpan: 1);
252
253 fileTypeCombo = new QComboBox(QFileDialog);
254 fileTypeCombo->setObjectName(QString::fromUtf8(str: "fileTypeCombo"));
255 QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed);
256 sizePolicy5.setHorizontalStretch(0);
257 sizePolicy5.setVerticalStretch(0);
258 sizePolicy5.setHeightForWidth(fileTypeCombo->sizePolicy().hasHeightForWidth());
259 fileTypeCombo->setSizePolicy(sizePolicy5);
260
261 gridLayout->addWidget(fileTypeCombo, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
262
263 QWidget::setTabOrder(lookInCombo, backButton);
264 QWidget::setTabOrder(backButton, forwardButton);
265 QWidget::setTabOrder(forwardButton, toParentButton);
266 QWidget::setTabOrder(toParentButton, newFolderButton);
267 QWidget::setTabOrder(newFolderButton, listModeButton);
268 QWidget::setTabOrder(listModeButton, detailModeButton);
269 QWidget::setTabOrder(detailModeButton, sidebar);
270 QWidget::setTabOrder(sidebar, treeView);
271 QWidget::setTabOrder(treeView, listView);
272 QWidget::setTabOrder(listView, fileNameEdit);
273 QWidget::setTabOrder(fileNameEdit, buttonBox);
274 QWidget::setTabOrder(buttonBox, fileTypeCombo);
275
276 retranslateUi(QFileDialog);
277
278 stackedWidget->setCurrentIndex(0);
279
280
281 QMetaObject::connectSlotsByName(o: QFileDialog);
282 } // setupUi
283
284 void retranslateUi(QDialog *QFileDialog)
285 {
286 lookInLabel->setText(QCoreApplication::translate(context: "QFileDialog", key: "Look in:", disambiguation: nullptr));
287#if QT_CONFIG(tooltip)
288 backButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "Back", disambiguation: nullptr));
289#endif // QT_CONFIG(tooltip)
290#if QT_CONFIG(accessibility)
291 backButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Back", disambiguation: nullptr));
292#endif // QT_CONFIG(accessibility)
293#if QT_CONFIG(accessibility)
294 backButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Go back", disambiguation: nullptr));
295#endif // QT_CONFIG(accessibility)
296#if QT_CONFIG(shortcut)
297 backButton->setShortcut(QCoreApplication::translate(context: "QFileDialog", key: "Alt+Left", disambiguation: nullptr));
298#endif // QT_CONFIG(shortcut)
299#if QT_CONFIG(tooltip)
300 forwardButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "Forward", disambiguation: nullptr));
301#endif // QT_CONFIG(tooltip)
302#if QT_CONFIG(accessibility)
303 forwardButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Forward", disambiguation: nullptr));
304#endif // QT_CONFIG(accessibility)
305#if QT_CONFIG(accessibility)
306 forwardButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Go forward", disambiguation: nullptr));
307#endif // QT_CONFIG(accessibility)
308#if QT_CONFIG(shortcut)
309 forwardButton->setShortcut(QCoreApplication::translate(context: "QFileDialog", key: "Alt+Right", disambiguation: nullptr));
310#endif // QT_CONFIG(shortcut)
311#if QT_CONFIG(tooltip)
312 toParentButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "Parent Directory", disambiguation: nullptr));
313#endif // QT_CONFIG(tooltip)
314#if QT_CONFIG(accessibility)
315 toParentButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Parent Directory", disambiguation: nullptr));
316#endif // QT_CONFIG(accessibility)
317#if QT_CONFIG(accessibility)
318 toParentButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Go to the parent directory", disambiguation: nullptr));
319#endif // QT_CONFIG(accessibility)
320#if QT_CONFIG(shortcut)
321 toParentButton->setShortcut(QCoreApplication::translate(context: "QFileDialog", key: "Alt+Up", disambiguation: nullptr));
322#endif // QT_CONFIG(shortcut)
323#if QT_CONFIG(tooltip)
324 newFolderButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "Create New Folder", disambiguation: nullptr));
325#endif // QT_CONFIG(tooltip)
326#if QT_CONFIG(accessibility)
327 newFolderButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Create New Folder", disambiguation: nullptr));
328#endif // QT_CONFIG(accessibility)
329#if QT_CONFIG(accessibility)
330 newFolderButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Create a New Folder", disambiguation: nullptr));
331#endif // QT_CONFIG(accessibility)
332#if QT_CONFIG(tooltip)
333 listModeButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "List View", disambiguation: nullptr));
334#endif // QT_CONFIG(tooltip)
335#if QT_CONFIG(accessibility)
336 listModeButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "List View", disambiguation: nullptr));
337#endif // QT_CONFIG(accessibility)
338#if QT_CONFIG(accessibility)
339 listModeButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Change to list view mode", disambiguation: nullptr));
340#endif // QT_CONFIG(accessibility)
341#if QT_CONFIG(tooltip)
342 detailModeButton->setToolTip(QCoreApplication::translate(context: "QFileDialog", key: "Detail View", disambiguation: nullptr));
343#endif // QT_CONFIG(tooltip)
344#if QT_CONFIG(accessibility)
345 detailModeButton->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Detail View", disambiguation: nullptr));
346#endif // QT_CONFIG(accessibility)
347#if QT_CONFIG(accessibility)
348 detailModeButton->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "Change to detail view mode", disambiguation: nullptr));
349#endif // QT_CONFIG(accessibility)
350#if QT_CONFIG(accessibility)
351 sidebar->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Sidebar", disambiguation: nullptr));
352#endif // QT_CONFIG(accessibility)
353#if QT_CONFIG(accessibility)
354 sidebar->setAccessibleDescription(QCoreApplication::translate(context: "QFileDialog", key: "List of places and bookmarks", disambiguation: nullptr));
355#endif // QT_CONFIG(accessibility)
356#if QT_CONFIG(accessibility)
357 listView->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Files", disambiguation: nullptr));
358#endif // QT_CONFIG(accessibility)
359#if QT_CONFIG(accessibility)
360 treeView->setAccessibleName(QCoreApplication::translate(context: "QFileDialog", key: "Files", disambiguation: nullptr));
361#endif // QT_CONFIG(accessibility)
362 fileTypeLabel->setText(QCoreApplication::translate(context: "QFileDialog", key: "Files of type:", disambiguation: nullptr));
363 (void)QFileDialog;
364 } // retranslateUi
365
366};
367
368namespace Ui {
369 class QFileDialog: public Ui_QFileDialog {};
370} // namespace Ui
371
372QT_END_NAMESPACE
373
374#endif // UI_QFILEDIALOG_H
375

source code of qtbase/src/widgets/.uic/ui_qfiledialog.h