2011-04-27 10:05:43 +00:00
|
|
|
/*
|
|
|
|
*********************************************************************
|
|
|
|
**
|
2016-01-15 12:36:27 +00:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
|
|
**
|
2016-01-15 12:36:27 +00:00
|
|
|
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
2012-09-19 12:28:29 +00:00
|
|
|
** Commercial License Usage
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2015-01-28 08:44:43 +00:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
2016-01-15 12:36:27 +00:00
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
**
|
|
|
|
** GNU General Public License Usage
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** $QT_END_LICENSE$
|
|
|
|
**
|
|
|
|
*********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'qfiledialog.ui'
|
|
|
|
**
|
2020-04-24 12:29:29 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 6.0.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef QFILEDIALOG_H
|
|
|
|
#define QFILEDIALOG_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QComboBox>
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
|
|
#include <QtWidgets/QFrame>
|
|
|
|
#include <QtWidgets/QGridLayout>
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QSplitter>
|
|
|
|
#include <QtWidgets/QStackedWidget>
|
|
|
|
#include <QtWidgets/QToolButton>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
#include "qfiledialog_p.h"
|
|
|
|
#include "qsidebar_p.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_QFileDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QGridLayout *gridLayout;
|
|
|
|
QLabel *lookInLabel;
|
|
|
|
QHBoxLayout *hboxLayout;
|
|
|
|
QFileDialogComboBox *lookInCombo;
|
|
|
|
QToolButton *backButton;
|
|
|
|
QToolButton *forwardButton;
|
|
|
|
QToolButton *toParentButton;
|
|
|
|
QToolButton *newFolderButton;
|
|
|
|
QToolButton *listModeButton;
|
|
|
|
QToolButton *detailModeButton;
|
|
|
|
QSplitter *splitter;
|
|
|
|
QSidebar *sidebar;
|
|
|
|
QFrame *frame;
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QStackedWidget *stackedWidget;
|
|
|
|
QWidget *page;
|
|
|
|
QVBoxLayout *vboxLayout1;
|
|
|
|
QFileDialogListView *listView;
|
|
|
|
QWidget *page_2;
|
|
|
|
QVBoxLayout *vboxLayout2;
|
|
|
|
QFileDialogTreeView *treeView;
|
|
|
|
QLabel *fileNameLabel;
|
|
|
|
QFileDialogLineEdit *fileNameEdit;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
QLabel *fileTypeLabel;
|
|
|
|
QComboBox *fileTypeCombo;
|
|
|
|
|
|
|
|
void setupUi(QDialog *QFileDialog)
|
|
|
|
{
|
|
|
|
if (QFileDialog->objectName().isEmpty())
|
2018-07-13 09:02:14 +00:00
|
|
|
QFileDialog->setObjectName(QString::fromUtf8("QFileDialog"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QFileDialog->resize(521, 316);
|
|
|
|
QFileDialog->setSizeGripEnabled(true);
|
|
|
|
gridLayout = new QGridLayout(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
lookInLabel = new QLabel(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
lookInLabel->setObjectName(QString::fromUtf8("lookInLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(lookInLabel, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
hboxLayout = new QHBoxLayout();
|
2018-07-13 09:02:14 +00:00
|
|
|
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
lookInCombo = new QFileDialogComboBox(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
lookInCombo->setObjectName(QString::fromUtf8("lookInCombo"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
|
|
|
|
sizePolicy.setHorizontalStretch(1);
|
|
|
|
sizePolicy.setVerticalStretch(0);
|
|
|
|
sizePolicy.setHeightForWidth(lookInCombo->sizePolicy().hasHeightForWidth());
|
|
|
|
lookInCombo->setSizePolicy(sizePolicy);
|
|
|
|
lookInCombo->setMinimumSize(QSize(50, 0));
|
|
|
|
|
|
|
|
hboxLayout->addWidget(lookInCombo);
|
|
|
|
|
|
|
|
backButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
backButton->setObjectName(QString::fromUtf8("backButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(backButton);
|
|
|
|
|
|
|
|
forwardButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
forwardButton->setObjectName(QString::fromUtf8("forwardButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(forwardButton);
|
|
|
|
|
|
|
|
toParentButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
toParentButton->setObjectName(QString::fromUtf8("toParentButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(toParentButton);
|
|
|
|
|
|
|
|
newFolderButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
newFolderButton->setObjectName(QString::fromUtf8("newFolderButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(newFolderButton);
|
|
|
|
|
|
|
|
listModeButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
listModeButton->setObjectName(QString::fromUtf8("listModeButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(listModeButton);
|
|
|
|
|
|
|
|
detailModeButton = new QToolButton(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
detailModeButton->setObjectName(QString::fromUtf8("detailModeButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(detailModeButton);
|
|
|
|
|
|
|
|
|
|
|
|
gridLayout->addLayout(hboxLayout, 0, 1, 1, 2);
|
|
|
|
|
|
|
|
splitter = new QSplitter(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
splitter->setObjectName(QString::fromUtf8("splitter"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
|
|
|
sizePolicy1.setHorizontalStretch(0);
|
|
|
|
sizePolicy1.setVerticalStretch(0);
|
|
|
|
sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
|
|
|
|
splitter->setSizePolicy(sizePolicy1);
|
|
|
|
splitter->setOrientation(Qt::Horizontal);
|
|
|
|
sidebar = new QSidebar(splitter);
|
2018-07-13 09:02:14 +00:00
|
|
|
sidebar->setObjectName(QString::fromUtf8("sidebar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
splitter->addWidget(sidebar);
|
|
|
|
frame = new QFrame(splitter);
|
2018-07-13 09:02:14 +00:00
|
|
|
frame->setObjectName(QString::fromUtf8("frame"));
|
2011-04-27 10:05:43 +00:00
|
|
|
frame->setFrameShape(QFrame::NoFrame);
|
|
|
|
frame->setFrameShadow(QFrame::Raised);
|
|
|
|
vboxLayout = new QVBoxLayout(frame);
|
|
|
|
vboxLayout->setSpacing(0);
|
2018-07-13 09:02:14 +00:00
|
|
|
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
stackedWidget = new QStackedWidget(frame);
|
2018-07-13 09:02:14 +00:00
|
|
|
stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
page = new QWidget();
|
2018-07-13 09:02:14 +00:00
|
|
|
page->setObjectName(QString::fromUtf8("page"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout1 = new QVBoxLayout(page);
|
|
|
|
vboxLayout1->setSpacing(0);
|
2018-07-13 09:02:14 +00:00
|
|
|
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout1->setContentsMargins(0, 0, 0, 0);
|
|
|
|
listView = new QFileDialogListView(page);
|
2018-07-13 09:02:14 +00:00
|
|
|
listView->setObjectName(QString::fromUtf8("listView"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
vboxLayout1->addWidget(listView);
|
|
|
|
|
|
|
|
stackedWidget->addWidget(page);
|
|
|
|
page_2 = new QWidget();
|
2018-07-13 09:02:14 +00:00
|
|
|
page_2->setObjectName(QString::fromUtf8("page_2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout2 = new QVBoxLayout(page_2);
|
|
|
|
vboxLayout2->setSpacing(0);
|
2018-07-13 09:02:14 +00:00
|
|
|
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout2->setContentsMargins(0, 0, 0, 0);
|
|
|
|
treeView = new QFileDialogTreeView(page_2);
|
2018-07-13 09:02:14 +00:00
|
|
|
treeView->setObjectName(QString::fromUtf8("treeView"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
vboxLayout2->addWidget(treeView);
|
|
|
|
|
|
|
|
stackedWidget->addWidget(page_2);
|
|
|
|
|
|
|
|
vboxLayout->addWidget(stackedWidget);
|
|
|
|
|
|
|
|
splitter->addWidget(frame);
|
|
|
|
|
|
|
|
gridLayout->addWidget(splitter, 1, 0, 1, 3);
|
|
|
|
|
|
|
|
fileNameLabel = new QLabel(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
fileNameLabel->setObjectName(QString::fromUtf8("fileNameLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
|
|
|
sizePolicy2.setHorizontalStretch(0);
|
|
|
|
sizePolicy2.setVerticalStretch(0);
|
|
|
|
sizePolicy2.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth());
|
|
|
|
fileNameLabel->setSizePolicy(sizePolicy2);
|
|
|
|
fileNameLabel->setMinimumSize(QSize(0, 0));
|
|
|
|
|
|
|
|
gridLayout->addWidget(fileNameLabel, 2, 0, 1, 1);
|
|
|
|
|
|
|
|
fileNameEdit = new QFileDialogLineEdit(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
fileNameEdit->setObjectName(QString::fromUtf8("fileNameEdit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
|
|
sizePolicy3.setHorizontalStretch(1);
|
|
|
|
sizePolicy3.setVerticalStretch(0);
|
|
|
|
sizePolicy3.setHeightForWidth(fileNameEdit->sizePolicy().hasHeightForWidth());
|
|
|
|
fileNameEdit->setSizePolicy(sizePolicy3);
|
|
|
|
|
|
|
|
gridLayout->addWidget(fileNameEdit, 2, 1, 1, 1);
|
|
|
|
|
|
|
|
buttonBox = new QDialogButtonBox(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
buttonBox->setOrientation(Qt::Vertical);
|
|
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
|
|
|
|
|
|
|
|
gridLayout->addWidget(buttonBox, 2, 2, 2, 1);
|
|
|
|
|
|
|
|
fileTypeLabel = new QLabel(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
fileTypeLabel->setObjectName(QString::fromUtf8("fileTypeLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
|
|
|
sizePolicy4.setHorizontalStretch(0);
|
|
|
|
sizePolicy4.setVerticalStretch(0);
|
|
|
|
sizePolicy4.setHeightForWidth(fileTypeLabel->sizePolicy().hasHeightForWidth());
|
|
|
|
fileTypeLabel->setSizePolicy(sizePolicy4);
|
|
|
|
|
|
|
|
gridLayout->addWidget(fileTypeLabel, 3, 0, 1, 1);
|
|
|
|
|
|
|
|
fileTypeCombo = new QComboBox(QFileDialog);
|
2018-07-13 09:02:14 +00:00
|
|
|
fileTypeCombo->setObjectName(QString::fromUtf8("fileTypeCombo"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
|
|
sizePolicy5.setHorizontalStretch(0);
|
|
|
|
sizePolicy5.setVerticalStretch(0);
|
|
|
|
sizePolicy5.setHeightForWidth(fileTypeCombo->sizePolicy().hasHeightForWidth());
|
|
|
|
fileTypeCombo->setSizePolicy(sizePolicy5);
|
|
|
|
|
|
|
|
gridLayout->addWidget(fileTypeCombo, 3, 1, 1, 1);
|
|
|
|
|
|
|
|
QWidget::setTabOrder(lookInCombo, backButton);
|
|
|
|
QWidget::setTabOrder(backButton, forwardButton);
|
|
|
|
QWidget::setTabOrder(forwardButton, toParentButton);
|
|
|
|
QWidget::setTabOrder(toParentButton, newFolderButton);
|
|
|
|
QWidget::setTabOrder(newFolderButton, listModeButton);
|
|
|
|
QWidget::setTabOrder(listModeButton, detailModeButton);
|
|
|
|
QWidget::setTabOrder(detailModeButton, sidebar);
|
|
|
|
QWidget::setTabOrder(sidebar, listView);
|
|
|
|
QWidget::setTabOrder(listView, fileNameEdit);
|
|
|
|
QWidget::setTabOrder(fileNameEdit, fileTypeCombo);
|
|
|
|
QWidget::setTabOrder(fileTypeCombo, buttonBox);
|
|
|
|
QWidget::setTabOrder(buttonBox, treeView);
|
|
|
|
|
|
|
|
retranslateUi(QFileDialog);
|
|
|
|
|
|
|
|
stackedWidget->setCurrentIndex(0);
|
|
|
|
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(QFileDialog);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QDialog *QFileDialog)
|
|
|
|
{
|
2018-11-27 11:31:57 +00:00
|
|
|
lookInLabel->setText(QCoreApplication::translate("QFileDialog", "Look in:", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
backButton->setToolTip(QCoreApplication::translate("QFileDialog", "Back", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
forwardButton->setToolTip(QCoreApplication::translate("QFileDialog", "Forward", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
toParentButton->setToolTip(QCoreApplication::translate("QFileDialog", "Parent Directory", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
newFolderButton->setToolTip(QCoreApplication::translate("QFileDialog", "Create New Folder", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
listModeButton->setToolTip(QCoreApplication::translate("QFileDialog", "List View", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
|
|
|
#if QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
detailModeButton->setToolTip(QCoreApplication::translate("QFileDialog", "Detail View", nullptr));
|
2018-10-22 11:42:22 +00:00
|
|
|
#endif // QT_CONFIG(tooltip)
|
2018-11-27 11:31:57 +00:00
|
|
|
fileTypeLabel->setText(QCoreApplication::translate("QFileDialog", "Files of type:", nullptr));
|
2019-07-23 10:03:27 +00:00
|
|
|
(void)QFileDialog;
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class QFileDialog: public Ui_QFileDialog {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // QFILEDIALOG_H
|