src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 10069
435cc5875135
child 10439
21c28b0f9e41
--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Fri Dec 22 19:45:17 2023 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Sat Dec 23 15:40:23 2023 +0100
@@ -38,8 +38,11 @@
         Constructor
 
         @param vcs reference to the vcs object
-        @param mode mode of the dialog (string, "browse" or "select")
-        @param parent parent widget (QWidget)
+        @type Subversion
+        @param mode mode of the dialog ("browse" or "select")
+        @type str
+        @param parent parent widget
+        @type QWidget
         """
         super().__init__(parent)
         self.setupUi(self)
@@ -83,7 +86,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
@@ -114,14 +118,22 @@
         """
         Private method to generate a tree item in the repository tree.
 
-        @param repopath path of the item (string)
-        @param revision revision info (string)
-        @param author author info (string)
-        @param size size info (string)
-        @param date date info (string)
-        @param nodekind node kind info (string, "dir" or "file")
-        @param url url of the entry (string)
-        @return reference to the generated item (QTreeWidgetItem)
+        @param repopath path of the item
+        @type str
+        @param revision revision info
+        @type str
+        @param author author info
+        @type str
+        @param size size info
+        @type str
+        @param date date info
+        @type str
+        @param nodekind node kind info ("dir" or "file")
+        @type str
+        @param url url of the entry
+        @type str
+        @return reference to the generated item
+        @rtype QTreeWidgetItem
         """
         rev = "" if revision == "" else int(revision)
         sz = "" if size == "" else int(size)
@@ -155,8 +167,10 @@
         """
         Private method to get the repository root using the svn info command.
 
-        @param url the repository URL to browser (string)
-        @return repository root (string)
+        @param url the repository URL to browser
+        @type str
+        @return repository root
+        @rtype str
         """
         ioEncoding = Preferences.getSystem("IOEncoding")
         repoRoot = None
@@ -204,9 +218,10 @@
         """
         Private method to perform the svn list command.
 
-        @param url the repository URL to browse (string)
+        @param url the repository URL to browse
+        @type str
         @param parent reference to the item, the data should be appended to
-            (QTreeWidget or QTreeWidgetItem)
+        @type QTreeWidget or QTreeWidgetItem
         """
         self.errorGroup.hide()
 
@@ -271,8 +286,10 @@
         """
         Private method to normalite the url.
 
-        @param url the url to normalize (string)
-        @return normalized URL (string)
+        @param url the url to normalize
+        @type str
+        @return normalized URL
+        @rtype str
         """
         if url.endswith("/"):
             return url[:-1]
@@ -282,7 +299,8 @@
         """
         Public slot to start the svn info command.
 
-        @param url the repository URL to browser (string)
+        @param url the repository URL to browser
+        @type str
         """
         self.repoTree.clear()
 
@@ -312,7 +330,8 @@
         """
         Private slot called when an item is expanded.
 
-        @param item reference to the item to be expanded (QTreeWidgetItem)
+        @param item reference to the item to be expanded
+        @type QTreeWidgetItem
         """
         if not self.__ignoreExpand:
             url = item.data(0, self.__urlRole)
@@ -323,7 +342,8 @@
         """
         Private slot called when an item is collapsed.
 
-        @param item reference to the item to be collapsed (QTreeWidgetItem)
+        @param item reference to the item to be collapsed
+        @type QTreeWidgetItem
         """
         for child in item.takeChildren():
             del child
@@ -349,7 +369,8 @@
         """
         Public method to retrieve the selected repository URL.
 
-        @return the selected repository URL (string)
+        @return the selected repository URL
+        @rtype str
         """
         items = self.repoTree.selectedItems()
         if len(items) == 1:
@@ -381,8 +402,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.__finish()
 
@@ -448,7 +471,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)
@@ -486,7 +510,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

eric ide

mercurial