Sat, 26 Oct 2024 15:50:43 +0200
- change to the new style header
- included the compiled form files
--- a/.hgignore Wed Oct 23 17:45:58 2024 +0200 +++ b/.hgignore Sat Oct 26 15:50:43 2024 +0200 @@ -6,7 +6,6 @@ glob:**.pyc glob:**.orig glob:**.bak -glob:**Ui_*.py glob:**.rej glob:**~ glob:cur
--- a/ChangeLog Wed Oct 23 17:45:58 2024 +0200 +++ b/ChangeLog Sat Oct 26 15:50:43 2024 +0200 @@ -1,5 +1,9 @@ ChangeLog --------- +Version 10.7.4 +- change to the new style header +- included the compiled form files + Version 10.7.3 - adjusted code for eric7 24.10 and newer
--- a/PKGLIST Wed Oct 23 17:45:58 2024 +0200 +++ b/PKGLIST Sat Oct 26 15:50:43 2024 +0200 @@ -14,6 +14,9 @@ RefactoringRope/ConfigurationPage/CallTipsRopePage.ui RefactoringRope/ConfigurationPage/MouseClickHandlerRopePage.py RefactoringRope/ConfigurationPage/MouseClickHandlerRopePage.ui +RefactoringRope/ConfigurationPage/Ui_AutoCompletionRopePage.py +RefactoringRope/ConfigurationPage/Ui_CallTipsRopePage.py +RefactoringRope/ConfigurationPage/Ui_MouseClickHandlerRopePage.py RefactoringRope/ConfigurationPage/__init__.py RefactoringRope/ConfigurationPage/preferences-refactoring-dark.svg RefactoringRope/ConfigurationPage/preferences-refactoring-light.svg @@ -58,6 +61,26 @@ RefactoringRope/RestructureDialog.ui RefactoringRope/RopeProgressDialog.py RefactoringRope/RopeUtilities.py +RefactoringRope/Ui_AddParameterDialog.py +RefactoringRope/Ui_ChangeOccurrencesDialog.py +RefactoringRope/Ui_ChangeSignatureDialog.py +RefactoringRope/Ui_ConfirmationDialog.py +RefactoringRope/Ui_ErrorDialog.py +RefactoringRope/Ui_ExtractDialog.py +RefactoringRope/Ui_GetterSetterDialog.py +RefactoringRope/Ui_HelpDialog.py +RefactoringRope/Ui_HistoryDialog.py +RefactoringRope/Ui_InlineArgumentDefaultDialog.py +RefactoringRope/Ui_InlineDialog.py +RefactoringRope/Ui_IntroduceFactoryDialog.py +RefactoringRope/Ui_IntroduceParameterDialog.py +RefactoringRope/Ui_MatchesDialog.py +RefactoringRope/Ui_MethodToMethodObjectDialog.py +RefactoringRope/Ui_MoveDialog.py +RefactoringRope/Ui_PreviewDialog.py +RefactoringRope/Ui_RenameDialog.py +RefactoringRope/Ui_RestructureDialog.py +RefactoringRope/Ui_UseFunctionDialog.py RefactoringRope/UseFunctionDialog.py RefactoringRope/UseFunctionDialog.ui RefactoringRope/__init__.py
--- a/PluginRefactoringRope.py Wed Oct 23 17:45:58 2024 +0200 +++ b/PluginRefactoringRope.py Sat Oct 26 15:50:43 2024 +0200 @@ -22,22 +22,25 @@ from .RefactoringRope.RopeUtilities import isRemoteFileName # Start-Of-Header -name = "Refactoring Rope Plugin" -author = "Detlev Offenbach <detlev@die-offenbachs.de>" -autoactivate = True -deactivateable = True -version = "10.7.3" -className = "RefactoringRopePlugin" -packageName = "RefactoringRope" -shortDescription = "Refactoring and Code Assist using the Rope library." -longDescription = ( - """This plug-in implements refactoring functionality using the Rope""" - """ refactoring library. Additionally it implements an auto-completion,""" - """ call-tips and code documentation provider as well as a mouse""" - """ click handler.""" -) -pyqtApi = 2 -doNotCompile = True +__header__ = { + "name": "Refactoring Rope Plugin", + "author": "Detlev Offenbach <detlev@die-offenbachs.de>", + "autoactivate": True, + "deactivateable": True, + "version": "10.7.4", + "className": "RefactoringRopePlugin", + "packageName": "RefactoringRope", + "shortDescription": "Refactoring and Code Assist using the Rope library.", + "longDescription": ( + """This plug-in implements refactoring functionality using the Rope""" + """ refactoring library. Additionally it implements an auto-completion,""" + """ call-tips and code documentation provider as well as a mouse""" + """ click handler.""" + ), + "hasCompiledForms": True, + "pyqtApi": 2, + "doNotCompile": True, +} # End-Of-Header error = ""
--- a/PluginRope.epj Wed Oct 23 17:45:58 2024 +0200 +++ b/PluginRope.epj Sat Oct 26 15:50:43 2024 +0200 @@ -192,7 +192,6 @@ "Makefile": "OTHERS", "README": "OTHERS", "README.*": "OTHERS", - "Ui_*.py": "__IGNORE__", "makefile": "OTHERS" }, "FORMS": [ @@ -255,7 +254,7 @@ "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, @@ -307,6 +306,9 @@ "RefactoringRope/ConfigurationPage/AutoCompletionRopePage.py", "RefactoringRope/ConfigurationPage/CallTipsRopePage.py", "RefactoringRope/ConfigurationPage/MouseClickHandlerRopePage.py", + "RefactoringRope/ConfigurationPage/Ui_AutoCompletionRopePage.py", + "RefactoringRope/ConfigurationPage/Ui_CallTipsRopePage.py", + "RefactoringRope/ConfigurationPage/Ui_MouseClickHandlerRopePage.py", "RefactoringRope/ConfigurationPage/__init__.py", "RefactoringRope/ConfirmationDialog.py", "RefactoringRope/ErrorDialog.py", @@ -331,6 +333,26 @@ "RefactoringRope/RestructureDialog.py", "RefactoringRope/RopeProgressDialog.py", "RefactoringRope/RopeUtilities.py", + "RefactoringRope/Ui_AddParameterDialog.py", + "RefactoringRope/Ui_ChangeOccurrencesDialog.py", + "RefactoringRope/Ui_ChangeSignatureDialog.py", + "RefactoringRope/Ui_ConfirmationDialog.py", + "RefactoringRope/Ui_ErrorDialog.py", + "RefactoringRope/Ui_ExtractDialog.py", + "RefactoringRope/Ui_GetterSetterDialog.py", + "RefactoringRope/Ui_HelpDialog.py", + "RefactoringRope/Ui_HistoryDialog.py", + "RefactoringRope/Ui_InlineArgumentDefaultDialog.py", + "RefactoringRope/Ui_InlineDialog.py", + "RefactoringRope/Ui_IntroduceFactoryDialog.py", + "RefactoringRope/Ui_IntroduceParameterDialog.py", + "RefactoringRope/Ui_MatchesDialog.py", + "RefactoringRope/Ui_MethodToMethodObjectDialog.py", + "RefactoringRope/Ui_MoveDialog.py", + "RefactoringRope/Ui_PreviewDialog.py", + "RefactoringRope/Ui_RenameDialog.py", + "RefactoringRope/Ui_RestructureDialog.py", + "RefactoringRope/Ui_UseFunctionDialog.py", "RefactoringRope/UseFunctionDialog.py", "RefactoringRope/__init__.py", "RefactoringRope/default_config.py",
--- a/RefactoringRope/CodeAssistServer.py Wed Oct 23 17:45:58 2024 +0200 +++ b/RefactoringRope/CodeAssistServer.py Sat Oct 26 15:50:43 2024 +0200 @@ -99,11 +99,7 @@ ) except TypeError: # backward compatibility for eric < 24.10 - super().__init__( - name="CodeAssistServer", - multiplex=True, - parent=parent - ) + super().__init__(name="CodeAssistServer", multiplex=True, parent=parent) self.__plugin = plugin self.__ui = parent
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/ConfigurationPage/Ui_AutoCompletionRopePage.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,80 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ConfigurationPage/AutoCompletionRopePage.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_AutoCompletionRopePage(object): + def setupUi(self, AutoCompletionRopePage): + AutoCompletionRopePage.setObjectName("AutoCompletionRopePage") + AutoCompletionRopePage.resize(440, 350) + self.verticalLayout = QtWidgets.QVBoxLayout(AutoCompletionRopePage) + self.verticalLayout.setObjectName("verticalLayout") + self.headerLabel = QtWidgets.QLabel(AutoCompletionRopePage) + self.headerLabel.setObjectName("headerLabel") + self.verticalLayout.addWidget(self.headerLabel) + self.line15 = QtWidgets.QFrame(AutoCompletionRopePage) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setObjectName("line15") + self.verticalLayout.addWidget(self.line15) + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.ropeAutocompletionCheckBox = QtWidgets.QCheckBox(AutoCompletionRopePage) + self.ropeAutocompletionCheckBox.setObjectName("ropeAutocompletionCheckBox") + self.gridLayout.addWidget(self.ropeAutocompletionCheckBox, 0, 0, 1, 3) + self.label = QtWidgets.QLabel(AutoCompletionRopePage) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 1, 0, 1, 1) + self.acMaxfixesSpinBox = QtWidgets.QSpinBox(AutoCompletionRopePage) + self.acMaxfixesSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.acMaxfixesSpinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.ButtonSymbols.PlusMinus) + self.acMaxfixesSpinBox.setMinimum(1) + self.acMaxfixesSpinBox.setMaximum(1000) + self.acMaxfixesSpinBox.setObjectName("acMaxfixesSpinBox") + self.gridLayout.addWidget(self.acMaxfixesSpinBox, 1, 1, 1, 1) + spacerItem = QtWidgets.QSpacerItem(111, 23, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout.addItem(spacerItem, 1, 2, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + spacerItem1 = QtWidgets.QSpacerItem(221, 82, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout.addItem(spacerItem1) + self.editPython3Button = QtWidgets.QPushButton(AutoCompletionRopePage) + self.editPython3Button.setObjectName("editPython3Button") + self.verticalLayout.addWidget(self.editPython3Button) + self.createPython3Button = QtWidgets.QPushButton(AutoCompletionRopePage) + self.createPython3Button.setObjectName("createPython3Button") + self.verticalLayout.addWidget(self.createPython3Button) + + self.retranslateUi(AutoCompletionRopePage) + QtCore.QMetaObject.connectSlotsByName(AutoCompletionRopePage) + AutoCompletionRopePage.setTabOrder(self.ropeAutocompletionCheckBox, self.acMaxfixesSpinBox) + AutoCompletionRopePage.setTabOrder(self.acMaxfixesSpinBox, self.editPython3Button) + AutoCompletionRopePage.setTabOrder(self.editPython3Button, self.createPython3Button) + + def retranslateUi(self, AutoCompletionRopePage): + _translate = QtCore.QCoreApplication.translate + self.headerLabel.setText(_translate("AutoCompletionRopePage", "<b>Configure Rope Autocompletion</b>")) + self.ropeAutocompletionCheckBox.setToolTip(_translate("AutoCompletionRopePage", "Select, whether the rope autocompletion support shall be enabled.")) + self.ropeAutocompletionCheckBox.setText(_translate("AutoCompletionRopePage", "Enable autocompletion")) + self.label.setText(_translate("AutoCompletionRopePage", "Number of errors to fix:")) + self.acMaxfixesSpinBox.setToolTip(_translate("AutoCompletionRopePage", "Enter the number of errors to fix before giving up")) + self.editPython3Button.setToolTip(_translate("AutoCompletionRopePage", "Press to edit the rope configuration for Python3")) + self.editPython3Button.setText(_translate("AutoCompletionRopePage", "Edit Python 3 rope configuration")) + self.createPython3Button.setToolTip(_translate("AutoCompletionRopePage", "Press to create a new rope default configuration for Python3")) + self.createPython3Button.setText(_translate("AutoCompletionRopePage", "Create a Python3 rope configuration")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + AutoCompletionRopePage = QtWidgets.QWidget() + ui = Ui_AutoCompletionRopePage() + ui.setupUi(AutoCompletionRopePage) + AutoCompletionRopePage.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/ConfigurationPage/Ui_CallTipsRopePage.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,80 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ConfigurationPage/CallTipsRopePage.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_CallTipsRopePage(object): + def setupUi(self, CallTipsRopePage): + CallTipsRopePage.setObjectName("CallTipsRopePage") + CallTipsRopePage.resize(400, 350) + self.verticalLayout = QtWidgets.QVBoxLayout(CallTipsRopePage) + self.verticalLayout.setObjectName("verticalLayout") + self.headerLabel = QtWidgets.QLabel(CallTipsRopePage) + self.headerLabel.setObjectName("headerLabel") + self.verticalLayout.addWidget(self.headerLabel) + self.line15 = QtWidgets.QFrame(CallTipsRopePage) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setObjectName("line15") + self.verticalLayout.addWidget(self.line15) + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.ropeCalltipsCheckBox = QtWidgets.QCheckBox(CallTipsRopePage) + self.ropeCalltipsCheckBox.setObjectName("ropeCalltipsCheckBox") + self.gridLayout.addWidget(self.ropeCalltipsCheckBox, 0, 0, 1, 3) + self.label_3 = QtWidgets.QLabel(CallTipsRopePage) + self.label_3.setObjectName("label_3") + self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1) + self.ctMaxfixesSpinBox = QtWidgets.QSpinBox(CallTipsRopePage) + self.ctMaxfixesSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.ctMaxfixesSpinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.ButtonSymbols.PlusMinus) + self.ctMaxfixesSpinBox.setMinimum(1) + self.ctMaxfixesSpinBox.setMaximum(1000) + self.ctMaxfixesSpinBox.setObjectName("ctMaxfixesSpinBox") + self.gridLayout.addWidget(self.ctMaxfixesSpinBox, 1, 1, 1, 1) + spacerItem = QtWidgets.QSpacerItem(31, 23, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout.addItem(spacerItem, 1, 2, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + spacerItem1 = QtWidgets.QSpacerItem(221, 82, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout.addItem(spacerItem1) + self.editPython3Button = QtWidgets.QPushButton(CallTipsRopePage) + self.editPython3Button.setObjectName("editPython3Button") + self.verticalLayout.addWidget(self.editPython3Button) + self.createPython3Button = QtWidgets.QPushButton(CallTipsRopePage) + self.createPython3Button.setObjectName("createPython3Button") + self.verticalLayout.addWidget(self.createPython3Button) + + self.retranslateUi(CallTipsRopePage) + QtCore.QMetaObject.connectSlotsByName(CallTipsRopePage) + CallTipsRopePage.setTabOrder(self.ropeCalltipsCheckBox, self.ctMaxfixesSpinBox) + CallTipsRopePage.setTabOrder(self.ctMaxfixesSpinBox, self.editPython3Button) + CallTipsRopePage.setTabOrder(self.editPython3Button, self.createPython3Button) + + def retranslateUi(self, CallTipsRopePage): + _translate = QtCore.QCoreApplication.translate + self.headerLabel.setText(_translate("CallTipsRopePage", "<b>Configure Rope Calltips</b>")) + self.ropeCalltipsCheckBox.setToolTip(_translate("CallTipsRopePage", "Select, whether the rope calltip support shall be enabled.")) + self.ropeCalltipsCheckBox.setText(_translate("CallTipsRopePage", "Enable calltip")) + self.label_3.setText(_translate("CallTipsRopePage", "Number of errors to fix:")) + self.ctMaxfixesSpinBox.setToolTip(_translate("CallTipsRopePage", "Enter the number of errors to fix before giving up")) + self.editPython3Button.setToolTip(_translate("CallTipsRopePage", "Press to edit the rope configuration for Python3")) + self.editPython3Button.setText(_translate("CallTipsRopePage", "Edit Python 3 rope configuration")) + self.createPython3Button.setToolTip(_translate("CallTipsRopePage", "Press to create a new rope default configuration for Python3")) + self.createPython3Button.setText(_translate("CallTipsRopePage", "Create a Python3 rope configuration")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + CallTipsRopePage = QtWidgets.QWidget() + ui = Ui_CallTipsRopePage() + ui.setupUi(CallTipsRopePage) + CallTipsRopePage.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/ConfigurationPage/Ui_MouseClickHandlerRopePage.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,71 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ConfigurationPage/MouseClickHandlerRopePage.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_MouseClickHandlerRopePage(object): + def setupUi(self, MouseClickHandlerRopePage): + MouseClickHandlerRopePage.setObjectName("MouseClickHandlerRopePage") + MouseClickHandlerRopePage.resize(400, 300) + self.verticalLayout = QtWidgets.QVBoxLayout(MouseClickHandlerRopePage) + self.verticalLayout.setObjectName("verticalLayout") + self.headerLabel = QtWidgets.QLabel(MouseClickHandlerRopePage) + self.headerLabel.setObjectName("headerLabel") + self.verticalLayout.addWidget(self.headerLabel) + self.line15 = QtWidgets.QFrame(MouseClickHandlerRopePage) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line15.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line15.setObjectName("line15") + self.verticalLayout.addWidget(self.line15) + self.ropeClickHandlerCheckBox = QtWidgets.QCheckBox(MouseClickHandlerRopePage) + self.ropeClickHandlerCheckBox.setObjectName("ropeClickHandlerCheckBox") + self.verticalLayout.addWidget(self.ropeClickHandlerCheckBox) + self.groupBox = QtWidgets.QGroupBox(MouseClickHandlerRopePage) + self.groupBox.setObjectName("groupBox") + self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox) + self.horizontalLayout.setObjectName("horizontalLayout") + self.label = QtWidgets.QLabel(self.groupBox) + self.label.setObjectName("label") + self.horizontalLayout.addWidget(self.label) + self.gotoClickEdit = QtWidgets.QLineEdit(self.groupBox) + self.gotoClickEdit.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.gotoClickEdit.setReadOnly(True) + self.gotoClickEdit.setObjectName("gotoClickEdit") + self.horizontalLayout.addWidget(self.gotoClickEdit) + self.changeGotoButton = QtWidgets.QPushButton(self.groupBox) + self.changeGotoButton.setObjectName("changeGotoButton") + self.horizontalLayout.addWidget(self.changeGotoButton) + self.verticalLayout.addWidget(self.groupBox) + spacerItem = QtWidgets.QSpacerItem(20, 147, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout.addItem(spacerItem) + + self.retranslateUi(MouseClickHandlerRopePage) + QtCore.QMetaObject.connectSlotsByName(MouseClickHandlerRopePage) + + def retranslateUi(self, MouseClickHandlerRopePage): + _translate = QtCore.QCoreApplication.translate + self.headerLabel.setText(_translate("MouseClickHandlerRopePage", "<b>Configure Rope Mouse Click Handler Support</b>")) + self.ropeClickHandlerCheckBox.setToolTip(_translate("MouseClickHandlerRopePage", "Select, whether the rope mouse click handler support shall be enabled.")) + self.ropeClickHandlerCheckBox.setText(_translate("MouseClickHandlerRopePage", "Enable Mouse Click Handler")) + self.groupBox.setTitle(_translate("MouseClickHandlerRopePage", "Go To Definition")) + self.label.setText(_translate("MouseClickHandlerRopePage", "Click Sequence:")) + self.gotoClickEdit.setToolTip(_translate("MouseClickHandlerRopePage", "Shows the mouse click sequence")) + self.changeGotoButton.setToolTip(_translate("MouseClickHandlerRopePage", "Press to open a dialog to configure the mouse click sequence")) + self.changeGotoButton.setText(_translate("MouseClickHandlerRopePage", "Change...")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + MouseClickHandlerRopePage = QtWidgets.QWidget() + ui = Ui_MouseClickHandlerRopePage() + ui.setupUi(MouseClickHandlerRopePage) + MouseClickHandlerRopePage.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_AddParameterDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,78 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/AddParameterDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_AddParameterDialog(object): + def setupUi(self, AddParameterDialog): + AddParameterDialog.setObjectName("AddParameterDialog") + AddParameterDialog.resize(500, 118) + AddParameterDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(AddParameterDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.gridlayout = QtWidgets.QGridLayout() + self.gridlayout.setSpacing(6) + self.gridlayout.setObjectName("gridlayout") + self.label = QtWidgets.QLabel(AddParameterDialog) + self.label.setObjectName("label") + self.gridlayout.addWidget(self.label, 0, 0, 1, 1) + self.nameEdit = QtWidgets.QLineEdit(AddParameterDialog) + self.nameEdit.setClearButtonEnabled(True) + self.nameEdit.setObjectName("nameEdit") + self.gridlayout.addWidget(self.nameEdit, 0, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(AddParameterDialog) + self.label_2.setObjectName("label_2") + self.gridlayout.addWidget(self.label_2, 1, 0, 1, 1) + self.defaultEdit = QtWidgets.QLineEdit(AddParameterDialog) + self.defaultEdit.setClearButtonEnabled(True) + self.defaultEdit.setObjectName("defaultEdit") + self.gridlayout.addWidget(self.defaultEdit, 1, 1, 1, 1) + self.label_3 = QtWidgets.QLabel(AddParameterDialog) + self.label_3.setObjectName("label_3") + self.gridlayout.addWidget(self.label_3, 2, 0, 1, 1) + self.valueEdit = QtWidgets.QLineEdit(AddParameterDialog) + self.valueEdit.setClearButtonEnabled(True) + self.valueEdit.setObjectName("valueEdit") + self.gridlayout.addWidget(self.valueEdit, 2, 1, 1, 1) + self.vboxlayout.addLayout(self.gridlayout) + self.buttonBox = QtWidgets.QDialogButtonBox(AddParameterDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(AddParameterDialog) + self.buttonBox.accepted.connect(AddParameterDialog.accept) # type: ignore + self.buttonBox.rejected.connect(AddParameterDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(AddParameterDialog) + AddParameterDialog.setTabOrder(self.nameEdit, self.defaultEdit) + AddParameterDialog.setTabOrder(self.defaultEdit, self.valueEdit) + AddParameterDialog.setTabOrder(self.valueEdit, self.buttonBox) + + def retranslateUi(self, AddParameterDialog): + _translate = QtCore.QCoreApplication.translate + AddParameterDialog.setWindowTitle(_translate("AddParameterDialog", "Add New Parameter")) + self.label.setText(_translate("AddParameterDialog", "Name:")) + self.nameEdit.setToolTip(_translate("AddParameterDialog", "Enter the name of the new parameter")) + self.label_2.setText(_translate("AddParameterDialog", "Default:")) + self.defaultEdit.setToolTip(_translate("AddParameterDialog", "Enter the default value of the new parameter")) + self.label_3.setText(_translate("AddParameterDialog", "Value:")) + self.valueEdit.setToolTip(_translate("AddParameterDialog", "Enter a value for the new parameter that is passed by all calls")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + AddParameterDialog = QtWidgets.QDialog() + ui = Ui_AddParameterDialog() + ui.setupUi(AddParameterDialog) + AddParameterDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_ChangeOccurrencesDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,72 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ChangeOccurrencesDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_ChangeOccurrencesDialog(object): + def setupUi(self, ChangeOccurrencesDialog): + ChangeOccurrencesDialog.setObjectName("ChangeOccurrencesDialog") + ChangeOccurrencesDialog.resize(500, 138) + ChangeOccurrencesDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(ChangeOccurrencesDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setObjectName("vboxlayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(ChangeOccurrencesDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.replaceEdit = QtWidgets.QLineEdit(ChangeOccurrencesDialog) + self.replaceEdit.setClearButtonEnabled(True) + self.replaceEdit.setObjectName("replaceEdit") + self.hboxlayout.addWidget(self.replaceEdit) + self.vboxlayout.addLayout(self.hboxlayout) + self.onlyCallsCheckBox = QtWidgets.QCheckBox(ChangeOccurrencesDialog) + self.onlyCallsCheckBox.setObjectName("onlyCallsCheckBox") + self.vboxlayout.addWidget(self.onlyCallsCheckBox) + self.readsCheckBox = QtWidgets.QCheckBox(ChangeOccurrencesDialog) + self.readsCheckBox.setChecked(True) + self.readsCheckBox.setObjectName("readsCheckBox") + self.vboxlayout.addWidget(self.readsCheckBox) + self.writesCheckBox = QtWidgets.QCheckBox(ChangeOccurrencesDialog) + self.writesCheckBox.setChecked(True) + self.writesCheckBox.setObjectName("writesCheckBox") + self.vboxlayout.addWidget(self.writesCheckBox) + self.buttonBox = QtWidgets.QDialogButtonBox(ChangeOccurrencesDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(ChangeOccurrencesDialog) + self.buttonBox.rejected.connect(ChangeOccurrencesDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(ChangeOccurrencesDialog) + + def retranslateUi(self, ChangeOccurrencesDialog): + _translate = QtCore.QCoreApplication.translate + ChangeOccurrencesDialog.setWindowTitle(_translate("ChangeOccurrencesDialog", "Change Occurrences")) + self.label.setText(_translate("ChangeOccurrencesDialog", "Replace occurrences with:")) + self.replaceEdit.setToolTip(_translate("ChangeOccurrencesDialog", "Enter the text occurrences should be replaced with")) + self.onlyCallsCheckBox.setToolTip(_translate("ChangeOccurrencesDialog", "Select to change occurrences, that are function or method calls.\n" +"\"Reads\" must be switched on as well.")) + self.onlyCallsCheckBox.setText(_translate("ChangeOccurrencesDialog", "Do only for calls")) + self.readsCheckBox.setToolTip(_translate("ChangeOccurrencesDialog", "Select to change occurrences with read access")) + self.readsCheckBox.setText(_translate("ChangeOccurrencesDialog", "Reads")) + self.writesCheckBox.setToolTip(_translate("ChangeOccurrencesDialog", "Select to change occurrences with write access")) + self.writesCheckBox.setText(_translate("ChangeOccurrencesDialog", "Writes")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + ChangeOccurrencesDialog = QtWidgets.QDialog() + ui = Ui_ChangeOccurrencesDialog() + ui.setupUi(ChangeOccurrencesDialog) + ChangeOccurrencesDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_ChangeSignatureDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,100 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ChangeSignatureDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_ChangeSignatureDialog(object): + def setupUi(self, ChangeSignatureDialog): + ChangeSignatureDialog.setObjectName("ChangeSignatureDialog") + ChangeSignatureDialog.resize(500, 427) + ChangeSignatureDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(ChangeSignatureDialog) + self.verticalLayout.setContentsMargins(6, 6, 6, 6) + self.verticalLayout.setSpacing(6) + self.verticalLayout.setObjectName("verticalLayout") + self.gridlayout = QtWidgets.QGridLayout() + self.gridlayout.setSpacing(6) + self.gridlayout.setObjectName("gridlayout") + self.label = QtWidgets.QLabel(ChangeSignatureDialog) + self.label.setObjectName("label") + self.gridlayout.addWidget(self.label, 0, 0, 1, 1) + self.parameterList = QtWidgets.QListWidget(ChangeSignatureDialog) + self.parameterList.setObjectName("parameterList") + self.gridlayout.addWidget(self.parameterList, 1, 0, 5, 1) + self.upButton = QtWidgets.QPushButton(ChangeSignatureDialog) + self.upButton.setObjectName("upButton") + self.gridlayout.addWidget(self.upButton, 1, 1, 1, 1) + self.downButton = QtWidgets.QPushButton(ChangeSignatureDialog) + self.downButton.setObjectName("downButton") + self.gridlayout.addWidget(self.downButton, 2, 1, 1, 1) + self.removeButton = QtWidgets.QPushButton(ChangeSignatureDialog) + self.removeButton.setObjectName("removeButton") + self.gridlayout.addWidget(self.removeButton, 3, 1, 1, 1) + self.addButton = QtWidgets.QPushButton(ChangeSignatureDialog) + self.addButton.setObjectName("addButton") + self.gridlayout.addWidget(self.addButton, 4, 1, 1, 1) + spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.gridlayout.addItem(spacerItem, 5, 1, 1, 1) + self.verticalLayout.addLayout(self.gridlayout) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.label_2 = QtWidgets.QLabel(ChangeSignatureDialog) + self.label_2.setObjectName("label_2") + self.horizontalLayout.addWidget(self.label_2) + self.autodefEdit = QtWidgets.QLineEdit(ChangeSignatureDialog) + self.autodefEdit.setClearButtonEnabled(True) + self.autodefEdit.setObjectName("autodefEdit") + self.horizontalLayout.addWidget(self.autodefEdit) + self.verticalLayout.addLayout(self.horizontalLayout) + self.hierarchyCheckBox = QtWidgets.QCheckBox(ChangeSignatureDialog) + self.hierarchyCheckBox.setObjectName("hierarchyCheckBox") + self.verticalLayout.addWidget(self.hierarchyCheckBox) + self.buttonBox = QtWidgets.QDialogButtonBox(ChangeSignatureDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + self.label_2.setBuddy(self.autodefEdit) + + self.retranslateUi(ChangeSignatureDialog) + self.buttonBox.rejected.connect(ChangeSignatureDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(ChangeSignatureDialog) + ChangeSignatureDialog.setTabOrder(self.parameterList, self.upButton) + ChangeSignatureDialog.setTabOrder(self.upButton, self.downButton) + ChangeSignatureDialog.setTabOrder(self.downButton, self.removeButton) + ChangeSignatureDialog.setTabOrder(self.removeButton, self.addButton) + ChangeSignatureDialog.setTabOrder(self.addButton, self.autodefEdit) + ChangeSignatureDialog.setTabOrder(self.autodefEdit, self.hierarchyCheckBox) + ChangeSignatureDialog.setTabOrder(self.hierarchyCheckBox, self.buttonBox) + + def retranslateUi(self, ChangeSignatureDialog): + _translate = QtCore.QCoreApplication.translate + ChangeSignatureDialog.setWindowTitle(_translate("ChangeSignatureDialog", "Change Method Signature")) + self.label.setText(_translate("ChangeSignatureDialog", "Parameters")) + self.upButton.setToolTip(_translate("ChangeSignatureDialog", "Move the selected parameter up")) + self.upButton.setText(_translate("ChangeSignatureDialog", "Move &Up")) + self.downButton.setToolTip(_translate("ChangeSignatureDialog", "Move the selected parameter down")) + self.downButton.setText(_translate("ChangeSignatureDialog", "Move &Down")) + self.removeButton.setToolTip(_translate("ChangeSignatureDialog", "Remove the selected parameter")) + self.removeButton.setText(_translate("ChangeSignatureDialog", "&Remove")) + self.addButton.setToolTip(_translate("ChangeSignatureDialog", "Add a new parameter")) + self.addButton.setText(_translate("ChangeSignatureDialog", "&Add new parameter")) + self.label_2.setText(_translate("ChangeSignatureDialog", "Default &value for moved parameters:")) + self.autodefEdit.setToolTip(_translate("ChangeSignatureDialog", "Enter the default value for parameters moved after one with a default value")) + self.hierarchyCheckBox.setText(_translate("ChangeSignatureDialog", "Do for all matching methods in class &hierarchy")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + ChangeSignatureDialog = QtWidgets.QDialog() + ui = Ui_ChangeSignatureDialog() + ui.setupUi(ChangeSignatureDialog) + ChangeSignatureDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_ConfirmationDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,48 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ConfirmationDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_ConfirmationDialog(object): + def setupUi(self, ConfirmationDialog): + ConfirmationDialog.setObjectName("ConfirmationDialog") + ConfirmationDialog.resize(500, 58) + ConfirmationDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(ConfirmationDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.description = QtWidgets.QLabel(ConfirmationDialog) + self.description.setWordWrap(True) + self.description.setObjectName("description") + self.vboxlayout.addWidget(self.description) + self.buttonBox = QtWidgets.QDialogButtonBox(ConfirmationDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(ConfirmationDialog) + self.buttonBox.rejected.connect(ConfirmationDialog.reject) # type: ignore + self.buttonBox.accepted.connect(ConfirmationDialog.accept) # type: ignore + QtCore.QMetaObject.connectSlotsByName(ConfirmationDialog) + + def retranslateUi(self, ConfirmationDialog): + _translate = QtCore.QCoreApplication.translate + ConfirmationDialog.setWindowTitle(_translate("ConfirmationDialog", "Confirmation")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + ConfirmationDialog = QtWidgets.QDialog() + ui = Ui_ConfirmationDialog() + ui.setupUi(ConfirmationDialog) + ConfirmationDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_ErrorDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,66 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ErrorDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_ErrorDialog(object): + def setupUi(self, ErrorDialog): + ErrorDialog.setObjectName("ErrorDialog") + ErrorDialog.resize(500, 400) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(ErrorDialog.sizePolicy().hasHeightForWidth()) + ErrorDialog.setSizePolicy(sizePolicy) + ErrorDialog.setWindowTitle("") + ErrorDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(ErrorDialog) + self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetFixedSize) + self.verticalLayout.setObjectName("verticalLayout") + self.errorMessageLabel = QtWidgets.QLabel(ErrorDialog) + self.errorMessageLabel.setText("") + self.errorMessageLabel.setWordWrap(True) + self.errorMessageLabel.setObjectName("errorMessageLabel") + self.verticalLayout.addWidget(self.errorMessageLabel) + self.tracebackButton = QtWidgets.QPushButton(ErrorDialog) + self.tracebackButton.setMinimumSize(QtCore.QSize(480, 0)) + self.tracebackButton.setCheckable(True) + self.tracebackButton.setObjectName("tracebackButton") + self.verticalLayout.addWidget(self.tracebackButton) + self.tracebackEdit = QtWidgets.QPlainTextEdit(ErrorDialog) + self.tracebackEdit.setTabChangesFocus(True) + self.tracebackEdit.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.NoWrap) + self.tracebackEdit.setReadOnly(True) + self.tracebackEdit.setObjectName("tracebackEdit") + self.verticalLayout.addWidget(self.tracebackEdit) + self.buttonBox = QtWidgets.QDialogButtonBox(ErrorDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(ErrorDialog) + self.buttonBox.accepted.connect(ErrorDialog.accept) # type: ignore + self.buttonBox.rejected.connect(ErrorDialog.reject) # type: ignore + self.tracebackButton.toggled['bool'].connect(self.tracebackEdit.setVisible) # type: ignore + QtCore.QMetaObject.connectSlotsByName(ErrorDialog) + + def retranslateUi(self, ErrorDialog): + _translate = QtCore.QCoreApplication.translate + self.tracebackButton.setText(_translate("ErrorDialog", "Traceback")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + ErrorDialog = QtWidgets.QDialog() + ui = Ui_ErrorDialog() + ui.setupUi(ErrorDialog) + ErrorDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_ExtractDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,64 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/ExtractDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_ExtractDialog(object): + def setupUi(self, ExtractDialog): + ExtractDialog.setObjectName("ExtractDialog") + ExtractDialog.resize(500, 123) + ExtractDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(ExtractDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(ExtractDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.newNameEdit = QtWidgets.QLineEdit(ExtractDialog) + self.newNameEdit.setClearButtonEnabled(True) + self.newNameEdit.setObjectName("newNameEdit") + self.hboxlayout.addWidget(self.newNameEdit) + self.verticalLayout.addLayout(self.hboxlayout) + self.similarCheckBox = QtWidgets.QCheckBox(ExtractDialog) + self.similarCheckBox.setChecked(True) + self.similarCheckBox.setObjectName("similarCheckBox") + self.verticalLayout.addWidget(self.similarCheckBox) + self.globalCheckBox = QtWidgets.QCheckBox(ExtractDialog) + self.globalCheckBox.setObjectName("globalCheckBox") + self.verticalLayout.addWidget(self.globalCheckBox) + self.buttonBox = QtWidgets.QDialogButtonBox(ExtractDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(ExtractDialog) + self.buttonBox.rejected.connect(ExtractDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(ExtractDialog) + ExtractDialog.setTabOrder(self.newNameEdit, self.similarCheckBox) + ExtractDialog.setTabOrder(self.similarCheckBox, self.buttonBox) + + def retranslateUi(self, ExtractDialog): + _translate = QtCore.QCoreApplication.translate + ExtractDialog.setWindowTitle(_translate("ExtractDialog", "Extract")) + self.label.setText(_translate("ExtractDialog", "New Name:")) + self.newNameEdit.setToolTip(_translate("ExtractDialog", "Enter the new name")) + self.similarCheckBox.setText(_translate("ExtractDialog", "Extract similar expressions/statements")) + self.globalCheckBox.setText(_translate("ExtractDialog", "Make the extracted object global")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + ExtractDialog = QtWidgets.QDialog() + ui = Ui_ExtractDialog() + ui.setupUi(ExtractDialog) + ExtractDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_GetterSetterDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,68 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/GetterSetterDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_GetterSetterDialog(object): + def setupUi(self, GetterSetterDialog): + GetterSetterDialog.setObjectName("GetterSetterDialog") + GetterSetterDialog.resize(500, 132) + self.gridlayout = QtWidgets.QGridLayout(GetterSetterDialog) + self.gridlayout.setContentsMargins(6, 6, 6, 6) + self.gridlayout.setObjectName("gridlayout") + self.typeCheckBox = QtWidgets.QCheckBox(GetterSetterDialog) + self.typeCheckBox.setObjectName("typeCheckBox") + self.gridlayout.addWidget(self.typeCheckBox, 0, 0, 1, 2) + self.label = QtWidgets.QLabel(GetterSetterDialog) + self.label.setObjectName("label") + self.gridlayout.addWidget(self.label, 1, 0, 1, 1) + self.getterEdit = QtWidgets.QLineEdit(GetterSetterDialog) + self.getterEdit.setClearButtonEnabled(True) + self.getterEdit.setObjectName("getterEdit") + self.gridlayout.addWidget(self.getterEdit, 1, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(GetterSetterDialog) + self.label_2.setObjectName("label_2") + self.gridlayout.addWidget(self.label_2, 2, 0, 1, 1) + self.setterEdit = QtWidgets.QLineEdit(GetterSetterDialog) + self.setterEdit.setClearButtonEnabled(True) + self.setterEdit.setObjectName("setterEdit") + self.gridlayout.addWidget(self.setterEdit, 2, 1, 1, 1) + self.buttonBox = QtWidgets.QDialogButtonBox(GetterSetterDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.gridlayout.addWidget(self.buttonBox, 3, 0, 1, 2) + + self.retranslateUi(GetterSetterDialog) + self.buttonBox.accepted.connect(GetterSetterDialog.accept) # type: ignore + self.buttonBox.rejected.connect(GetterSetterDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(GetterSetterDialog) + GetterSetterDialog.setTabOrder(self.typeCheckBox, self.getterEdit) + GetterSetterDialog.setTabOrder(self.getterEdit, self.setterEdit) + GetterSetterDialog.setTabOrder(self.setterEdit, self.buttonBox) + + def retranslateUi(self, GetterSetterDialog): + _translate = QtCore.QCoreApplication.translate + GetterSetterDialog.setWindowTitle(_translate("GetterSetterDialog", "Getter and Setter Method Names")) + self.typeCheckBox.setToolTip(_translate("GetterSetterDialog", "Select to create getter and setter method names with an underscore")) + self.typeCheckBox.setText(_translate("GetterSetterDialog", "Use underscore as separator")) + self.label.setText(_translate("GetterSetterDialog", "Getter:")) + self.getterEdit.setToolTip(_translate("GetterSetterDialog", "Enter the name of the getter method")) + self.label_2.setText(_translate("GetterSetterDialog", "Setter:")) + self.setterEdit.setToolTip(_translate("GetterSetterDialog", "Enter the name of the setter method")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + GetterSetterDialog = QtWidgets.QDialog() + ui = Ui_GetterSetterDialog() + ui.setupUi(GetterSetterDialog) + GetterSetterDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_HelpDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,52 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/HelpDialog.ui' +# +# Created by: PyQt6 UI code generator 6.4.0 +# +# 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_HelpDialog(object): + def setupUi(self, HelpDialog): + HelpDialog.setObjectName("HelpDialog") + HelpDialog.resize(700, 650) + HelpDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(HelpDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.helpEdit = QtWidgets.QTextEdit(HelpDialog) + self.helpEdit.setReadOnly(True) + self.helpEdit.setObjectName("helpEdit") + self.verticalLayout.addWidget(self.helpEdit) + self.searchWidget = EricTextEditSearchWidget(HelpDialog) + self.searchWidget.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus) + self.searchWidget.setObjectName("searchWidget") + self.verticalLayout.addWidget(self.searchWidget) + self.buttonBox = QtWidgets.QDialogButtonBox(HelpDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(HelpDialog) + self.buttonBox.accepted.connect(HelpDialog.accept) # type: ignore + self.buttonBox.rejected.connect(HelpDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(HelpDialog) + HelpDialog.setTabOrder(self.helpEdit, self.buttonBox) + + def retranslateUi(self, HelpDialog): + _translate = QtCore.QCoreApplication.translate + HelpDialog.setWindowTitle(_translate("HelpDialog", "Help")) +from eric7.EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + HelpDialog = QtWidgets.QDialog() + ui = Ui_HelpDialog() + ui.setupUi(HelpDialog) + HelpDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_HistoryDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,105 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/HistoryDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_HistoryDialog(object): + def setupUi(self, HistoryDialog): + HistoryDialog.setObjectName("HistoryDialog") + HistoryDialog.resize(800, 600) + HistoryDialog.setSizeGripEnabled(True) + self.verticalLayout_3 = QtWidgets.QVBoxLayout(HistoryDialog) + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.header = QtWidgets.QLabel(HistoryDialog) + self.header.setWordWrap(True) + self.header.setObjectName("header") + self.verticalLayout_3.addWidget(self.header) + self.splitter_2 = QtWidgets.QSplitter(HistoryDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth()) + self.splitter_2.setSizePolicy(sizePolicy) + self.splitter_2.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.splitter_2.setObjectName("splitter_2") + self.splitter = QtWidgets.QSplitter(self.splitter_2) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(1) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth()) + self.splitter.setSizePolicy(sizePolicy) + self.splitter.setOrientation(QtCore.Qt.Orientation.Vertical) + self.splitter.setObjectName("splitter") + self.widget = QtWidgets.QWidget(self.splitter) + self.widget.setObjectName("widget") + self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget) + self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.description = QtWidgets.QLabel(self.widget) + self.description.setWordWrap(True) + self.description.setObjectName("description") + self.verticalLayout_2.addWidget(self.description) + self.undoChangesList = QtWidgets.QListWidget(self.widget) + self.undoChangesList.setAlternatingRowColors(True) + self.undoChangesList.setObjectName("undoChangesList") + self.verticalLayout_2.addWidget(self.undoChangesList) + self.widget1 = QtWidgets.QWidget(self.splitter) + self.widget1.setObjectName("widget1") + self.verticalLayout = QtWidgets.QVBoxLayout(self.widget1) + self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.verticalLayout.setObjectName("verticalLayout") + self.description_2 = QtWidgets.QLabel(self.widget1) + self.description_2.setWordWrap(True) + self.description_2.setObjectName("description_2") + self.verticalLayout.addWidget(self.description_2) + self.redoChangesList = QtWidgets.QListWidget(self.widget1) + self.redoChangesList.setAlternatingRowColors(True) + self.redoChangesList.setObjectName("redoChangesList") + self.verticalLayout.addWidget(self.redoChangesList) + self.previewEdit = QtWidgets.QTextEdit(self.splitter_2) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(2) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.previewEdit.sizePolicy().hasHeightForWidth()) + self.previewEdit.setSizePolicy(sizePolicy) + self.previewEdit.setTabChangesFocus(True) + self.previewEdit.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) + self.previewEdit.setReadOnly(True) + self.previewEdit.setObjectName("previewEdit") + self.verticalLayout_3.addWidget(self.splitter_2) + self.buttonBox = QtWidgets.QDialogButtonBox(HistoryDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout_3.addWidget(self.buttonBox) + + self.retranslateUi(HistoryDialog) + self.buttonBox.accepted.connect(HistoryDialog.accept) # type: ignore + self.buttonBox.rejected.connect(HistoryDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(HistoryDialog) + HistoryDialog.setTabOrder(self.undoChangesList, self.redoChangesList) + HistoryDialog.setTabOrder(self.redoChangesList, self.previewEdit) + + def retranslateUi(self, HistoryDialog): + _translate = QtCore.QCoreApplication.translate + HistoryDialog.setWindowTitle(_translate("HistoryDialog", "Refactoring History")) + self.description.setText(_translate("HistoryDialog", "Undo History")) + self.undoChangesList.setToolTip(_translate("HistoryDialog", "Select a change to preview on the right")) + self.description_2.setText(_translate("HistoryDialog", "Redo History")) + self.redoChangesList.setToolTip(_translate("HistoryDialog", "Select a change to preview on the right")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + HistoryDialog = QtWidgets.QDialog() + ui = Ui_HistoryDialog() + ui.setupUi(HistoryDialog) + HistoryDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_InlineArgumentDefaultDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,51 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/InlineArgumentDefaultDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_InlineArgumentDefaultDialog(object): + def setupUi(self, InlineArgumentDefaultDialog): + InlineArgumentDefaultDialog.setObjectName("InlineArgumentDefaultDialog") + InlineArgumentDefaultDialog.resize(350, 400) + InlineArgumentDefaultDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(InlineArgumentDefaultDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.label = QtWidgets.QLabel(InlineArgumentDefaultDialog) + self.label.setObjectName("label") + self.vboxlayout.addWidget(self.label) + self.parameterList = QtWidgets.QListWidget(InlineArgumentDefaultDialog) + self.parameterList.setObjectName("parameterList") + self.vboxlayout.addWidget(self.parameterList) + self.buttonBox = QtWidgets.QDialogButtonBox(InlineArgumentDefaultDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.NoButton|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(InlineArgumentDefaultDialog) + self.buttonBox.rejected.connect(InlineArgumentDefaultDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(InlineArgumentDefaultDialog) + InlineArgumentDefaultDialog.setTabOrder(self.parameterList, self.buttonBox) + + def retranslateUi(self, InlineArgumentDefaultDialog): + _translate = QtCore.QCoreApplication.translate + InlineArgumentDefaultDialog.setWindowTitle(_translate("InlineArgumentDefaultDialog", "Inline Argument Default")) + self.label.setText(_translate("InlineArgumentDefaultDialog", "Choose which to inline:")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + InlineArgumentDefaultDialog = QtWidgets.QDialog() + ui = Ui_InlineArgumentDefaultDialog() + ui.setupUi(InlineArgumentDefaultDialog) + InlineArgumentDefaultDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_InlineDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,62 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/InlineDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_InlineDialog(object): + def setupUi(self, InlineDialog): + InlineDialog.setObjectName("InlineDialog") + InlineDialog.resize(500, 133) + InlineDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(InlineDialog) + self.verticalLayout.setContentsMargins(6, 6, 6, 6) + self.verticalLayout.setSpacing(6) + self.verticalLayout.setObjectName("verticalLayout") + self.description = QtWidgets.QLabel(InlineDialog) + self.description.setObjectName("description") + self.verticalLayout.addWidget(self.description) + self.removeCheckBox = QtWidgets.QCheckBox(InlineDialog) + self.removeCheckBox.setChecked(True) + self.removeCheckBox.setObjectName("removeCheckBox") + self.verticalLayout.addWidget(self.removeCheckBox) + self.currentCheckBox = QtWidgets.QCheckBox(InlineDialog) + self.currentCheckBox.setObjectName("currentCheckBox") + self.verticalLayout.addWidget(self.currentCheckBox) + self.hierarchyCheckBox = QtWidgets.QCheckBox(InlineDialog) + self.hierarchyCheckBox.setObjectName("hierarchyCheckBox") + self.verticalLayout.addWidget(self.hierarchyCheckBox) + self.buttonBox = QtWidgets.QDialogButtonBox(InlineDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(InlineDialog) + self.buttonBox.rejected.connect(InlineDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(InlineDialog) + InlineDialog.setTabOrder(self.removeCheckBox, self.currentCheckBox) + InlineDialog.setTabOrder(self.currentCheckBox, self.hierarchyCheckBox) + InlineDialog.setTabOrder(self.hierarchyCheckBox, self.buttonBox) + + def retranslateUi(self, InlineDialog): + _translate = QtCore.QCoreApplication.translate + InlineDialog.setWindowTitle(_translate("InlineDialog", "Inline")) + self.removeCheckBox.setText(_translate("InlineDialog", "&Remove the definition")) + self.currentCheckBox.setText(_translate("InlineDialog", "Only inline the ¤t occurrence")) + self.hierarchyCheckBox.setText(_translate("InlineDialog", "Do for all matching methods in class &hierarchy")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + InlineDialog = QtWidgets.QDialog() + ui = Ui_InlineDialog() + ui.setupUi(InlineDialog) + InlineDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_IntroduceFactoryDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,68 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/IntroduceFactoryDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_IntroduceFactoryDialog(object): + def setupUi(self, IntroduceFactoryDialog): + IntroduceFactoryDialog.setObjectName("IntroduceFactoryDialog") + IntroduceFactoryDialog.resize(500, 118) + IntroduceFactoryDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(IntroduceFactoryDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setObjectName("vboxlayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(IntroduceFactoryDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.nameEdit = QtWidgets.QLineEdit(IntroduceFactoryDialog) + self.nameEdit.setClearButtonEnabled(True) + self.nameEdit.setObjectName("nameEdit") + self.hboxlayout.addWidget(self.nameEdit) + self.vboxlayout.addLayout(self.hboxlayout) + self.staticButton = QtWidgets.QRadioButton(IntroduceFactoryDialog) + self.staticButton.setChecked(True) + self.staticButton.setObjectName("staticButton") + self.vboxlayout.addWidget(self.staticButton) + self.globalButton = QtWidgets.QRadioButton(IntroduceFactoryDialog) + self.globalButton.setObjectName("globalButton") + self.vboxlayout.addWidget(self.globalButton) + self.buttonBox = QtWidgets.QDialogButtonBox(IntroduceFactoryDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(IntroduceFactoryDialog) + self.buttonBox.rejected.connect(IntroduceFactoryDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(IntroduceFactoryDialog) + IntroduceFactoryDialog.setTabOrder(self.nameEdit, self.staticButton) + IntroduceFactoryDialog.setTabOrder(self.staticButton, self.globalButton) + IntroduceFactoryDialog.setTabOrder(self.globalButton, self.buttonBox) + + def retranslateUi(self, IntroduceFactoryDialog): + _translate = QtCore.QCoreApplication.translate + IntroduceFactoryDialog.setWindowTitle(_translate("IntroduceFactoryDialog", "Introduce Factory Method")) + self.label.setText(_translate("IntroduceFactoryDialog", "Factory Method Name:")) + self.nameEdit.setToolTip(_translate("IntroduceFactoryDialog", "Enter the name of the factory method")) + self.staticButton.setToolTip(_translate("IntroduceFactoryDialog", "Select to make the factory method a static method")) + self.staticButton.setText(_translate("IntroduceFactoryDialog", "Use static method")) + self.globalButton.setToolTip(_translate("IntroduceFactoryDialog", "Select to make the factory method a global function")) + self.globalButton.setText(_translate("IntroduceFactoryDialog", "Use global function")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + IntroduceFactoryDialog = QtWidgets.QDialog() + ui = Ui_IntroduceFactoryDialog() + ui.setupUi(IntroduceFactoryDialog) + IntroduceFactoryDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_IntroduceParameterDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,54 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/IntroduceParameterDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_IntroduceParameterDialog(object): + def setupUi(self, IntroduceParameterDialog): + IntroduceParameterDialog.setObjectName("IntroduceParameterDialog") + IntroduceParameterDialog.resize(500, 66) + IntroduceParameterDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(IntroduceParameterDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(IntroduceParameterDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.nameEdit = QtWidgets.QLineEdit(IntroduceParameterDialog) + self.nameEdit.setClearButtonEnabled(True) + self.nameEdit.setObjectName("nameEdit") + self.hboxlayout.addWidget(self.nameEdit) + self.vboxlayout.addLayout(self.hboxlayout) + self.buttonBox = QtWidgets.QDialogButtonBox(IntroduceParameterDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(IntroduceParameterDialog) + self.buttonBox.rejected.connect(IntroduceParameterDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(IntroduceParameterDialog) + + def retranslateUi(self, IntroduceParameterDialog): + _translate = QtCore.QCoreApplication.translate + IntroduceParameterDialog.setWindowTitle(_translate("IntroduceParameterDialog", "Introduce Parameter")) + self.label.setText(_translate("IntroduceParameterDialog", "New Parameter Name:")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + IntroduceParameterDialog = QtWidgets.QDialog() + ui = Ui_IntroduceParameterDialog() + ui.setupUi(IntroduceParameterDialog) + IntroduceParameterDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_MatchesDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,55 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/MatchesDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_MatchesDialog(object): + def setupUi(self, MatchesDialog): + MatchesDialog.setObjectName("MatchesDialog") + MatchesDialog.resize(649, 480) + MatchesDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(MatchesDialog) + self.vboxlayout.setProperty("margin", 6) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.matchesList = QtWidgets.QTreeWidget(MatchesDialog) + self.matchesList.setAlternatingRowColors(True) + self.matchesList.setRootIsDecorated(False) + self.matchesList.setItemsExpandable(False) + self.matchesList.setObjectName("matchesList") + self.vboxlayout.addWidget(self.matchesList) + self.buttonBox = QtWidgets.QDialogButtonBox(MatchesDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(MatchesDialog) + self.buttonBox.rejected.connect(MatchesDialog.reject) # type: ignore + self.buttonBox.accepted.connect(MatchesDialog.accept) # type: ignore + QtCore.QMetaObject.connectSlotsByName(MatchesDialog) + + def retranslateUi(self, MatchesDialog): + _translate = QtCore.QCoreApplication.translate + MatchesDialog.setWindowTitle(_translate("MatchesDialog", "Refactoring Matches")) + self.matchesList.setSortingEnabled(True) + self.matchesList.headerItem().setText(0, _translate("MatchesDialog", "Filename")) + self.matchesList.headerItem().setText(1, _translate("MatchesDialog", "Line")) + self.matchesList.headerItem().setText(2, _translate("MatchesDialog", "Confidence")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + MatchesDialog = QtWidgets.QDialog() + ui = Ui_MatchesDialog() + ui.setupUi(MatchesDialog) + MatchesDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_MethodToMethodObjectDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,54 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/MethodToMethodObjectDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_MethodToMethodObjectDialog(object): + def setupUi(self, MethodToMethodObjectDialog): + MethodToMethodObjectDialog.setObjectName("MethodToMethodObjectDialog") + MethodToMethodObjectDialog.resize(500, 66) + MethodToMethodObjectDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(MethodToMethodObjectDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(MethodToMethodObjectDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.nameEdit = QtWidgets.QLineEdit(MethodToMethodObjectDialog) + self.nameEdit.setClearButtonEnabled(True) + self.nameEdit.setObjectName("nameEdit") + self.hboxlayout.addWidget(self.nameEdit) + self.vboxlayout.addLayout(self.hboxlayout) + self.buttonBox = QtWidgets.QDialogButtonBox(MethodToMethodObjectDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(MethodToMethodObjectDialog) + self.buttonBox.rejected.connect(MethodToMethodObjectDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(MethodToMethodObjectDialog) + + def retranslateUi(self, MethodToMethodObjectDialog): + _translate = QtCore.QCoreApplication.translate + MethodToMethodObjectDialog.setWindowTitle(_translate("MethodToMethodObjectDialog", "Replace Method With Method Object")) + self.label.setText(_translate("MethodToMethodObjectDialog", "New Class Name:")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + MethodToMethodObjectDialog = QtWidgets.QDialog() + ui = Ui_MethodToMethodObjectDialog() + ui.setupUi(MethodToMethodObjectDialog) + MethodToMethodObjectDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_MoveDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,94 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/MoveDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_MoveDialog(object): + def setupUi(self, MoveDialog): + MoveDialog.setObjectName("MoveDialog") + MoveDialog.resize(500, 108) + MoveDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(MoveDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.moveStackWidget = QtWidgets.QStackedWidget(MoveDialog) + self.moveStackWidget.setObjectName("moveStackWidget") + self.frontPage = QtWidgets.QWidget() + self.frontPage.setObjectName("frontPage") + self.moveStackWidget.addWidget(self.frontPage) + self.moveMethodPage = QtWidgets.QWidget() + self.moveMethodPage.setObjectName("moveMethodPage") + self.gridLayout = QtWidgets.QGridLayout(self.moveMethodPage) + self.gridLayout.setContentsMargins(0, 0, 0, 0) + self.gridLayout.setObjectName("gridLayout") + self.label_2 = QtWidgets.QLabel(self.moveMethodPage) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) + self.methodEdit = QtWidgets.QLineEdit(self.moveMethodPage) + self.methodEdit.setObjectName("methodEdit") + self.gridLayout.addWidget(self.methodEdit, 1, 1, 1, 1) + self.label = QtWidgets.QLabel(self.moveMethodPage) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.attributeEdit = QtWidgets.QLineEdit(self.moveMethodPage) + self.attributeEdit.setObjectName("attributeEdit") + self.gridLayout.addWidget(self.attributeEdit, 0, 1, 1, 1) + self.moveStackWidget.addWidget(self.moveMethodPage) + self.moveGlobalMethodOrModulePage = QtWidgets.QWidget() + self.moveGlobalMethodOrModulePage.setObjectName("moveGlobalMethodOrModulePage") + self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.moveGlobalMethodOrModulePage) + self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.destinationLabel = QtWidgets.QLabel(self.moveGlobalMethodOrModulePage) + self.destinationLabel.setObjectName("destinationLabel") + self.horizontalLayout.addWidget(self.destinationLabel) + self.destinationEdit = QtWidgets.QLineEdit(self.moveGlobalMethodOrModulePage) + self.destinationEdit.setClearButtonEnabled(True) + self.destinationEdit.setObjectName("destinationEdit") + self.horizontalLayout.addWidget(self.destinationEdit) + self.selectButton = QtWidgets.QPushButton(self.moveGlobalMethodOrModulePage) + self.selectButton.setObjectName("selectButton") + self.horizontalLayout.addWidget(self.selectButton) + self.verticalLayout_2.addLayout(self.horizontalLayout) + spacerItem = QtWidgets.QSpacerItem(20, 21, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout_2.addItem(spacerItem) + self.moveStackWidget.addWidget(self.moveGlobalMethodOrModulePage) + self.verticalLayout.addWidget(self.moveStackWidget) + self.buttonBox = QtWidgets.QDialogButtonBox(MoveDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(MoveDialog) + self.moveStackWidget.setCurrentIndex(2) + self.buttonBox.rejected.connect(MoveDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(MoveDialog) + MoveDialog.setTabOrder(self.attributeEdit, self.methodEdit) + MoveDialog.setTabOrder(self.methodEdit, self.destinationEdit) + MoveDialog.setTabOrder(self.destinationEdit, self.selectButton) + + def retranslateUi(self, MoveDialog): + _translate = QtCore.QCoreApplication.translate + self.label_2.setText(_translate("MoveDialog", "New Method Name:")) + self.methodEdit.setToolTip(_translate("MoveDialog", "Enter the new method name")) + self.label.setText(_translate("MoveDialog", "Destination Attribute:")) + self.attributeEdit.setToolTip(_translate("MoveDialog", "Enter the name of the attribute to move to")) + self.selectButton.setText(_translate("MoveDialog", "...")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + MoveDialog = QtWidgets.QDialog() + ui = Ui_MoveDialog() + ui.setupUi(MoveDialog) + MoveDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_PreviewDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,75 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/PreviewDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_PreviewDialog(object): + def setupUi(self, PreviewDialog): + PreviewDialog.setObjectName("PreviewDialog") + PreviewDialog.resize(800, 600) + PreviewDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(PreviewDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.gridlayout = QtWidgets.QGridLayout() + self.gridlayout.setObjectName("gridlayout") + self.description = QtWidgets.QLabel(PreviewDialog) + self.description.setWordWrap(True) + self.description.setObjectName("description") + self.gridlayout.addWidget(self.description, 0, 0, 1, 1) + self.previewEdit = QtWidgets.QTextEdit(PreviewDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(2) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.previewEdit.sizePolicy().hasHeightForWidth()) + self.previewEdit.setSizePolicy(sizePolicy) + self.previewEdit.setTabChangesFocus(True) + self.previewEdit.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) + self.previewEdit.setReadOnly(True) + self.previewEdit.setObjectName("previewEdit") + self.gridlayout.addWidget(self.previewEdit, 0, 1, 2, 1) + self.changesList = QtWidgets.QListWidget(PreviewDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(1) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.changesList.sizePolicy().hasHeightForWidth()) + self.changesList.setSizePolicy(sizePolicy) + self.changesList.setAlternatingRowColors(True) + self.changesList.setObjectName("changesList") + self.gridlayout.addWidget(self.changesList, 1, 0, 1, 1) + self.vboxlayout.addLayout(self.gridlayout) + self.buttonBox = QtWidgets.QDialogButtonBox(PreviewDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.NoButton) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(PreviewDialog) + self.buttonBox.accepted.connect(PreviewDialog.accept) # type: ignore + self.buttonBox.rejected.connect(PreviewDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(PreviewDialog) + PreviewDialog.setTabOrder(self.changesList, self.previewEdit) + PreviewDialog.setTabOrder(self.previewEdit, self.buttonBox) + + def retranslateUi(self, PreviewDialog): + _translate = QtCore.QCoreApplication.translate + PreviewDialog.setWindowTitle(_translate("PreviewDialog", "Preview Changes")) + self.description.setText(_translate("PreviewDialog", "Changes")) + self.changesList.setToolTip(_translate("PreviewDialog", "Select a change to preview on the right")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + PreviewDialog = QtWidgets.QDialog() + ui = Ui_PreviewDialog() + ui.setupUi(PreviewDialog) + PreviewDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_RenameDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,94 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/RenameDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_RenameDialog(object): + def setupUi(self, RenameDialog): + RenameDialog.setObjectName("RenameDialog") + RenameDialog.resize(500, 184) + RenameDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(RenameDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.hboxlayout = QtWidgets.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + self.label = QtWidgets.QLabel(RenameDialog) + self.label.setObjectName("label") + self.hboxlayout.addWidget(self.label) + self.newNameEdit = QtWidgets.QLineEdit(RenameDialog) + self.newNameEdit.setClearButtonEnabled(True) + self.newNameEdit.setObjectName("newNameEdit") + self.hboxlayout.addWidget(self.newNameEdit) + self.verticalLayout.addLayout(self.hboxlayout) + self.allCheckBox = QtWidgets.QCheckBox(RenameDialog) + self.allCheckBox.setObjectName("allCheckBox") + self.verticalLayout.addWidget(self.allCheckBox) + self.stringsCheckBox = QtWidgets.QCheckBox(RenameDialog) + self.stringsCheckBox.setChecked(True) + self.stringsCheckBox.setObjectName("stringsCheckBox") + self.verticalLayout.addWidget(self.stringsCheckBox) + self.groupBox = QtWidgets.QGroupBox(RenameDialog) + self.groupBox.setObjectName("groupBox") + self.hboxlayout1 = QtWidgets.QHBoxLayout(self.groupBox) + self.hboxlayout1.setContentsMargins(6, 6, 6, 6) + self.hboxlayout1.setSpacing(6) + self.hboxlayout1.setObjectName("hboxlayout1") + self.ignoreButton = QtWidgets.QRadioButton(self.groupBox) + self.ignoreButton.setChecked(True) + self.ignoreButton.setObjectName("ignoreButton") + self.hboxlayout1.addWidget(self.ignoreButton) + self.matchButton = QtWidgets.QRadioButton(self.groupBox) + self.matchButton.setObjectName("matchButton") + self.hboxlayout1.addWidget(self.matchButton) + self.askButton = QtWidgets.QRadioButton(self.groupBox) + self.askButton.setObjectName("askButton") + self.hboxlayout1.addWidget(self.askButton) + self.verticalLayout.addWidget(self.groupBox) + self.buttonBox = QtWidgets.QDialogButtonBox(RenameDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(RenameDialog) + self.buttonBox.rejected.connect(RenameDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(RenameDialog) + RenameDialog.setTabOrder(self.newNameEdit, self.allCheckBox) + RenameDialog.setTabOrder(self.allCheckBox, self.stringsCheckBox) + RenameDialog.setTabOrder(self.stringsCheckBox, self.ignoreButton) + RenameDialog.setTabOrder(self.ignoreButton, self.matchButton) + RenameDialog.setTabOrder(self.matchButton, self.askButton) + RenameDialog.setTabOrder(self.askButton, self.buttonBox) + + def retranslateUi(self, RenameDialog): + _translate = QtCore.QCoreApplication.translate + RenameDialog.setWindowTitle(_translate("RenameDialog", "Rename")) + self.label.setText(_translate("RenameDialog", "New Name:")) + self.newNameEdit.setToolTip(_translate("RenameDialog", "Enter the new name")) + self.allCheckBox.setToolTip(_translate("RenameDialog", "Select to perform the refactoring for all matching methods in class hierarchy")) + self.allCheckBox.setText(_translate("RenameDialog", "Do for all matching methods in class hierarchy")) + self.stringsCheckBox.setToolTip(_translate("RenameDialog", "Select to rename occurrences in strings and comments where the name is visible")) + self.stringsCheckBox.setText(_translate("RenameDialog", "Rename occurrences in strings and comments")) + self.groupBox.setTitle(_translate("RenameDialog", "What to do about unsure occurrences?")) + self.ignoreButton.setToolTip(_translate("RenameDialog", "Select to ignore unsure occurrences")) + self.ignoreButton.setText(_translate("RenameDialog", "Ignore")) + self.matchButton.setToolTip(_translate("RenameDialog", "Select to refactor unsure occurrences")) + self.matchButton.setText(_translate("RenameDialog", "Match")) + self.askButton.setToolTip(_translate("RenameDialog", "Select to ask for each unsure occurrence")) + self.askButton.setText(_translate("RenameDialog", "Ask")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + RenameDialog = QtWidgets.QDialog() + ui = Ui_RenameDialog() + ui.setupUi(RenameDialog) + RenameDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_RestructureDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,130 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/RestructureDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_RestructureDialog(object): + def setupUi(self, RestructureDialog): + RestructureDialog.setObjectName("RestructureDialog") + RestructureDialog.resize(500, 700) + RestructureDialog.setSizeGripEnabled(True) + self.gridlayout = QtWidgets.QGridLayout(RestructureDialog) + self.gridlayout.setContentsMargins(6, 6, 6, 6) + self.gridlayout.setObjectName("gridlayout") + self.label = QtWidgets.QLabel(RestructureDialog) + self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop) + self.label.setObjectName("label") + self.gridlayout.addWidget(self.label, 0, 0, 1, 1) + self.patternEdit = QtWidgets.QTextEdit(RestructureDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(1) + sizePolicy.setHeightForWidth(self.patternEdit.sizePolicy().hasHeightForWidth()) + self.patternEdit.setSizePolicy(sizePolicy) + self.patternEdit.setAcceptRichText(False) + self.patternEdit.setObjectName("patternEdit") + self.gridlayout.addWidget(self.patternEdit, 0, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(RestructureDialog) + self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop) + self.label_2.setObjectName("label_2") + self.gridlayout.addWidget(self.label_2, 1, 0, 1, 1) + self.goalEdit = QtWidgets.QTextEdit(RestructureDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(1) + sizePolicy.setHeightForWidth(self.goalEdit.sizePolicy().hasHeightForWidth()) + self.goalEdit.setSizePolicy(sizePolicy) + self.goalEdit.setAcceptRichText(False) + self.goalEdit.setObjectName("goalEdit") + self.gridlayout.addWidget(self.goalEdit, 1, 1, 1, 1) + self.groupBox = QtWidgets.QGroupBox(RestructureDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(2) + sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) + self.groupBox.setSizePolicy(sizePolicy) + self.groupBox.setObjectName("groupBox") + self.vboxlayout = QtWidgets.QVBoxLayout(self.groupBox) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setObjectName("vboxlayout") + self.argsEdit = QtWidgets.QTextEdit(self.groupBox) + self.argsEdit.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) + self.argsEdit.setAcceptRichText(False) + self.argsEdit.setObjectName("argsEdit") + self.vboxlayout.addWidget(self.argsEdit) + self.gridlayout.addWidget(self.groupBox, 2, 0, 1, 2) + self.groupBox_2 = QtWidgets.QGroupBox(RestructureDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(2) + sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) + self.groupBox_2.setSizePolicy(sizePolicy) + self.groupBox_2.setObjectName("groupBox_2") + self.vboxlayout1 = QtWidgets.QVBoxLayout(self.groupBox_2) + self.vboxlayout1.setContentsMargins(6, 6, 6, 6) + self.vboxlayout1.setObjectName("vboxlayout1") + self.importsEdit = QtWidgets.QTextEdit(self.groupBox_2) + self.importsEdit.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) + self.importsEdit.setAcceptRichText(False) + self.importsEdit.setObjectName("importsEdit") + self.vboxlayout1.addWidget(self.importsEdit) + self.gridlayout.addWidget(self.groupBox_2, 3, 0, 1, 2) + self.buttonBox = QtWidgets.QDialogButtonBox(RestructureDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.NoButton|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.gridlayout.addWidget(self.buttonBox, 4, 0, 1, 2) + + self.retranslateUi(RestructureDialog) + self.buttonBox.rejected.connect(RestructureDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(RestructureDialog) + RestructureDialog.setTabOrder(self.patternEdit, self.goalEdit) + RestructureDialog.setTabOrder(self.goalEdit, self.argsEdit) + RestructureDialog.setTabOrder(self.argsEdit, self.importsEdit) + RestructureDialog.setTabOrder(self.importsEdit, self.buttonBox) + + def retranslateUi(self, RestructureDialog): + _translate = QtCore.QCoreApplication.translate + RestructureDialog.setWindowTitle(_translate("RestructureDialog", "Restructure")) + self.label.setText(_translate("RestructureDialog", "Pattern:")) + self.patternEdit.setToolTip(_translate("RestructureDialog", "Rope searches for \'pattern\' in the project and replaces its\n" +"occurrences with \'goal. They can contain \"${name}\"\n" +"wildcards. See \"Rope Help\" for examples.")) + self.label_2.setText(_translate("RestructureDialog", "Goal:")) + self.goalEdit.setToolTip(_translate("RestructureDialog", "Pieces of code that match the pattern will be replaced\n" +"with goal. It can contain the wildcards that appear in the\n" +"pattern. They are replaced with the code that has matched them.")) + self.groupBox.setTitle(_translate("RestructureDialog", "Arguments")) + self.argsEdit.setToolTip(_translate("RestructureDialog", "Add checks here; One each line. Like:\n" +" var: type=mymod.AClass\n" +"\n" +"Checks may be combined by separating them by a comma, like:\n" +" var: type=mymod.AClass,exact\n" +"\n" +"Use __builtin__ module for builtins.\n" +"\n" +"Supported checks are:\n" +" name - for checking the reference\n" +" type - for checking the type\n" +" object - for checking the object\n" +" instance - for checking types but similar to builtin isinstance\n" +" exact - matching only occurrences with the same name as the wildcard")) + self.groupBox_2.setTitle(_translate("RestructureDialog", "Imports")) + self.importsEdit.setToolTip(_translate("RestructureDialog", "Add imports here. These imports are added to changed files. Like:\n" +" from mymod import AClass")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + RestructureDialog = QtWidgets.QDialog() + ui = Ui_RestructureDialog() + ui.setupUi(RestructureDialog) + RestructureDialog.show() + sys.exit(app.exec())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/Ui_UseFunctionDialog.py Sat Oct 26 15:50:43 2024 +0200 @@ -0,0 +1,48 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/UseFunctionDialog.ui' +# +# Created by: PyQt6 UI code generator 6.3.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_UseFunctionDialog(object): + def setupUi(self, UseFunctionDialog): + UseFunctionDialog.setObjectName("UseFunctionDialog") + UseFunctionDialog.resize(500, 61) + UseFunctionDialog.setSizeGripEnabled(True) + self.vboxlayout = QtWidgets.QVBoxLayout(UseFunctionDialog) + self.vboxlayout.setContentsMargins(6, 6, 6, 6) + self.vboxlayout.setSpacing(6) + self.vboxlayout.setObjectName("vboxlayout") + self.description = QtWidgets.QLabel(UseFunctionDialog) + self.description.setWordWrap(True) + self.description.setObjectName("description") + self.vboxlayout.addWidget(self.description) + self.buttonBox = QtWidgets.QDialogButtonBox(UseFunctionDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.NoButton|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.vboxlayout.addWidget(self.buttonBox) + + self.retranslateUi(UseFunctionDialog) + self.buttonBox.rejected.connect(UseFunctionDialog.reject) # type: ignore + self.buttonBox.accepted.connect(UseFunctionDialog.accept) # type: ignore + QtCore.QMetaObject.connectSlotsByName(UseFunctionDialog) + + def retranslateUi(self, UseFunctionDialog): + _translate = QtCore.QCoreApplication.translate + UseFunctionDialog.setWindowTitle(_translate("UseFunctionDialog", "Use Function")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + UseFunctionDialog = QtWidgets.QDialog() + ui = Ui_UseFunctionDialog() + ui.setupUi(UseFunctionDialog) + UseFunctionDialog.show() + sys.exit(app.exec())