--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Fri Dec 22 19:45:17 2023 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Sat Dec 23 15:40:23 2023 +0100 @@ -35,7 +35,9 @@ Constructor @param vcs reference to the vcs object - @param parent parent widget (QWidget) + @type Subversion + @param parent parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) @@ -66,7 +68,8 @@ """ Protected slot implementing a close event handler. - @param e close event (QCloseEvent) + @param e close event + @type QCloseEvent """ if ( self.process is not None @@ -82,8 +85,10 @@ """ Private method to get a svn revision argument for the given revision. - @param version revision (integer or string) - @return version argument (string) + @param version revision + @type int or str + @return version argument + @rtype str """ if version == "WORKING": return None @@ -94,13 +99,17 @@ """ Public slot to start the svn diff command. - @param fn filename to be diffed (string) - @param versions list of versions to be diffed (list of up to 2 strings - or None) - @param urls list of repository URLs (list of 2 strings) + @param fn filename to be diffed + @type str + @param versions list of versions to be diffed + @type list of up to 2 str or None + @param urls list of repository URLs + @type list of [str, str] @param summary flag indicating a summarizing diff - (only valid for URL diffs) (boolean) - @param refreshable flag indicating a refreshable diff (boolean) + (only valid for URL diffs) + @type bool + @param refreshable flag indicating a refreshable diff + @type bool """ self.refreshButton.setVisible(refreshable) @@ -197,8 +206,10 @@ """ Private slot connected to the finished signal. - @param exitCode exit code of the process (integer) - @param exitStatus exit status of the process (QProcess.ExitStatus) + @param exitCode exit code of the process + @type int + @param exitStatus exit status of the process + @type QProcess.ExitStatus """ self.inputGroup.setEnabled(False) self.inputGroup.hide() @@ -233,7 +244,8 @@ """ Private method to append text to the end of the contents pane. - @param txt text to insert (string) + @param txt text to insert + @type str """ tc = self.contents.textCursor() tc.movePosition(QTextCursor.MoveOperation.End) @@ -244,8 +256,10 @@ """ Private method to extract the file name out of a file separator line. - @param line line to be processed (string) - @return extracted file name (string) + @param line line to be processed + @type str + @return extracted file name + @rtype str """ f = line.split(None, 1)[1] f = f.rsplit(None, 2)[0] @@ -255,7 +269,8 @@ """ Private slot to process a line giving the old/new file. - @param line line to be processed (string) + @param line line to be processed + @type str """ if line.startswith("---"): self.__oldFileLine = self.paras @@ -308,7 +323,8 @@ """ Private slot called by a button of the button box clicked. - @param button button that was clicked (QAbstractButton) + @param button button that was clicked + @type QAbstractButton """ if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Save): self.on_saveButton_clicked() @@ -320,7 +336,8 @@ """ Private slot to handle the selection of a file. - @param index activated row (integer) + @param index activated row + @type int """ para = self.filesCombo.itemData(index) @@ -431,7 +448,8 @@ """ Private slot to handle the password checkbox toggled. - @param isOn flag indicating the status of the check box (boolean) + @param isOn flag indicating the status of the check box + @type bool """ if isOn: self.input.setEchoMode(QLineEdit.EchoMode.Password) @@ -469,7 +487,8 @@ """ Protected slot to handle a key press event. - @param evt the key press event (QKeyEvent) + @param evt the key press event + @type QKeyEvent """ if self.intercept: self.intercept = False