Plugin_Refactoring_Rope.RefactoringRope.RenameDialog
Module implementing the Rename dialog.
Classes
Functions
RenameDialog
Class implementing the Rename dialog.
Derived from
RefactoringDialogBase, Ui_RenameDialog
Methods
RenameDialog (Constructor)
RenameDialog(refactoring, title, renamer, resource = None, parent = None)
Constructor
- refactoring
-
reference to the main refactoring object (Refactoring)
- title
-
title of the dialog (string or QString)
- renamer
-
reference to the renamer object (rope.refactor.rename.Rename)
- resource
-
reference to a resource object, if the action is to be
applied to the local file only (rope.base.resources.File)
- parent
-
reference to the parent widget (QWidget)
RenameDialog.__confirmUnsure
__confirmUnsure(occurrence)
Private method to confirm unsure occurrences.
- occurrence
-
reference to the occurrence object
(rope.refactor.occurrences.Occurrence)
- Returns:
-
flag indicating an occurrence (boolean)
RenameDialog._calculateChanges
_calculateChanges(handle)
Protected method to calculate the changes.
- handle
-
reference to the task handle (rope.base.taskhandle.TaskHandle)
- Returns:
-
reference to the Changes object (rope.base.change.ChangeSet)
RenameDialog.on_buttonBox_clicked
on_buttonBox_clicked(button)
Private slot to act on the button pressed.
- button
-
reference to the button pressed (QAbstractButton)
RenameDialog.on_newNameEdit_textChanged
on_newNameEdit_textChanged(text)
Private slot to react to changes of the new name.
- text
-
text entered into the edit (QString)