| 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 6.0.0 |
| 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/QAbstractButton> |
| 55 | #include <QtWidgets/QApplication> |
| 56 | #include <QtWidgets/QComboBox> |
| 57 | #include <QtWidgets/QDialog> |
| 58 | #include <QtWidgets/QDialogButtonBox> |
| 59 | #include <QtWidgets/QFrame> |
| 60 | #include <QtWidgets/QGridLayout> |
| 61 | #include <QtWidgets/QHBoxLayout> |
| 62 | #include <QtWidgets/QHeaderView> |
| 63 | #include <QtWidgets/QLabel> |
| 64 | #include <QtWidgets/QSplitter> |
| 65 | #include <QtWidgets/QStackedWidget> |
| 66 | #include <QtWidgets/QToolButton> |
| 67 | #include <QtWidgets/QVBoxLayout> |
| 68 | #include <QtWidgets/QWidget> |
| 69 | #include "private/qfiledialog_p.h" |
| 70 | #include "private/qsidebar_p.h" |
| 71 | |
| 72 | QT_BEGIN_NAMESPACE |
| 73 | |
| 74 | class Ui_QFileDialog |
| 75 | { |
| 76 | public: |
| 77 | QGridLayout *gridLayout; |
| 78 | QLabel *lookInLabel; |
| 79 | QHBoxLayout *hboxLayout; |
| 80 | QFileDialogComboBox *lookInCombo; |
| 81 | QToolButton *backButton; |
| 82 | QToolButton *forwardButton; |
| 83 | QToolButton *toParentButton; |
| 84 | QToolButton *newFolderButton; |
| 85 | QToolButton *listModeButton; |
| 86 | QToolButton *detailModeButton; |
| 87 | QSplitter *splitter; |
| 88 | QSidebar *; |
| 89 | QFrame *frame; |
| 90 | QVBoxLayout *vboxLayout; |
| 91 | QStackedWidget *stackedWidget; |
| 92 | QWidget *page; |
| 93 | QVBoxLayout *vboxLayout1; |
| 94 | QFileDialogListView *listView; |
| 95 | QWidget *page_2; |
| 96 | QVBoxLayout *vboxLayout2; |
| 97 | QFileDialogTreeView *treeView; |
| 98 | QLabel *fileNameLabel; |
| 99 | QFileDialogLineEdit *fileNameEdit; |
| 100 | QDialogButtonBox *buttonBox; |
| 101 | QLabel *fileTypeLabel; |
| 102 | QComboBox *fileTypeCombo; |
| 103 | |
| 104 | void setupUi(QDialog *QFileDialog) |
| 105 | { |
| 106 | if (QFileDialog->objectName().isEmpty()) |
| 107 | QFileDialog->setObjectName(QString::fromUtf8("QFileDialog" )); |
| 108 | QFileDialog->resize(521, 316); |
| 109 | QFileDialog->setSizeGripEnabled(true); |
| 110 | gridLayout = new QGridLayout(QFileDialog); |
| 111 | gridLayout->setObjectName(QString::fromUtf8("gridLayout" )); |
| 112 | lookInLabel = new QLabel(QFileDialog); |
| 113 | lookInLabel->setObjectName(QString::fromUtf8("lookInLabel" )); |
| 114 | |
| 115 | gridLayout->addWidget(lookInLabel, 0, 0, 1, 1); |
| 116 | |
| 117 | hboxLayout = new QHBoxLayout(); |
| 118 | hboxLayout->setObjectName(QString::fromUtf8("hboxLayout" )); |
| 119 | lookInCombo = new QFileDialogComboBox(QFileDialog); |
| 120 | lookInCombo->setObjectName(QString::fromUtf8("lookInCombo" )); |
| 121 | QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); |
| 122 | sizePolicy.setHorizontalStretch(1); |
| 123 | sizePolicy.setVerticalStretch(0); |
| 124 | sizePolicy.setHeightForWidth(lookInCombo->sizePolicy().hasHeightForWidth()); |
| 125 | lookInCombo->setSizePolicy(sizePolicy); |
| 126 | lookInCombo->setMinimumSize(QSize(50, 0)); |
| 127 | |
| 128 | hboxLayout->addWidget(lookInCombo); |
| 129 | |
| 130 | backButton = new QToolButton(QFileDialog); |
| 131 | backButton->setObjectName(QString::fromUtf8("backButton" )); |
| 132 | |
| 133 | hboxLayout->addWidget(backButton); |
| 134 | |
| 135 | forwardButton = new QToolButton(QFileDialog); |
| 136 | forwardButton->setObjectName(QString::fromUtf8("forwardButton" )); |
| 137 | |
| 138 | hboxLayout->addWidget(forwardButton); |
| 139 | |
| 140 | toParentButton = new QToolButton(QFileDialog); |
| 141 | toParentButton->setObjectName(QString::fromUtf8("toParentButton" )); |
| 142 | |
| 143 | hboxLayout->addWidget(toParentButton); |
| 144 | |
| 145 | newFolderButton = new QToolButton(QFileDialog); |
| 146 | newFolderButton->setObjectName(QString::fromUtf8("newFolderButton" )); |
| 147 | |
| 148 | hboxLayout->addWidget(newFolderButton); |
| 149 | |
| 150 | listModeButton = new QToolButton(QFileDialog); |
| 151 | listModeButton->setObjectName(QString::fromUtf8("listModeButton" )); |
| 152 | |
| 153 | hboxLayout->addWidget(listModeButton); |
| 154 | |
| 155 | detailModeButton = new QToolButton(QFileDialog); |
| 156 | detailModeButton->setObjectName(QString::fromUtf8("detailModeButton" )); |
| 157 | |
| 158 | hboxLayout->addWidget(detailModeButton); |
| 159 | |
| 160 | |
| 161 | gridLayout->addLayout(hboxLayout, 0, 1, 1, 2); |
| 162 | |
| 163 | splitter = new QSplitter(QFileDialog); |
| 164 | splitter->setObjectName(QString::fromUtf8("splitter" )); |
| 165 | QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding); |
| 166 | sizePolicy1.setHorizontalStretch(0); |
| 167 | sizePolicy1.setVerticalStretch(0); |
| 168 | sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth()); |
| 169 | splitter->setSizePolicy(sizePolicy1); |
| 170 | splitter->setOrientation(Qt::Horizontal); |
| 171 | splitter->setChildrenCollapsible(false); |
| 172 | sidebar = new QSidebar(splitter); |
| 173 | sidebar->setObjectName(QString::fromUtf8("sidebar" )); |
| 174 | splitter->addWidget(sidebar); |
| 175 | frame = new QFrame(splitter); |
| 176 | frame->setObjectName(QString::fromUtf8("frame" )); |
| 177 | frame->setFrameShape(QFrame::NoFrame); |
| 178 | frame->setFrameShadow(QFrame::Raised); |
| 179 | vboxLayout = new QVBoxLayout(frame); |
| 180 | vboxLayout->setSpacing(0); |
| 181 | vboxLayout->setObjectName(QString::fromUtf8("vboxLayout" )); |
| 182 | vboxLayout->setContentsMargins(0, 0, 0, 0); |
| 183 | stackedWidget = new QStackedWidget(frame); |
| 184 | stackedWidget->setObjectName(QString::fromUtf8("stackedWidget" )); |
| 185 | page = new QWidget(); |
| 186 | page->setObjectName(QString::fromUtf8("page" )); |
| 187 | vboxLayout1 = new QVBoxLayout(page); |
| 188 | vboxLayout1->setSpacing(0); |
| 189 | vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1" )); |
| 190 | vboxLayout1->setContentsMargins(0, 0, 0, 0); |
| 191 | listView = new QFileDialogListView(page); |
| 192 | listView->setObjectName(QString::fromUtf8("listView" )); |
| 193 | |
| 194 | vboxLayout1->addWidget(listView); |
| 195 | |
| 196 | stackedWidget->addWidget(page); |
| 197 | page_2 = new QWidget(); |
| 198 | page_2->setObjectName(QString::fromUtf8("page_2" )); |
| 199 | vboxLayout2 = new QVBoxLayout(page_2); |
| 200 | vboxLayout2->setSpacing(0); |
| 201 | vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2" )); |
| 202 | vboxLayout2->setContentsMargins(0, 0, 0, 0); |
| 203 | treeView = new QFileDialogTreeView(page_2); |
| 204 | treeView->setObjectName(QString::fromUtf8("treeView" )); |
| 205 | |
| 206 | vboxLayout2->addWidget(treeView); |
| 207 | |
| 208 | stackedWidget->addWidget(page_2); |
| 209 | |
| 210 | vboxLayout->addWidget(stackedWidget); |
| 211 | |
| 212 | splitter->addWidget(frame); |
| 213 | |
| 214 | gridLayout->addWidget(splitter, 1, 0, 1, 3); |
| 215 | |
| 216 | fileNameLabel = new QLabel(QFileDialog); |
| 217 | fileNameLabel->setObjectName(QString::fromUtf8("fileNameLabel" )); |
| 218 | QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred); |
| 219 | sizePolicy2.setHorizontalStretch(0); |
| 220 | sizePolicy2.setVerticalStretch(0); |
| 221 | sizePolicy2.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth()); |
| 222 | fileNameLabel->setSizePolicy(sizePolicy2); |
| 223 | fileNameLabel->setMinimumSize(QSize(0, 0)); |
| 224 | |
| 225 | gridLayout->addWidget(fileNameLabel, 2, 0, 1, 1); |
| 226 | |
| 227 | fileNameEdit = new QFileDialogLineEdit(QFileDialog); |
| 228 | fileNameEdit->setObjectName(QString::fromUtf8("fileNameEdit" )); |
| 229 | QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed); |
| 230 | sizePolicy3.setHorizontalStretch(1); |
| 231 | sizePolicy3.setVerticalStretch(0); |
| 232 | sizePolicy3.setHeightForWidth(fileNameEdit->sizePolicy().hasHeightForWidth()); |
| 233 | fileNameEdit->setSizePolicy(sizePolicy3); |
| 234 | |
| 235 | gridLayout->addWidget(fileNameEdit, 2, 1, 1, 1); |
| 236 | |
| 237 | buttonBox = new QDialogButtonBox(QFileDialog); |
| 238 | buttonBox->setObjectName(QString::fromUtf8("buttonBox" )); |
| 239 | buttonBox->setOrientation(Qt::Vertical); |
| 240 | buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
| 241 | |
| 242 | gridLayout->addWidget(buttonBox, 2, 2, 2, 1); |
| 243 | |
| 244 | fileTypeLabel = new QLabel(QFileDialog); |
| 245 | fileTypeLabel->setObjectName(QString::fromUtf8("fileTypeLabel" )); |
| 246 | QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed); |
| 247 | sizePolicy4.setHorizontalStretch(0); |
| 248 | sizePolicy4.setVerticalStretch(0); |
| 249 | sizePolicy4.setHeightForWidth(fileTypeLabel->sizePolicy().hasHeightForWidth()); |
| 250 | fileTypeLabel->setSizePolicy(sizePolicy4); |
| 251 | |
| 252 | gridLayout->addWidget(fileTypeLabel, 3, 0, 1, 1); |
| 253 | |
| 254 | fileTypeCombo = new QComboBox(QFileDialog); |
| 255 | fileTypeCombo->setObjectName(QString::fromUtf8("fileTypeCombo" )); |
| 256 | QSizePolicy sizePolicy5(QSizePolicy::Expanding, QSizePolicy::Fixed); |
| 257 | sizePolicy5.setHorizontalStretch(0); |
| 258 | sizePolicy5.setVerticalStretch(0); |
| 259 | sizePolicy5.setHeightForWidth(fileTypeCombo->sizePolicy().hasHeightForWidth()); |
| 260 | fileTypeCombo->setSizePolicy(sizePolicy5); |
| 261 | |
| 262 | gridLayout->addWidget(fileTypeCombo, 3, 1, 1, 1); |
| 263 | |
| 264 | QWidget::setTabOrder(lookInCombo, backButton); |
| 265 | QWidget::setTabOrder(backButton, forwardButton); |
| 266 | QWidget::setTabOrder(forwardButton, toParentButton); |
| 267 | QWidget::setTabOrder(toParentButton, newFolderButton); |
| 268 | QWidget::setTabOrder(newFolderButton, listModeButton); |
| 269 | QWidget::setTabOrder(listModeButton, detailModeButton); |
| 270 | QWidget::setTabOrder(detailModeButton, sidebar); |
| 271 | QWidget::setTabOrder(sidebar, treeView); |
| 272 | QWidget::setTabOrder(treeView, listView); |
| 273 | QWidget::setTabOrder(listView, fileNameEdit); |
| 274 | QWidget::setTabOrder(fileNameEdit, buttonBox); |
| 275 | QWidget::setTabOrder(buttonBox, fileTypeCombo); |
| 276 | |
| 277 | retranslateUi(QFileDialog); |
| 278 | |
| 279 | stackedWidget->setCurrentIndex(0); |
| 280 | |
| 281 | |
| 282 | QMetaObject::connectSlotsByName(QFileDialog); |
| 283 | } // setupUi |
| 284 | |
| 285 | void retranslateUi(QDialog *QFileDialog) |
| 286 | { |
| 287 | lookInLabel->setText(QCoreApplication::translate("QFileDialog" , "Look in:" , nullptr)); |
| 288 | #if QT_CONFIG(tooltip) |
| 289 | backButton->setToolTip(QCoreApplication::translate("QFileDialog" , "Back" , nullptr)); |
| 290 | #endif // QT_CONFIG(tooltip) |
| 291 | #if QT_CONFIG(accessibility) |
| 292 | backButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Back" , nullptr)); |
| 293 | #endif // QT_CONFIG(accessibility) |
| 294 | #if QT_CONFIG(accessibility) |
| 295 | backButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Go back" , nullptr)); |
| 296 | #endif // QT_CONFIG(accessibility) |
| 297 | #if QT_CONFIG(shortcut) |
| 298 | backButton->setShortcut(QCoreApplication::translate("QFileDialog" , "Alt+Left" , nullptr)); |
| 299 | #endif // QT_CONFIG(shortcut) |
| 300 | #if QT_CONFIG(tooltip) |
| 301 | forwardButton->setToolTip(QCoreApplication::translate("QFileDialog" , "Forward" , nullptr)); |
| 302 | #endif // QT_CONFIG(tooltip) |
| 303 | #if QT_CONFIG(accessibility) |
| 304 | forwardButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Forward" , nullptr)); |
| 305 | #endif // QT_CONFIG(accessibility) |
| 306 | #if QT_CONFIG(accessibility) |
| 307 | forwardButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Go forward" , nullptr)); |
| 308 | #endif // QT_CONFIG(accessibility) |
| 309 | #if QT_CONFIG(shortcut) |
| 310 | forwardButton->setShortcut(QCoreApplication::translate("QFileDialog" , "Alt+Right" , nullptr)); |
| 311 | #endif // QT_CONFIG(shortcut) |
| 312 | #if QT_CONFIG(tooltip) |
| 313 | toParentButton->setToolTip(QCoreApplication::translate("QFileDialog" , "Parent Directory" , nullptr)); |
| 314 | #endif // QT_CONFIG(tooltip) |
| 315 | #if QT_CONFIG(accessibility) |
| 316 | toParentButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Parent Directory" , nullptr)); |
| 317 | #endif // QT_CONFIG(accessibility) |
| 318 | #if QT_CONFIG(accessibility) |
| 319 | toParentButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Go to the parent directory" , nullptr)); |
| 320 | #endif // QT_CONFIG(accessibility) |
| 321 | #if QT_CONFIG(shortcut) |
| 322 | toParentButton->setShortcut(QCoreApplication::translate("QFileDialog" , "Alt+Up" , nullptr)); |
| 323 | #endif // QT_CONFIG(shortcut) |
| 324 | #if QT_CONFIG(tooltip) |
| 325 | newFolderButton->setToolTip(QCoreApplication::translate("QFileDialog" , "Create New Folder" , nullptr)); |
| 326 | #endif // QT_CONFIG(tooltip) |
| 327 | #if QT_CONFIG(accessibility) |
| 328 | newFolderButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Create New Folder" , nullptr)); |
| 329 | #endif // QT_CONFIG(accessibility) |
| 330 | #if QT_CONFIG(accessibility) |
| 331 | newFolderButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Create a New Folder" , nullptr)); |
| 332 | #endif // QT_CONFIG(accessibility) |
| 333 | #if QT_CONFIG(tooltip) |
| 334 | listModeButton->setToolTip(QCoreApplication::translate("QFileDialog" , "List View" , nullptr)); |
| 335 | #endif // QT_CONFIG(tooltip) |
| 336 | #if QT_CONFIG(accessibility) |
| 337 | listModeButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "List View" , nullptr)); |
| 338 | #endif // QT_CONFIG(accessibility) |
| 339 | #if QT_CONFIG(accessibility) |
| 340 | listModeButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Change to list view mode" , nullptr)); |
| 341 | #endif // QT_CONFIG(accessibility) |
| 342 | #if QT_CONFIG(tooltip) |
| 343 | detailModeButton->setToolTip(QCoreApplication::translate("QFileDialog" , "Detail View" , nullptr)); |
| 344 | #endif // QT_CONFIG(tooltip) |
| 345 | #if QT_CONFIG(accessibility) |
| 346 | detailModeButton->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Detail View" , nullptr)); |
| 347 | #endif // QT_CONFIG(accessibility) |
| 348 | #if QT_CONFIG(accessibility) |
| 349 | detailModeButton->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "Change to detail view mode" , nullptr)); |
| 350 | #endif // QT_CONFIG(accessibility) |
| 351 | #if QT_CONFIG(accessibility) |
| 352 | sidebar->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Sidebar" , nullptr)); |
| 353 | #endif // QT_CONFIG(accessibility) |
| 354 | #if QT_CONFIG(accessibility) |
| 355 | sidebar->setAccessibleDescription(QCoreApplication::translate("QFileDialog" , "List of places and bookmarks" , nullptr)); |
| 356 | #endif // QT_CONFIG(accessibility) |
| 357 | #if QT_CONFIG(accessibility) |
| 358 | listView->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Files" , nullptr)); |
| 359 | #endif // QT_CONFIG(accessibility) |
| 360 | #if QT_CONFIG(accessibility) |
| 361 | treeView->setAccessibleName(QCoreApplication::translate("QFileDialog" , "Files" , nullptr)); |
| 362 | #endif // QT_CONFIG(accessibility) |
| 363 | fileTypeLabel->setText(QCoreApplication::translate("QFileDialog" , "Files of type:" , nullptr)); |
| 364 | (void)QFileDialog; |
| 365 | } // retranslateUi |
| 366 | |
| 367 | }; |
| 368 | |
| 369 | namespace Ui { |
| 370 | class QFileDialog: public Ui_QFileDialog {}; |
| 371 | } // namespace Ui |
| 372 | |
| 373 | QT_END_NAMESPACE |
| 374 | |
| 375 | #endif // UI_QFILEDIALOG_H |
| 376 | |