src/eric7/UI/Browser.py

branch
eric7
changeset 10433
328f3ec4b77a
parent 10403
ea3320d5e8e9
child 10439
21c28b0f9e41
--- a/src/eric7/UI/Browser.py	Thu Dec 21 15:46:22 2023 +0100
+++ b/src/eric7/UI/Browser.py	Thu Dec 21 19:50:01 2023 +0100
@@ -110,7 +110,8 @@
         """
         Constructor
 
-        @param parent parent widget (QWidget)
+        @param parent parent widget
+        @type QWidget
         """
         super().__init__(parent)
 
@@ -408,7 +409,8 @@
         Reimplemented to disable expanding/collapsing of items when
         double-clicking. Instead the double-clicked entry is opened.
 
-        @param mouseEvent the mouse event (QMouseEvent)
+        @param mouseEvent the mouse event
+        @type QMouseEvent
         """
         index = self.indexAt(mouseEvent.position().toPoint())
         if index.isValid():
@@ -431,7 +433,8 @@
         """
         Protected slot to show the context menu of the listview.
 
-        @param coord the position of the mouse pointer (QPoint)
+        @param coord the position of the mouse pointer
+        @type QPoint
         """
         categories = self.getSelectedItemsCountCategorized(
             [BrowserDirectoryItem, BrowserFileItem, BrowserClassItem, BrowserMethodItem]
@@ -506,7 +509,8 @@
         """
         Protected slot to handle the selection of the goto menu.
 
-        @param act reference to the action (EricAction)
+        @param act reference to the action
+        @type EricAction
         """
         fileName, lineno = act.data()
         self.sourceFile[str, int].emit(fileName, lineno)
@@ -825,7 +829,8 @@
         """
         Public slot to handle the programChange signal.
 
-        @param fn file name (string)
+        @param fn file name
+        @type str
         """
         self.__model.programChange(os.path.dirname(fn))
 
@@ -833,7 +838,8 @@
         """
         Public slot to handle a change of the debug client's interpreter.
 
-        @param interpreter interpreter of the debug client (string)
+        @param interpreter interpreter of the debug client
+        @type str
         """
         self.__model.interpreterChanged(interpreter)
 
@@ -841,9 +847,12 @@
         """
         Public method to check type of an item.
 
-        @param itm the item to check (BrowserItem)
+        @param itm the item to check
+        @type BrowserItem
         @param filterList list of classes to check against
-        @return flag indicating item is a valid type (boolean)
+        @type list of Class
+        @return flag indicating item is a valid type
+        @rtype bool
         """
         if filterList is None:
             filterList = self.selectedItemsFilter
@@ -855,7 +864,9 @@
         Public method to get the selected items.
 
         @param filterList list of classes to check against
-        @return list of selected items (list of BrowserItem)
+        @type list of Class
+        @return list of selected items
+        @rtype list of BrowserItem
         """
         selectedItems = []
         indexes = self.selectedIndexes()
@@ -871,7 +882,9 @@
         Public method to get the count of items selected.
 
         @param filterList list of classes to check against
-        @return count of items selected (integer)
+        @type list of Class
+        @return count of items selected
+        @rtype int
         """
         count = 0
         indexes = self.selectedIndexes()
@@ -887,12 +900,14 @@
         Public method to get a categorized count of selected items.
 
         @param filterList list of classes to check against
+        @type list of Class
         @return a dictionary containing the counts of items belonging
             to the individual filter classes. The keys of the dictionary
             are the string representation of the classes given in the
             filter (i.e. str(filterClass)). The dictionary contains
             an additional entry with key "sum", that stores the sum of
             all selected entries fulfilling the filter criteria.
+        @rtype dict
         """
         if filterList is None:
             filterList = self.selectedItemsFilter

eric ide

mercurial