diff -r e3167d354ab6 -r f98253eed7f0 RefactoringRope/Ui_IntroduceFactoryDialog.py --- /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())