Converted the header to the new style. eric7 release-10.3.3

Sat, 26 Oct 2024 15:31:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Oct 2024 15:31:20 +0200
branch
eric7
changeset 124
196b009164dc
parent 123
a1423a8fce39
child 125
6165f5daa544

Converted the header to the new style.

.hgignore file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginMetricsRadon.epj file | annotate | diff | comparison | revisions
PluginMetricsRadon.py file | annotate | diff | comparison | revisions
PluginMetricsRadon.zip file | annotate | diff | comparison | revisions
RadonMetrics/Ui_CyclomaticComplexityDialog.py file | annotate | diff | comparison | revisions
RadonMetrics/Ui_MaintainabilityIndexDialog.py file | annotate | diff | comparison | revisions
RadonMetrics/Ui_RawMetricsDialog.py file | annotate | diff | comparison | revisions
--- a/.hgignore	Tue Jul 09 16:53:02 2024 +0200
+++ b/.hgignore	Sat Oct 26 15:31:20 2024 +0200
@@ -13,4 +13,3 @@
 glob:tmp
 glob:__pycache__
 glob:**.DS_Store
-glob:**Ui_*.py
--- a/ChangeLog	Tue Jul 09 16:53:02 2024 +0200
+++ b/ChangeLog	Sat Oct 26 15:31:20 2024 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 10.3.3
+- converted the header to the new style
+
 Version 10.3.2
 - reworked the recent change
 
--- a/PluginMetricsRadon.epj	Tue Jul 09 16:53:02 2024 +0200
+++ b/PluginMetricsRadon.epj	Sat Oct 26 15:31:20 2024 +0200
@@ -27,6 +27,7 @@
           "OverloadDecorators": [
             "overload"
           ],
+          "RespectTypeIgnore": false,
           "SuppressDummyArgs": false,
           "SuppressNoneReturning": true
         },
@@ -68,7 +69,7 @@
         "DocstringType": "eric_black",
         "EnabledCheckerCategories": "C, D, E, I, L, M, NO, N, S, Y, U, W",
         "ExcludeFiles": "*/Ui_*.py, */*_rc.py",
-        "ExcludeMessages": "C101,E265,E266,E305,E402,M201,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,U200,W293,W503,Y119,Y401,Y402",
+        "ExcludeMessages": "M201,C101,E265,E266,E305,E402,M251,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,U200,W293,W503,Y119,Y401,Y402",
         "FixCodes": "",
         "FixIssues": false,
         "FutureChecker": "",
