8d148b639b
change to src layout
180 lines
10 KiB
Python
180 lines
10 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'resources/_ui/qfiledialog.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.12.3
|
|
#
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_QFileDialog(object):
|
|
def setupUi(self, QFileDialog):
|
|
QFileDialog.setObjectName("QFileDialog")
|
|
QFileDialog.resize(521, 316)
|
|
QFileDialog.setSizeGripEnabled(True)
|
|
self.gridlayout = QtWidgets.QGridLayout(QFileDialog)
|
|
self.gridlayout.setObjectName("gridlayout")
|
|
self.lookInLabel = QtWidgets.QLabel(QFileDialog)
|
|
self.lookInLabel.setObjectName("lookInLabel")
|
|
self.gridlayout.addWidget(self.lookInLabel, 0, 0, 1, 1)
|
|
self.hboxlayout = QtWidgets.QHBoxLayout()
|
|
self.hboxlayout.setObjectName("hboxlayout")
|
|
self.lookInCombo = QtWidgets.QComboBox(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(1)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.lookInCombo.sizePolicy().hasHeightForWidth())
|
|
self.lookInCombo.setSizePolicy(sizePolicy)
|
|
self.lookInCombo.setMinimumSize(QtCore.QSize(50, 0))
|
|
self.lookInCombo.setObjectName("lookInCombo")
|
|
self.hboxlayout.addWidget(self.lookInCombo)
|
|
self.backButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.backButton.setObjectName("backButton")
|
|
self.hboxlayout.addWidget(self.backButton)
|
|
self.forwardButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.forwardButton.setObjectName("forwardButton")
|
|
self.hboxlayout.addWidget(self.forwardButton)
|
|
self.toParentButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.toParentButton.setObjectName("toParentButton")
|
|
self.hboxlayout.addWidget(self.toParentButton)
|
|
self.newFolderButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.newFolderButton.setObjectName("newFolderButton")
|
|
self.hboxlayout.addWidget(self.newFolderButton)
|
|
self.listModeButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.listModeButton.setObjectName("listModeButton")
|
|
self.hboxlayout.addWidget(self.listModeButton)
|
|
self.detailModeButton = QtWidgets.QToolButton(QFileDialog)
|
|
self.detailModeButton.setObjectName("detailModeButton")
|
|
self.hboxlayout.addWidget(self.detailModeButton)
|
|
self.gridlayout.addLayout(self.hboxlayout, 0, 1, 1, 2)
|
|
self.splitter = QtWidgets.QSplitter(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
|
|
self.splitter.setSizePolicy(sizePolicy)
|
|
self.splitter.setOrientation(QtCore.Qt.Horizontal)
|
|
self.splitter.setChildrenCollapsible(False)
|
|
self.splitter.setObjectName("splitter")
|
|
self.sidebar = QtWidgets.QListWidget(self.splitter)
|
|
self.sidebar.setObjectName("sidebar")
|
|
self.frame = QtWidgets.QFrame(self.splitter)
|
|
self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
|
|
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.frame.setObjectName("frame")
|
|
self.vboxlayout = QtWidgets.QVBoxLayout(self.frame)
|
|
self.vboxlayout.setContentsMargins(0, 0, 0, 0)
|
|
self.vboxlayout.setSpacing(0)
|
|
self.vboxlayout.setObjectName("vboxlayout")
|
|
self.stackedWidget = QtWidgets.QStackedWidget(self.frame)
|
|
self.stackedWidget.setObjectName("stackedWidget")
|
|
self.page = QtWidgets.QWidget()
|
|
self.page.setObjectName("page")
|
|
self.vboxlayout1 = QtWidgets.QVBoxLayout(self.page)
|
|
self.vboxlayout1.setContentsMargins(0, 0, 0, 0)
|
|
self.vboxlayout1.setSpacing(0)
|
|
self.vboxlayout1.setObjectName("vboxlayout1")
|
|
self.listView = QtWidgets.QListView(self.page)
|
|
self.listView.setObjectName("listView")
|
|
self.vboxlayout1.addWidget(self.listView)
|
|
self.stackedWidget.addWidget(self.page)
|
|
self.page_2 = QtWidgets.QWidget()
|
|
self.page_2.setObjectName("page_2")
|
|
self.vboxlayout2 = QtWidgets.QVBoxLayout(self.page_2)
|
|
self.vboxlayout2.setContentsMargins(0, 0, 0, 0)
|
|
self.vboxlayout2.setSpacing(0)
|
|
self.vboxlayout2.setObjectName("vboxlayout2")
|
|
self.treeView = QtWidgets.QTreeView(self.page_2)
|
|
self.treeView.setObjectName("treeView")
|
|
self.vboxlayout2.addWidget(self.treeView)
|
|
self.stackedWidget.addWidget(self.page_2)
|
|
self.vboxlayout.addWidget(self.stackedWidget)
|
|
self.gridlayout.addWidget(self.splitter, 1, 0, 1, 3)
|
|
self.fileNameLabel = QtWidgets.QLabel(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fileNameLabel.sizePolicy().hasHeightForWidth())
|
|
self.fileNameLabel.setSizePolicy(sizePolicy)
|
|
self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 0))
|
|
self.fileNameLabel.setObjectName("fileNameLabel")
|
|
self.gridlayout.addWidget(self.fileNameLabel, 2, 0, 1, 1)
|
|
self.fileNameEdit = QtWidgets.QLineEdit(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(1)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fileNameEdit.sizePolicy().hasHeightForWidth())
|
|
self.fileNameEdit.setSizePolicy(sizePolicy)
|
|
self.fileNameEdit.setObjectName("fileNameEdit")
|
|
self.gridlayout.addWidget(self.fileNameEdit, 2, 1, 1, 1)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(QFileDialog)
|
|
self.buttonBox.setOrientation(QtCore.Qt.Vertical)
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
|
self.buttonBox.setObjectName("buttonBox")
|
|
self.gridlayout.addWidget(self.buttonBox, 2, 2, 2, 1)
|
|
self.fileTypeLabel = QtWidgets.QLabel(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fileTypeLabel.sizePolicy().hasHeightForWidth())
|
|
self.fileTypeLabel.setSizePolicy(sizePolicy)
|
|
self.fileTypeLabel.setObjectName("fileTypeLabel")
|
|
self.gridlayout.addWidget(self.fileTypeLabel, 3, 0, 1, 1)
|
|
self.fileTypeCombo = QtWidgets.QComboBox(QFileDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fileTypeCombo.sizePolicy().hasHeightForWidth())
|
|
self.fileTypeCombo.setSizePolicy(sizePolicy)
|
|
self.fileTypeCombo.setObjectName("fileTypeCombo")
|
|
self.gridlayout.addWidget(self.fileTypeCombo, 3, 1, 1, 1)
|
|
|
|
self.retranslateUi(QFileDialog)
|
|
self.stackedWidget.setCurrentIndex(0)
|
|
QtCore.QMetaObject.connectSlotsByName(QFileDialog)
|
|
QFileDialog.setTabOrder(self.lookInCombo, self.backButton)
|
|
QFileDialog.setTabOrder(self.backButton, self.forwardButton)
|
|
QFileDialog.setTabOrder(self.forwardButton, self.toParentButton)
|
|
QFileDialog.setTabOrder(self.toParentButton, self.newFolderButton)
|
|
QFileDialog.setTabOrder(self.newFolderButton, self.listModeButton)
|
|
QFileDialog.setTabOrder(self.listModeButton, self.detailModeButton)
|
|
QFileDialog.setTabOrder(self.detailModeButton, self.sidebar)
|
|
QFileDialog.setTabOrder(self.sidebar, self.treeView)
|
|
QFileDialog.setTabOrder(self.treeView, self.listView)
|
|
QFileDialog.setTabOrder(self.listView, self.fileNameEdit)
|
|
QFileDialog.setTabOrder(self.fileNameEdit, self.buttonBox)
|
|
QFileDialog.setTabOrder(self.buttonBox, self.fileTypeCombo)
|
|
|
|
def retranslateUi(self, QFileDialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
self.lookInLabel.setText(_translate("QFileDialog", "Look in:"))
|
|
self.backButton.setToolTip(_translate("QFileDialog", "Back"))
|
|
self.backButton.setAccessibleName(_translate("QFileDialog", "Back"))
|
|
self.backButton.setAccessibleDescription(_translate("QFileDialog", "Go back"))
|
|
self.backButton.setShortcut(_translate("QFileDialog", "Alt+Left"))
|
|
self.forwardButton.setToolTip(_translate("QFileDialog", "Forward"))
|
|
self.forwardButton.setAccessibleName(_translate("QFileDialog", "Forward"))
|
|
self.forwardButton.setAccessibleDescription(_translate("QFileDialog", "Go forward"))
|
|
self.forwardButton.setShortcut(_translate("QFileDialog", "Alt+Right"))
|
|
self.toParentButton.setToolTip(_translate("QFileDialog", "Parent Directory"))
|
|
self.toParentButton.setAccessibleName(_translate("QFileDialog", "Parent Directory"))
|
|
self.toParentButton.setAccessibleDescription(_translate("QFileDialog", "Go to the parent directory"))
|
|
self.toParentButton.setShortcut(_translate("QFileDialog", "Alt+Up"))
|
|
self.newFolderButton.setToolTip(_translate("QFileDialog", "Create New Folder"))
|
|
self.newFolderButton.setAccessibleName(_translate("QFileDialog", "Create New Folder"))
|
|
self.newFolderButton.setAccessibleDescription(_translate("QFileDialog", "Create a New Folder"))
|
|
self.listModeButton.setToolTip(_translate("QFileDialog", "List View"))
|
|
self.listModeButton.setAccessibleName(_translate("QFileDialog", "List View"))
|
|
self.listModeButton.setAccessibleDescription(_translate("QFileDialog", "Change to list view mode"))
|
|
self.detailModeButton.setToolTip(_translate("QFileDialog", "Detail View"))
|
|
self.detailModeButton.setAccessibleName(_translate("QFileDialog", "Detail View"))
|
|
self.detailModeButton.setAccessibleDescription(_translate("QFileDialog", "Change to detail view mode"))
|
|
self.sidebar.setAccessibleName(_translate("QFileDialog", "Sidebar"))
|
|
self.sidebar.setAccessibleDescription(_translate("QFileDialog", "List of places and bookmarks"))
|
|
self.listView.setAccessibleName(_translate("QFileDialog", "Files"))
|
|
self.treeView.setAccessibleName(_translate("QFileDialog", "Files"))
|
|
self.fileTypeLabel.setText(_translate("QFileDialog", "Files of type:"))
|