RefactoringRope/Ui_IntroduceFactoryDialog.py

branch
eric7
changeset 422
f98253eed7f0
child 423
9dfc89a5aadf
equal deleted inserted replaced
421:e3167d354ab6 422:f98253eed7f0
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/IntroduceFactoryDialog.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.3.1
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_IntroduceFactoryDialog(object):
13 def setupUi(self, IntroduceFactoryDialog):
14 IntroduceFactoryDialog.setObjectName("IntroduceFactoryDialog")
15 IntroduceFactoryDialog.resize(500, 118)
16 IntroduceFactoryDialog.setSizeGripEnabled(True)
17 self.vboxlayout = QtWidgets.QVBoxLayout(IntroduceFactoryDialog)
18 self.vboxlayout.setContentsMargins(6, 6, 6, 6)
19 self.vboxlayout.setObjectName("vboxlayout")
20 self.hboxlayout = QtWidgets.QHBoxLayout()
21 self.hboxlayout.setObjectName("hboxlayout")
22 self.label = QtWidgets.QLabel(IntroduceFactoryDialog)
23 self.label.setObjectName("label")
24 self.hboxlayout.addWidget(self.label)
25 self.nameEdit = QtWidgets.QLineEdit(IntroduceFactoryDialog)
26 self.nameEdit.setClearButtonEnabled(True)
27 self.nameEdit.setObjectName("nameEdit")
28 self.hboxlayout.addWidget(self.nameEdit)
29 self.vboxlayout.addLayout(self.hboxlayout)
30 self.staticButton = QtWidgets.QRadioButton(IntroduceFactoryDialog)
31 self.staticButton.setChecked(True)
32 self.staticButton.setObjectName("staticButton")
33 self.vboxlayout.addWidget(self.staticButton)
34 self.globalButton = QtWidgets.QRadioButton(IntroduceFactoryDialog)
35 self.globalButton.setObjectName("globalButton")
36 self.vboxlayout.addWidget(self.globalButton)
37 self.buttonBox = QtWidgets.QDialogButtonBox(IntroduceFactoryDialog)
38 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
39 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
40 self.buttonBox.setObjectName("buttonBox")
41 self.vboxlayout.addWidget(self.buttonBox)
42
43 self.retranslateUi(IntroduceFactoryDialog)
44 self.buttonBox.rejected.connect(IntroduceFactoryDialog.reject) # type: ignore
45 QtCore.QMetaObject.connectSlotsByName(IntroduceFactoryDialog)
46 IntroduceFactoryDialog.setTabOrder(self.nameEdit, self.staticButton)
47 IntroduceFactoryDialog.setTabOrder(self.staticButton, self.globalButton)
48 IntroduceFactoryDialog.setTabOrder(self.globalButton, self.buttonBox)
49
50 def retranslateUi(self, IntroduceFactoryDialog):
51 _translate = QtCore.QCoreApplication.translate
52 IntroduceFactoryDialog.setWindowTitle(_translate("IntroduceFactoryDialog", "Introduce Factory Method"))
53 self.label.setText(_translate("IntroduceFactoryDialog", "Factory Method Name:"))
54 self.nameEdit.setToolTip(_translate("IntroduceFactoryDialog", "Enter the name of the factory method"))
55 self.staticButton.setToolTip(_translate("IntroduceFactoryDialog", "Select to make the factory method a static method"))
56 self.staticButton.setText(_translate("IntroduceFactoryDialog", "Use static method"))
57 self.globalButton.setToolTip(_translate("IntroduceFactoryDialog", "Select to make the factory method a global function"))
58 self.globalButton.setText(_translate("IntroduceFactoryDialog", "Use global function"))
59
60
61 if __name__ == "__main__":
62 import sys
63 app = QtWidgets.QApplication(sys.argv)
64 IntroduceFactoryDialog = QtWidgets.QDialog()
65 ui = Ui_IntroduceFactoryDialog()
66 ui.setupUi(IntroduceFactoryDialog)
67 IntroduceFactoryDialog.show()
68 sys.exit(app.exec())

eric ide

mercurial