16 RenameDialog.setSizeGripEnabled(True) |
16 RenameDialog.setSizeGripEnabled(True) |
17 self.verticalLayout = QtWidgets.QVBoxLayout(RenameDialog) |
17 self.verticalLayout = QtWidgets.QVBoxLayout(RenameDialog) |
18 self.verticalLayout.setObjectName("verticalLayout") |
18 self.verticalLayout.setObjectName("verticalLayout") |
19 self.hboxlayout = QtWidgets.QHBoxLayout() |
19 self.hboxlayout = QtWidgets.QHBoxLayout() |
20 self.hboxlayout.setObjectName("hboxlayout") |
20 self.hboxlayout.setObjectName("hboxlayout") |
21 self.label = QtWidgets.QLabel(RenameDialog) |
21 self.label = QtWidgets.QLabel(parent=RenameDialog) |
22 self.label.setObjectName("label") |
22 self.label.setObjectName("label") |
23 self.hboxlayout.addWidget(self.label) |
23 self.hboxlayout.addWidget(self.label) |
24 self.newNameEdit = QtWidgets.QLineEdit(RenameDialog) |
24 self.newNameEdit = QtWidgets.QLineEdit(parent=RenameDialog) |
25 self.newNameEdit.setClearButtonEnabled(True) |
25 self.newNameEdit.setClearButtonEnabled(True) |
26 self.newNameEdit.setObjectName("newNameEdit") |
26 self.newNameEdit.setObjectName("newNameEdit") |
27 self.hboxlayout.addWidget(self.newNameEdit) |
27 self.hboxlayout.addWidget(self.newNameEdit) |
28 self.verticalLayout.addLayout(self.hboxlayout) |
28 self.verticalLayout.addLayout(self.hboxlayout) |
29 self.allCheckBox = QtWidgets.QCheckBox(RenameDialog) |
29 self.allCheckBox = QtWidgets.QCheckBox(parent=RenameDialog) |
30 self.allCheckBox.setObjectName("allCheckBox") |
30 self.allCheckBox.setObjectName("allCheckBox") |
31 self.verticalLayout.addWidget(self.allCheckBox) |
31 self.verticalLayout.addWidget(self.allCheckBox) |
32 self.stringsCheckBox = QtWidgets.QCheckBox(RenameDialog) |
32 self.stringsCheckBox = QtWidgets.QCheckBox(parent=RenameDialog) |
33 self.stringsCheckBox.setChecked(True) |
33 self.stringsCheckBox.setChecked(True) |
34 self.stringsCheckBox.setObjectName("stringsCheckBox") |
34 self.stringsCheckBox.setObjectName("stringsCheckBox") |
35 self.verticalLayout.addWidget(self.stringsCheckBox) |
35 self.verticalLayout.addWidget(self.stringsCheckBox) |
36 self.groupBox = QtWidgets.QGroupBox(RenameDialog) |
36 self.groupBox = QtWidgets.QGroupBox(parent=RenameDialog) |
37 self.groupBox.setObjectName("groupBox") |
37 self.groupBox.setObjectName("groupBox") |
38 self.hboxlayout1 = QtWidgets.QHBoxLayout(self.groupBox) |
38 self.hboxlayout1 = QtWidgets.QHBoxLayout(self.groupBox) |
39 self.hboxlayout1.setContentsMargins(6, 6, 6, 6) |
39 self.hboxlayout1.setContentsMargins(6, 6, 6, 6) |
40 self.hboxlayout1.setSpacing(6) |
40 self.hboxlayout1.setSpacing(6) |
41 self.hboxlayout1.setObjectName("hboxlayout1") |
41 self.hboxlayout1.setObjectName("hboxlayout1") |
42 self.ignoreButton = QtWidgets.QRadioButton(self.groupBox) |
42 self.ignoreButton = QtWidgets.QRadioButton(parent=self.groupBox) |
43 self.ignoreButton.setChecked(True) |
43 self.ignoreButton.setChecked(True) |
44 self.ignoreButton.setObjectName("ignoreButton") |
44 self.ignoreButton.setObjectName("ignoreButton") |
45 self.hboxlayout1.addWidget(self.ignoreButton) |
45 self.hboxlayout1.addWidget(self.ignoreButton) |
46 self.matchButton = QtWidgets.QRadioButton(self.groupBox) |
46 self.matchButton = QtWidgets.QRadioButton(parent=self.groupBox) |
47 self.matchButton.setObjectName("matchButton") |
47 self.matchButton.setObjectName("matchButton") |
48 self.hboxlayout1.addWidget(self.matchButton) |
48 self.hboxlayout1.addWidget(self.matchButton) |
49 self.askButton = QtWidgets.QRadioButton(self.groupBox) |
49 self.askButton = QtWidgets.QRadioButton(parent=self.groupBox) |
50 self.askButton.setObjectName("askButton") |
50 self.askButton.setObjectName("askButton") |
51 self.hboxlayout1.addWidget(self.askButton) |
51 self.hboxlayout1.addWidget(self.askButton) |
52 self.verticalLayout.addWidget(self.groupBox) |
52 self.verticalLayout.addWidget(self.groupBox) |
53 self.buttonBox = QtWidgets.QDialogButtonBox(RenameDialog) |
53 self.buttonBox = QtWidgets.QDialogButtonBox(parent=RenameDialog) |
54 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
54 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
55 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
55 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
56 self.buttonBox.setObjectName("buttonBox") |
56 self.buttonBox.setObjectName("buttonBox") |
57 self.verticalLayout.addWidget(self.buttonBox) |
57 self.verticalLayout.addWidget(self.buttonBox) |
58 |
58 |
80 self.ignoreButton.setText(_translate("RenameDialog", "Ignore")) |
80 self.ignoreButton.setText(_translate("RenameDialog", "Ignore")) |
81 self.matchButton.setToolTip(_translate("RenameDialog", "Select to refactor unsure occurrences")) |
81 self.matchButton.setToolTip(_translate("RenameDialog", "Select to refactor unsure occurrences")) |
82 self.matchButton.setText(_translate("RenameDialog", "Match")) |
82 self.matchButton.setText(_translate("RenameDialog", "Match")) |
83 self.askButton.setToolTip(_translate("RenameDialog", "Select to ask for each unsure occurrence")) |
83 self.askButton.setToolTip(_translate("RenameDialog", "Select to ask for each unsure occurrence")) |
84 self.askButton.setText(_translate("RenameDialog", "Ask")) |
84 self.askButton.setText(_translate("RenameDialog", "Ask")) |
85 |
|
86 |
|
87 if __name__ == "__main__": |
|
88 import sys |
|
89 app = QtWidgets.QApplication(sys.argv) |
|
90 RenameDialog = QtWidgets.QDialog() |
|
91 ui = Ui_RenameDialog() |
|
92 ui.setupUi(RenameDialog) |
|
93 RenameDialog.show() |
|
94 sys.exit(app.exec()) |
|