Plugin_Refactoring_Rope.RefactoringRope.RenameDialog

Module implementing the Rename dialog.

Classes

RenameDialog Class implementing the Rename dialog.

Functions

None


RenameDialog

Class implementing the Rename dialog.

Derived from

RefactoringDialogBase, Ui_RenameDialog

Methods

RenameDialog Constructor
__confirmUnsure Private method to confirm unsure occurrences.
_calculateChanges Protected method to calculate the changes.
on_buttonBox_clicked Private slot to act on the button pressed.
on_newNameEdit_textChanged Private slot to react to changes of the new name.

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)
Up