@@ -233,13 +234,14 @@
     "OTHERTOOLSPARMS": {
       "Black": {
         "exclude": "/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.ipynb_checkpoints|\\.mypy_cache|\\.nox|\\.pytest_cache|\\.ruff_cache|\\.tox|\\.svn|\\.venv|\\.vscode|__pypackages__|_build|buck-out|build|dist|venv)/",
-        "extend-exclude": "",
+        "extend-exclude": "Ui_.*\\.py",
         "force-exclude": "",
         "line-length": 88,
         "skip-magic-trailing-comma": false,
         "skip-string-normalization": false,
         "source": "project",
         "target-version": [
+          "py313",
           "py312",
           "py311",
           "py310",
--- a/PluginMetricsRadon.py	Tue Jul 09 16:53:02 2024 +0200
+++ b/PluginMetricsRadon.py	Sat Oct 26 15:31:20 2024 +0200
@@ -21,24 +21,27 @@
 from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities
 
 # Start-Of-Header
-name = "Radon Metrics Plugin"
-author = "Detlev Offenbach <detlev@die-offenbachs.de>"
-autoactivate = True
-deactivateable = True
-version = "10.3.2"
-className = "RadonMetricsPlugin"
-packageName = "RadonMetrics"
-shortDescription = "Code metrics plugin using radon package"
-longDescription = (
-    """This plug-in implements dialogs to show various code metrics. These"""
-    """ are determined using the radon code metrics package. 'Raw code"""
-    """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be"""
-    """ requested through different dialogs for one file or the whole"""
-    """ project."""
-)
-needsRestart = False
-hasCompiledForms = True
-pyqtApi = 2
+__header__ = {
+    "name": "Radon Metrics Plugin",
+    "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
+    "autoactivate": True,
+    "deactivateable": True,
+    "version": "10.3.3",
+    "className": "RadonMetricsPlugin",
+    "packageName": "RadonMetrics",
+    "shortDescription": "Code metrics plugin using radon package",
+    "longDescription": (
+        """This plug-in implements dialogs to show various code metrics. These"""
+        """ are determined using the radon code metrics package. 'Raw code"""
+        """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be"""
+        """ requested through different dialogs for one file or the whole"""
+        """ project."""
+    ),
+    "needsRestart": False,
+    "hasCompiledForms": True,
+    "hasCompiledForms": True,
+    "pyqtApi": 2,
+}
 # End-Of-Header
 
 error = ""
@@ -77,7 +80,7 @@
 
         self.backgroundService = ericApp().getObject("BackgroundService")
 
-        path = os.path.join(os.path.dirname(__file__), packageName)
+        path = os.path.join(os.path.dirname(__file__), __header__["packageName"])
 
         # raw code metrics calculation
         self.backgroundService.serviceConnect(
Binary file PluginMetricsRadon.zip has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RadonMetrics/Ui_CyclomaticComplexityDialog.py	Sat Oct 26 15:31:20 2024 +0200
@@ -0,0 +1,139 @@
+# Form implementation generated from reading ui file 'RadonMetrics/CyclomaticComplexityDialog.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_CyclomaticComplexityDialog(object):
+    def setupUi(self, CyclomaticComplexityDialog):
+        CyclomaticComplexityDialog.setObjectName("CyclomaticComplexityDialog")
+        CyclomaticComplexityDialog.resize(900, 700)
+        CyclomaticComplexityDialog.setSizeGripEnabled(True)
+        self.verticalLayout = QtWidgets.QVBoxLayout(CyclomaticComplexityDialog)
+        self.verticalLayout.setContentsMargins(6, 6, 6, 6)
+        self.verticalLayout.setSpacing(6)
+        self.verticalLayout.setObjectName("verticalLayout")
+        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+        self.horizontalLayout_3.setSpacing(6)
+        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+        self.label = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.label.setObjectName("label")
+        self.horizontalLayout_3.addWidget(self.label)
+        self.rankComboBox = QtWidgets.QComboBox(parent=CyclomaticComplexityDialog)
+        self.rankComboBox.setObjectName("rankComboBox")
+        self.horizontalLayout_3.addWidget(self.rankComboBox)
+        spacerItem = QtWidgets.QSpacerItem(1, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+        self.horizontalLayout_3.addItem(spacerItem)
+        self.filterFrame = QtWidgets.QFrame(parent=CyclomaticComplexityDialog)
+        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
+        sizePolicy.setHorizontalStretch(10)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.filterFrame.sizePolicy().hasHeightForWidth())
+        self.filterFrame.setSizePolicy(sizePolicy)
+        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.horizontalLayout_3.addWidget(self.filterFrame)
+        self.verticalLayout.addLayout(self.horizontalLayout_3)
+        self.resultList = QtWidgets.QTreeWidget(parent=CyclomaticComplexityDialog)
+        self.resultList.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu)
+        self.resultList.setAlternatingRowColors(True)
+        self.resultList.setExpandsOnDoubleClick(False)
+        self.resultList.setObjectName("resultList")
+        self.verticalLayout.addWidget(self.resultList)
+        self.gridLayout = QtWidgets.QGridLayout()
+        self.gridLayout.setSpacing(6)
+        self.gridLayout.setObjectName("gridLayout")
+        self.summaryHeader = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.summaryHeader.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.summaryHeader.setWordWrap(True)
+        self.summaryHeader.setObjectName("summaryHeader")
+        self.gridLayout.addWidget(self.summaryHeader, 0, 0, 1, 1)
+        self.typeHeader = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.typeHeader.setMaximumSize(QtCore.QSize(200, 16777215))
+        self.typeHeader.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.typeHeader.setWordWrap(True)
+        self.typeHeader.setObjectName("typeHeader")
+        self.gridLayout.addWidget(self.typeHeader, 0, 1, 1, 1)
+        self.explanationHeader = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.explanationHeader.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.explanationHeader.setWordWrap(True)
+        self.explanationHeader.setObjectName("explanationHeader")
+        self.gridLayout.addWidget(self.explanationHeader, 0, 2, 1, 1)
+        self.summaryLabel = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.summaryLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.summaryLabel.setWordWrap(True)
+        self.summaryLabel.setObjectName("summaryLabel")
+        self.gridLayout.addWidget(self.summaryLabel, 1, 0, 1, 1)
+        self.typeLabel = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.typeLabel.setMaximumSize(QtCore.QSize(200, 16777215))
+        self.typeLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.typeLabel.setWordWrap(True)
+        self.typeLabel.setObjectName("typeLabel")
+        self.gridLayout.addWidget(self.typeLabel, 1, 1, 1, 1)
+        self.explanationLabel = QtWidgets.QLabel(parent=CyclomaticComplexityDialog)
+        self.explanationLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.explanationLabel.setWordWrap(True)
+        self.explanationLabel.setObjectName("explanationLabel")
+        self.gridLayout.addWidget(self.explanationLabel, 1, 2, 1, 1)
+        self.verticalLayout.addLayout(self.gridLayout)
+        self.checkProgress = QtWidgets.QProgressBar(parent=CyclomaticComplexityDialog)
+        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=CyclomaticComplexityDialog)
+        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(CyclomaticComplexityDialog)
+        QtCore.QMetaObject.connectSlotsByName(CyclomaticComplexityDialog)
+        CyclomaticComplexityDialog.setTabOrder(self.startButton, self.rankComboBox)
+        CyclomaticComplexityDialog.setTabOrder(self.rankComboBox, self.excludeFilesEdit)
+        CyclomaticComplexityDialog.setTabOrder(self.excludeFilesEdit, self.resultList)
+
+    def retranslateUi(self, CyclomaticComplexityDialog):
+        _translate = QtCore.QCoreApplication.translate
+        CyclomaticComplexityDialog.setWindowTitle(_translate("CyclomaticComplexityDialog", "Cyclomatic Complexity"))
+        CyclomaticComplexityDialog.setWhatsThis(_translate("CyclomaticComplexityDialog", "<b>Cyclomatic Complexity</b>\n"
+"<p>This dialog shows the cyclomatic complexity and rank.</p>"))
+        self.label.setText(_translate("CyclomaticComplexityDialog", "Minimum Rank:"))
+        self.rankComboBox.setToolTip(_translate("CyclomaticComplexityDialog", "Select the minimum rank of items to be shown"))
+        self.label_2.setText(_translate("CyclomaticComplexityDialog", "Exclude Files:"))
+        self.excludeFilesEdit.setToolTip(_translate("CyclomaticComplexityDialog", "Enter filename patterns of files to be excluded separated by a comma"))
+        self.startButton.setToolTip(_translate("CyclomaticComplexityDialog", "Press to start the calculation"))
+        self.startButton.setText(_translate("CyclomaticComplexityDialog", "Start"))
+        self.resultList.headerItem().setText(0, _translate("CyclomaticComplexityDialog", "Type"))
+        self.resultList.headerItem().setText(1, _translate("CyclomaticComplexityDialog", "Name"))
+        self.resultList.headerItem().setText(2, _translate("CyclomaticComplexityDialog", "Complexity"))
+        self.resultList.headerItem().setText(3, _translate("CyclomaticComplexityDialog", "Rank"))
+        self.resultList.headerItem().setText(4, _translate("CyclomaticComplexityDialog", "Begin"))
+        self.checkProgress.setToolTip(_translate("CyclomaticComplexityDialog", "Shows the progress of the calculation"))
+        self.checkProgress.setFormat(_translate("CyclomaticComplexityDialog", "%v/%m Files"))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RadonMetrics/Ui_MaintainabilityIndexDialog.py	Sat Oct 26 15:31:20 2024 +0200
@@ -0,0 +1,94 @@
+# Form implementation generated from reading ui file 'RadonMetrics/MaintainabilityIndexDialog.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_MaintainabilityIndexDialog(object):
+    def setupUi(self, MaintainabilityIndexDialog):
+        MaintainabilityIndexDialog.setObjectName("MaintainabilityIndexDialog")
+        MaintainabilityIndexDialog.resize(832, 587)
+        MaintainabilityIndexDialog.setSizeGripEnabled(True)
+        self.verticalLayout = QtWidgets.QVBoxLayout(MaintainabilityIndexDialog)
+        self.verticalLayout.setContentsMargins(6, 6, 6, 6)
+        self.verticalLayout.setSpacing(6)
+        self.verticalLayout.setObjectName("verticalLayout")
+        self.filterFrame = QtWidgets.QFrame(parent=MaintainabilityIndexDialog)
+        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.resultList = QtWidgets.QTreeWidget(parent=MaintainabilityIndexDialog)
+        self.resultList.setAlternatingRowColors(True)
+        self.resultList.setObjectName("resultList")
+        self.verticalLayout.addWidget(self.resultList)
+        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+        self.horizontalLayout_2.setSpacing(6)
+        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+        self.summaryLabel = QtWidgets.QLabel(parent=MaintainabilityIndexDialog)
+        self.summaryLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.summaryLabel.setWordWrap(True)
+        self.summaryLabel.setObjectName("summaryLabel")
+        self.horizontalLayout_2.addWidget(self.summaryLabel)
+        self.explanationLabel = QtWidgets.QLabel(parent=MaintainabilityIndexDialog)
+        self.explanationLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.explanationLabel.setWordWrap(True)
+        self.explanationLabel.setObjectName("explanationLabel")
+        self.horizontalLayout_2.addWidget(self.explanationLabel)
+        self.verticalLayout.addLayout(self.horizontalLayout_2)
+        self.checkProgress = QtWidgets.QProgressBar(parent=MaintainabilityIndexDialog)
+        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=MaintainabilityIndexDialog)
+        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(MaintainabilityIndexDialog)
+        QtCore.QMetaObject.connectSlotsByName(MaintainabilityIndexDialog)
+        MaintainabilityIndexDialog.setTabOrder(self.startButton, self.excludeFilesEdit)
+        MaintainabilityIndexDialog.setTabOrder(self.excludeFilesEdit, self.resultList)
+        MaintainabilityIndexDialog.setTabOrder(self.resultList, self.buttonBox)
+
+    def retranslateUi(self, MaintainabilityIndexDialog):
+        _translate = QtCore.QCoreApplication.translate
+        MaintainabilityIndexDialog.setWindowTitle(_translate("MaintainabilityIndexDialog", "Maintainability Index"))
+        MaintainabilityIndexDialog.setWhatsThis(_translate("MaintainabilityIndexDialog", "<b>Maintainability Index</b>\n"
+"<p>This dialog shows the maintainability index and rank.</p>"))
+        self.label_2.setText(_translate("MaintainabilityIndexDialog", "Exclude Files:"))
+        self.excludeFilesEdit.setToolTip(_translate("MaintainabilityIndexDialog", "Enter filename patterns of files to be excluded separated by a comma"))
+        self.startButton.setToolTip(_translate("MaintainabilityIndexDialog", "Press to start the calculation"))
+        self.startButton.setText(_translate("MaintainabilityIndexDialog", "Start"))
+        self.resultList.headerItem().setText(0, _translate("MaintainabilityIndexDialog", "Name"))
+        self.resultList.headerItem().setText(1, _translate("MaintainabilityIndexDialog", "Score"))
+        self.resultList.headerItem().setText(2, _translate("MaintainabilityIndexDialog", "Rank"))
+        self.checkProgress.setToolTip(_translate("MaintainabilityIndexDialog", "Shows the progress of the calculation"))
+        self.checkProgress.setFormat(_translate("MaintainabilityIndexDialog", "%v/%m Files"))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RadonMetrics/Ui_RawMetricsDialog.py	Sat Oct 26 15:31:20 2024 +0200
@@ -0,0 +1,107 @@
+# Form implementation generated from reading ui file 'RadonMetrics/RawMetricsDialog.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_RawMetricsDialog(object):
+    def setupUi(self, RawMetricsDialog):
+        RawMetricsDialog.setObjectName("RawMetricsDialog")
+        RawMetricsDialog.resize(832, 587)
+        RawMetricsDialog.setSizeGripEnabled(True)
+        self.verticalLayout = QtWidgets.QVBoxLayout(RawMetricsDialog)
+        self.verticalLayout.setContentsMargins(6, 6, 6, 6)
+        self.verticalLayout.setSpacing(6)
+        self.verticalLayout.setObjectName("verticalLayout")
+        self.filterFrame = QtWidgets.QFrame(parent=RawMetricsDialog)
+        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.resultList = QtWidgets.QTreeWidget(parent=RawMetricsDialog)
+        self.resultList.setAlternatingRowColors(True)
+        self.resultList.setObjectName("resultList")
+        self.verticalLayout.addWidget(self.resultList)
+        self.summarySplitter = QtWidgets.QSplitter(parent=RawMetricsDialog)
+        self.summarySplitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
+        self.summarySplitter.setChildrenCollapsible(False)
+        self.summarySplitter.setObjectName("summarySplitter")
+        self.summaryList = QtWidgets.QTreeWidget(parent=self.summarySplitter)
+        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.summaryList.sizePolicy().hasHeightForWidth())
+        self.summaryList.setSizePolicy(sizePolicy)
+        self.summaryList.setAlternatingRowColors(True)
+        self.summaryList.setObjectName("summaryList")
+        self.explanationLabel = QtWidgets.QLabel(parent=self.summarySplitter)
+        self.explanationLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
+        self.explanationLabel.setWordWrap(True)
+        self.explanationLabel.setObjectName("explanationLabel")
+        self.verticalLayout.addWidget(self.summarySplitter)
+        self.checkProgress = QtWidgets.QProgressBar(parent=RawMetricsDialog)
+        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=RawMetricsDialog)
+        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(RawMetricsDialog)
+        QtCore.QMetaObject.connectSlotsByName(RawMetricsDialog)
+        RawMetricsDialog.setTabOrder(self.startButton, self.excludeFilesEdit)
+        RawMetricsDialog.setTabOrder(self.excludeFilesEdit, self.resultList)
+        RawMetricsDialog.setTabOrder(self.resultList, self.buttonBox)
+
+    def retranslateUi(self, RawMetricsDialog):
+        _translate = QtCore.QCoreApplication.translate
+        RawMetricsDialog.setWindowTitle(_translate("RawMetricsDialog", "Code Metrics"))
+        RawMetricsDialog.setWhatsThis(_translate("RawMetricsDialog", "<b>Code Metrics</b>\n"
+"<p>This dialog shows some code metrics.</p>"))
+        self.label_2.setText(_translate("RawMetricsDialog", "Exclude Files:"))
+        self.excludeFilesEdit.setToolTip(_translate("RawMetricsDialog", "Enter filename patterns of files to be excluded separated by a comma"))
+        self.startButton.setToolTip(_translate("RawMetricsDialog", "Press to start the calculation"))
+        self.startButton.setText(_translate("RawMetricsDialog", "Start"))
+        self.resultList.headerItem().setText(0, _translate("RawMetricsDialog", "Name"))
+        self.resultList.headerItem().setText(1, _translate("RawMetricsDialog", "LOC"))
+        self.resultList.headerItem().setText(2, _translate("RawMetricsDialog", "SLOC"))
+        self.resultList.headerItem().setText(3, _translate("RawMetricsDialog", "LLOC"))
+        self.resultList.headerItem().setText(4, _translate("RawMetricsDialog", "Comments"))
+        self.resultList.headerItem().setText(5, _translate("RawMetricsDialog", "Empty Comments"))
+        self.resultList.headerItem().setText(6, _translate("RawMetricsDialog", "Multi"))
+        self.resultList.headerItem().setText(7, _translate("RawMetricsDialog", "Empty"))
+        self.resultList.headerItem().setText(8, _translate("RawMetricsDialog", "C % L"))
+        self.resultList.headerItem().setText(9, _translate("RawMetricsDialog", "C % S"))
+        self.resultList.headerItem().setText(10, _translate("RawMetricsDialog", "C + M % L"))
+        self.summaryList.headerItem().setText(0, _translate("RawMetricsDialog", "Summary"))
+        self.summaryList.headerItem().setText(1, _translate("RawMetricsDialog", "#"))
+        self.checkProgress.setToolTip(_translate("RawMetricsDialog", "Shows the progress of the calculation"))
+        self.checkProgress.setFormat(_translate("RawMetricsDialog", "%v/%m Files"))

eric ide

mercurial