VultureChecker/Ui_VultureCheckerDialog.py

Sat, 26 Oct 2024 12:25:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Oct 2024 12:25:21 +0200
branch
eric7
changeset 121
9b0f92e34a3f
permissions
-rw-r--r--

- changed use of modal dialogs to ensure a valid parent
- changed to new style header

# Form implementation generated from reading ui file 'VultureChecker/VultureCheckerDialog.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_VultureCheckerDialog(object):
    def setupUi(self, VultureCheckerDialog):
        VultureCheckerDialog.setObjectName("VultureCheckerDialog")
        VultureCheckerDialog.resize(832, 587)
        VultureCheckerDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtWidgets.QVBoxLayout(VultureCheckerDialog)
        self.verticalLayout.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.filterFrame = QtWidgets.QFrame(parent=VultureCheckerDialog)
        self.filterFrame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.filterFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
        self.filterFrame.setObjectName("filterFrame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.filterFrame)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_2 = QtWidgets.QLabel(parent=self.filterFrame)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.excludeFilesEdit = QtWidgets.QLineEdit(parent=self.filterFrame)
        self.excludeFilesEdit.setClearButtonEnabled(True)
        self.excludeFilesEdit.setObjectName("excludeFilesEdit")
        self.horizontalLayout.addWidget(self.excludeFilesEdit)
        self.line = QtWidgets.QFrame(parent=self.filterFrame)
        self.line.setLineWidth(2)
        self.line.setFrameShape(QtWidgets.QFrame.Shape.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout.addWidget(self.line)
        self.startButton = QtWidgets.QPushButton(parent=self.filterFrame)
        self.startButton.setObjectName("startButton")
        self.horizontalLayout.addWidget(self.startButton)
        self.verticalLayout.addWidget(self.filterFrame)
        self.line_2 = QtWidgets.QFrame(parent=VultureCheckerDialog)
        self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line_2.setObjectName("line_2")
        self.verticalLayout.addWidget(self.line_2)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(parent=VultureCheckerDialog)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.typeFilterComboBox = QtWidgets.QComboBox(parent=VultureCheckerDialog)
        self.typeFilterComboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents)
        self.typeFilterComboBox.setObjectName("typeFilterComboBox")
        self.horizontalLayout_2.addWidget(self.typeFilterComboBox)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.resultList = QtWidgets.QTreeWidget(parent=VultureCheckerDialog)
        self.resultList.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu)
        self.resultList.setAlternatingRowColors(True)
        self.resultList.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
        self.resultList.setObjectName("resultList")
        self.verticalLayout.addWidget(self.resultList)
        self.checkProgress = QtWidgets.QProgressBar(parent=VultureCheckerDialog)
        self.checkProgress.setProperty("value", 0)
        self.checkProgress.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.checkProgress.setObjectName("checkProgress")
        self.verticalLayout.addWidget(self.checkProgress)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=VultureCheckerDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Close)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(VultureCheckerDialog)
        QtCore.QMetaObject.connectSlotsByName(VultureCheckerDialog)
        VultureCheckerDialog.setTabOrder(self.startButton, self.excludeFilesEdit)
        VultureCheckerDialog.setTabOrder(self.excludeFilesEdit, self.typeFilterComboBox)
        VultureCheckerDialog.setTabOrder(self.typeFilterComboBox, self.resultList)

    def retranslateUi(self, VultureCheckerDialog):
        _translate = QtCore.QCoreApplication.translate
        VultureCheckerDialog.setWindowTitle(_translate("VultureCheckerDialog", "Unused Code Checker"))
        VultureCheckerDialog.setWhatsThis(_translate("VultureCheckerDialog", "<b>Unused Code Checker</b>\n"
"<p>This dialog shows unused classes, function, variables, attributes and properties. These are determined through a static analysis. False reports can be added to a whitelist through the context menu.</p>"))
        self.label_2.setText(_translate("VultureCheckerDialog", "Exclude Files:"))
        self.excludeFilesEdit.setToolTip(_translate("VultureCheckerDialog", "Enter filename patterns of files to be excluded separated by a comma"))
        self.startButton.setToolTip(_translate("VultureCheckerDialog", "Press to start the check"))
        self.startButton.setText(_translate("VultureCheckerDialog", "Start"))
        self.label.setText(_translate("VultureCheckerDialog", "Filter by Type:"))
        self.typeFilterComboBox.setToolTip(_translate("VultureCheckerDialog", "Select the type of entries to be shown."))
        self.resultList.headerItem().setText(0, _translate("VultureCheckerDialog", "Line"))
        self.resultList.headerItem().setText(1, _translate("VultureCheckerDialog", "Name"))
        self.resultList.headerItem().setText(2, _translate("VultureCheckerDialog", "Confidence"))
        self.resultList.headerItem().setText(3, _translate("VultureCheckerDialog", "Type"))
        self.checkProgress.setToolTip(_translate("VultureCheckerDialog", "Shows the progress of the check"))
        self.checkProgress.setFormat(_translate("VultureCheckerDialog", "%v/%m Files"))

eric ide

mercurial