Table of Contents

Class: Refactoring ./Refactoring/Refactoring.py

Class implementing the refactoring interface to brm.

Base Classes   
QObject
Methods   
__init__
__unhandledException
confirmAllBuffersSaved
confirmBufferIsSaved
getActions
handleEditorOpened
handleEditorSaved
handleExtractMethod
handleImportDirectory
handleImportFile
handleImportProject
handleLastEditorClosed
handlePreferencesChanged
handleProjectClosed
handleProjectOpened
handleQueryDefinition
handleQueryReferences
handleRename
handleReset
handleUndo
init
initActions
initMenu
refreshEditors
renameMethodPromptCallback
setMenuItemsEnabled
  __init__ 
__init__ (
        self,
        parent=None,
        *args,
        )

Constructor

Arguments

parent
parent of this scriptmanager (QObject)
*args
arguments passed on to QObject
  __unhandledException 
__unhandledException ( self,  msg )

Private method handling not specifically handled exceptions.

Arguments

msg
message describing the exception
  confirmAllBuffersSaved 
confirmAllBuffersSaved ( self )

Private method to check, if any editor has unsaved changes.

  confirmBufferIsSaved 
confirmBufferIsSaved ( self,  editor )

Private method to check, if an editor has unsaved changes.

  getActions 
getActions ( self )

Public method to get a list of all actions.

Returns

list of all actions (list of QAction)

  handleEditorOpened 
handleEditorOpened ( self,  filename )

Public slot called when an editor window was opened.

Arguments

filename
the filename of the opened editor (string)
  handleEditorSaved 
handleEditorSaved ( self,  filename )

Public slot called when an editor window was saved.

Arguments

filename
the filename of the opened editor (string)
  handleExtractMethod 
handleExtractMethod ( self )

Private slot to handle the Extract Method action.

  handleImportDirectory 
handleImportDirectory ( self )

Private slot to handle the Import Directory action.

  handleImportFile 
handleImportFile ( self )

Private slot to handle the Import File action.

  handleImportProject 
handleImportProject ( self )

Private slot to handle the Import Project action.

  handleLastEditorClosed 
handleLastEditorClosed ( self )

Public slot called when the last editor window was closed.

  handlePreferencesChanged 
handlePreferencesChanged ( self )

Public slot called when the preferences have been changed.

  handleProjectClosed 
handleProjectClosed ( self )

Public slot called when a project was closed.

  handleProjectOpened 
handleProjectOpened ( self )

Public slot called when a project was opened.

  handleQueryDefinition 
handleQueryDefinition ( self )

Private slot to handle the Query Definition action

  handleQueryReferences 
handleQueryReferences ( self )

Private slot to handle the Query References action.

  handleRename 
handleRename ( self )

Private slot to handle the Rename action.

  handleReset 
handleReset ( self )

Private slot to handle the Reset action.

  handleUndo 
handleUndo ( self )

Private slot to handle the Undo action.

  init 
init ( self )

Private slot to handle the Reset action.

  initActions 
initActions ( self )

Public method to define the refactoring actions.

  initMenu 
initMenu ( self )

Public slot to initialize the refactoring menu.

Returns

the menu generated (QPopupMenu)

  refreshEditors 
refreshEditors (
        self,
        savedfiles,
        filename,
        line,
        )

Private method to refresh modified editors.

Arguments

savedfiles
list of filenames of modified files (list of strings)
filename
filename of the active editor (string)
line
line to place cursor at (int)
  renameMethodPromptCallback 
renameMethodPromptCallback (
        self,
        filename,
        line,
        start,
        stop,
        )

Private slot called by the refactoring machine to ask the user for confirmation.

Arguments

filename
the name of the file (string)
line
the line of the object (int)
start
beginning column of the object (int)
stop
end column of the object (int)

Returns

flag indicating renaming wanted (boolean)

  setMenuItemsEnabled 
setMenuItemsEnabled ( self,  enabled )

Private method to enable/disable menu items.


Table of Contents

This document was automatically generated by HappyDoc version 2.1