15 |
15 |
16 import rope.refactor.change_signature |
16 import rope.refactor.change_signature |
17 |
17 |
18 from Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
18 from Ui_ChangeSignatureDialog import Ui_ChangeSignatureDialog |
19 from RefactoringDialogBase import RefactoringDialogBase |
19 from RefactoringDialogBase import RefactoringDialogBase |
20 from AddParameterDialog import AddParameterDialog |
|
21 |
20 |
22 |
21 |
23 class ChangeSignatureDialog(RefactoringDialogBase, Ui_ChangeSignatureDialog): |
22 class ChangeSignatureDialog(RefactoringDialogBase, Ui_ChangeSignatureDialog): |
24 """ |
23 """ |
25 Class implementing the Change Signature dialog. |
24 Class implementing the Change Signature dialog. |
135 @pyqtSlot() |
134 @pyqtSlot() |
136 def on_addButton_clicked(self): |
135 def on_addButton_clicked(self): |
137 """ |
136 """ |
138 Private slot to add a new parameter. |
137 Private slot to add a new parameter. |
139 """ |
138 """ |
|
139 from AddParameterDialog import AddParameterDialog |
140 dlg = AddParameterDialog(self) |
140 dlg = AddParameterDialog(self) |
141 if dlg.exec_() == QDialog.Accepted: |
141 if dlg.exec_() == QDialog.Accepted: |
142 name, default, value = dlg.getData() |
142 name, default, value = dlg.getData() |
143 if default: |
143 if default: |
144 s = "%s = %s" % (name, default) |
144 s = "%s = %s" % (name, default) |