Plugin_Vcs_CVS.vcsCVS.CvsDiffDialog

Module implementing a dialog to show the output of the cvs diff command process.

Global Attributes

None

Classes

CvsDiffDialog Class implementing a dialog to show the output of the cvs diff command process.

Functions

None


CvsDiffDialog

Class implementing a dialog to show the output of the cvs diff command process.

Derived from

QWidget, Ui_CvsDiffDialog

Class Attributes

None

Methods

CvsDiffDialog Constructor
__appendText Private method to append text to the end of the contents pane.
__procFinished Private slot connected to the finished signal.
__readStderr Private slot to handle the readyReadStandardError signal.
__readStdout Private slot to handle the readyReadStandardOutput signal.
closeEvent Private slot implementing a close event handler.
keyPressEvent Protected slot to handle a key press event.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_input_returnPressed Private slot to handle the press of the return key in the input field.
on_passwordCheckBox_toggled Private slot to handle the password checkbox toggled.
on_saveButton_clicked Private slot to handle the Save button press.
on_sendButton_clicked Private slot to send the input to the subversion process.
start Public slot to start the cvs diff command.

CvsDiffDialog (Constructor)

CvsDiffDialog(vcs, parent = None)

Constructor

vcs
reference to the vcs object
parent
parent widget (QWidget)

CvsDiffDialog.__appendText

__appendText(txt, format)

Private method to append text to the end of the contents pane.

txt
text to insert (QString)
format
text format to be used (QTextCharFormat)

CvsDiffDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

exitCode
exit code of the process (integer)
exitStatus
exit status of the process (QProcess.ExitStatus)

CvsDiffDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

It reads the error output of the process and inserts it into the error pane.

CvsDiffDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

It reads the output of the process, formats it and inserts it into the contents pane.

CvsDiffDialog.closeEvent

closeEvent(e)

Private slot implementing a close event handler.

e
close event (QCloseEvent)

CvsDiffDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt
the key press event (QKeyEvent)

CvsDiffDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button
button that was clicked (QAbstractButton)

CvsDiffDialog.on_input_returnPressed

on_input_returnPressed()

Private slot to handle the press of the return key in the input field.

CvsDiffDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

isOn
flag indicating the status of the check box (boolean)

CvsDiffDialog.on_saveButton_clicked

on_saveButton_clicked()

Private slot to handle the Save button press.

It saves the diff shown in the dialog to a file in the local filesystem.

CvsDiffDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

CvsDiffDialog.start

start(fn, versions = None)

Public slot to start the cvs diff command.

fn
filename to be diffed (string)
versions
list of versions to be diffed (list of 2 int or None)
Up