Plugin_Refactoring_Rope.RefactoringRope.ChangeSignatureDialog

Module implementing the Change Signature dialog.

Classes

ChangeSignatureDialog Class implementing the Change Signature dialog.

Functions

None


ChangeSignatureDialog

Class implementing the Change Signature dialog.

Derived from

RefactoringDialogBase, Ui_ChangeSignatureDialog

Methods

ChangeSignatureDialog Constructor
__getParameterIndex Private method to calculate the index of the given paramter.
_calculateChanges Protected method to calculate the changes.
on_addButton_clicked Private slot to add a new parameter.
on_buttonBox_clicked Private slot to act on the button pressed.
on_downButton_clicked Private slot called to move the selected item down in the list.
on_parameterList_currentRowChanged Private slot called, when the current row is changed.
on_removeButton_clicked Private slot to remove a parameter.
on_upButton_clicked Private slot called to move the selected item up in the list.

ChangeSignatureDialog (Constructor)

ChangeSignatureDialog(refactoring, title, changer, parent = None)

Constructor

refactoring
reference to the main refactoring object (Refactoring)
title
title of the dialog (string or QString)
changer
reference to the signature changer object (rope.refactor.change_signature.ChangeSignature)
parent
reference to the parent widget (QWidget)

ChangeSignatureDialog.__getParameterIndex

__getParameterIndex(definition_info, name)

Private method to calculate the index of the given paramter.

definition_info
object containing the method definition
name
parameter name (string)
Returns:
index of the parameter (integer)

ChangeSignatureDialog._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)

ChangeSignatureDialog.on_addButton_clicked

on_addButton_clicked()

Private slot to add a new parameter.

ChangeSignatureDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot to act on the button pressed.

button
reference to the button pressed (QAbstractButton)

ChangeSignatureDialog.on_downButton_clicked

on_downButton_clicked()

Private slot called to move the selected item down in the list.

ChangeSignatureDialog.on_parameterList_currentRowChanged

on_parameterList_currentRowChanged(currentRow)

Private slot called, when the current row is changed.

currentRow
index of the current row (integer)

ChangeSignatureDialog.on_removeButton_clicked

on_removeButton_clicked()

Private slot to remove a parameter.

ChangeSignatureDialog.on_upButton_clicked

on_upButton_clicked()

Private slot called to move the selected item up in the list.

Up