2011-04-27 10:05:43 +00:00
|
|
|
/*
|
|
|
|
*********************************************************************
|
|
|
|
**
|
2014-08-21 13:51:22 +00:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-09-19 12:28:29 +00:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
|
|
**
|
2014-08-21 13:51:22 +00:00
|
|
|
** $QT_BEGIN_LICENSE:LGPL21$
|
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
|
2014-08-21 13:51:22 +00:00
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
2012-09-19 12:28:29 +00:00
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
|
|
|
**
|
2011-04-27 10:05:43 +00:00
|
|
|
** GNU Lesser General Public License Usage
|
2012-09-19 12:28:29 +00:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
2014-08-21 13:51:22 +00:00
|
|
|
** General Public License version 2.1 or version 3 as published by the Free
|
|
|
|
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
|
|
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
|
|
** following information to ensure the GNU Lesser General Public License
|
|
|
|
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2012-09-19 12:28:29 +00:00
|
|
|
**
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
2014-08-21 13:51:22 +00:00
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2011-04-27 10:05:43 +00:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
**
|
|
|
|
** $QT_END_LICENSE$
|
|
|
|
**
|
|
|
|
*********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'qfiledialog.ui'
|
|
|
|
**
|
2012-12-13 12:48:18 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.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/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#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())
|
2011-12-11 15:55:01 +00:00
|
|
|
QFileDialog->setObjectName(QStringLiteral("QFileDialog"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QFileDialog->resize(521, 316);
|
|
|
|
QFileDialog->setSizeGripEnabled(true);
|
|
|
|
gridLayout = new QGridLayout(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
lookInLabel = new QLabel(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
lookInLabel->setObjectName(QStringLiteral("lookInLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(lookInLabel, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
hboxLayout = new QHBoxLayout();
|
2011-12-11 15:55:01 +00:00
|
|
|
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
lookInCombo = new QFileDialogComboBox(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
lookInCombo->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
backButton->setObjectName(QStringLiteral("backButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(backButton);
|
|
|
|
|
|
|
|
forwardButton = new QToolButton(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
forwardButton->setObjectName(QStringLiteral("forwardButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(forwardButton);
|
|
|
|
|
|
|
|
toParentButton = new QToolButton(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
toParentButton->setObjectName(QStringLiteral("toParentButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(toParentButton);
|
|
|
|
|
|
|
|
newFolderButton = new QToolButton(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
newFolderButton->setObjectName(QStringLiteral("newFolderButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(newFolderButton);
|
|
|
|
|
|
|
|
listModeButton = new QToolButton(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
listModeButton->setObjectName(QStringLiteral("listModeButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(listModeButton);
|
|
|
|
|
|
|
|
detailModeButton = new QToolButton(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
detailModeButton->setObjectName(QStringLiteral("detailModeButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(detailModeButton);
|
|
|
|
|
|
|
|
|
|
|
|
gridLayout->addLayout(hboxLayout, 0, 1, 1, 2);
|
|
|
|
|
|
|
|
splitter = new QSplitter(QFileDialog);
|
2011-12-11 15:55:01 +00:00
|
|
|
splitter->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
sidebar->setObjectName(QStringLiteral("sidebar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
splitter->addWidget(sidebar);
|
|
|
|
frame = new QFrame(splitter);
|
2011-12-11 15:55:01 +00:00
|
|
|
frame->setObjectName(QStringLiteral("frame"));
|
2011-04-27 10:05:43 +00:00
|
|
|
frame->setFrameShape(QFrame::NoFrame);
|
|
|
|
frame->setFrameShadow(QFrame::Raised);
|
|
|
|
vboxLayout = new QVBoxLayout(frame);
|
|
|
|
vboxLayout->setSpacing(0);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
stackedWidget = new QStackedWidget(frame);
|
2011-12-11 15:55:01 +00:00
|
|
|
stackedWidget->setObjectName(QStringLiteral("stackedWidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
page = new QWidget();
|
2011-12-11 15:55:01 +00:00
|
|
|
page->setObjectName(QStringLiteral("page"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout1 = new QVBoxLayout(page);
|
|
|
|
vboxLayout1->setSpacing(0);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout1->setObjectName(QStringLiteral("vboxLayout1"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout1->setContentsMargins(0, 0, 0, 0);
|
|
|
|
listView = new QFileDialogListView(page);
|
2011-12-11 15:55:01 +00:00
|
|
|
listView->setObjectName(QStringLiteral("listView"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
vboxLayout1->addWidget(listView);
|
|
|
|
|
|
|
|
stackedWidget->addWidget(page);
|
|
|
|
page_2 = new QWidget();
|
2011-12-11 15:55:01 +00:00
|
|
|
page_2->setObjectName(QStringLiteral("page_2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout2 = new QVBoxLayout(page_2);
|
|
|
|
vboxLayout2->setSpacing(0);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout2->setObjectName(QStringLiteral("vboxLayout2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout2->setContentsMargins(0, 0, 0, 0);
|
|
|
|
treeView = new QFileDialogTreeView(page_2);
|
2011-12-11 15:55:01 +00:00
|
|
|
treeView->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
fileNameLabel->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
fileNameEdit->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
buttonBox->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
fileTypeLabel->setObjectName(QStringLiteral("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);
|
2011-12-11 15:55:01 +00:00
|
|
|
fileTypeCombo->setObjectName(QStringLiteral("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)
|
|
|
|
{
|
2012-05-17 00:37:23 +00:00
|
|
|
lookInLabel->setText(QApplication::translate("QFileDialog", "Look in:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
backButton->setToolTip(QApplication::translate("QFileDialog", "Back", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
forwardButton->setToolTip(QApplication::translate("QFileDialog", "Forward", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
toParentButton->setToolTip(QApplication::translate("QFileDialog", "Parent Directory", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
newFolderButton->setToolTip(QApplication::translate("QFileDialog", "Create New Folder", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
listModeButton->setToolTip(QApplication::translate("QFileDialog", "List View", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
detailModeButton->setToolTip(QApplication::translate("QFileDialog", "Detail View", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
fileTypeLabel->setText(QApplication::translate("QFileDialog", "Files of type:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
Q_UNUSED(QFileDialog);
|
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class QFileDialog: public Ui_QFileDialog {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // QFILEDIALOG_H
|