diff -r 2f70ca07f0af -r 4cd7e5a8b3cf src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py --- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py Fri Dec 22 19:45:17 2023 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py Sat Dec 23 15:40:23 2023 +0100 @@ -37,12 +37,18 @@ Constructor @param vcsObject reference to the vcs object + @type Subversion @param browserObject reference to the project browser object + @type ProjectBaseBrowser @param projectObject reference to the project object + @type Project @param isTranslationsBrowser flag indicating, the helper is requested for the translations browser (this needs some special treatment) - @param parent parent widget (QWidget) - @param name name of this object (string) + @type bool + @param parent parent widget + @type QWidget + @param name name of this object + @type str """ VcsProjectBrowserHelper.__init__( self, @@ -62,8 +68,10 @@ VCS status and the file status. @param menu reference to the menu to be shown + @type QMenu @param standardItems array of standard items that need activation/deactivation depending on the overall VCS status + @type list of QAction """ if self.browser.currentItem().data(1) == self.vcs.vcsName(): for act in self.vcsMenuActions: @@ -98,8 +106,10 @@ VCS status and the files status. @param menu reference to the menu to be shown + @type QMenu @param standardItems array of standard items that need activation/deactivation depending on the overall VCS status + @type list of QAction """ vcsName = self.vcs.vcsName() items = self.browser.getSelectedItems() @@ -138,8 +148,10 @@ VCS status and the directory status. @param menu reference to the menu to be shown + @type QMenu @param standardItems array of standard items that need activation/deactivation depending on the overall VCS status + @type list of QAction """ if self.browser.currentItem().data(1) == self.vcs.vcsName(): for act in self.vcsDirMenuActions: @@ -164,8 +176,10 @@ VCS status and the directory status. @param menu reference to the menu to be shown + @type QMenu @param standardItems array of standard items that need activation/deactivation depending on the overall VCS status + @type list of QAction """ vcsName = self.vcs.vcsName() items = self.browser.getSelectedItems() @@ -203,6 +217,7 @@ Protected method used to add the VCS menu to all project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ self.vcsMenuActions = [] self.vcsAddMenuActions = [] @@ -392,6 +407,7 @@ project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ self.vcsMultiMenuActions = [] self.vcsAddMultiMenuActions = [] @@ -542,6 +558,7 @@ Protected method used to add the VCS menu to all project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ if mainMenu is None: return @@ -586,6 +603,7 @@ Protected method used to add the VCS menu to all project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ if mainMenu is None: return @@ -735,6 +753,7 @@ Protected method used to add the VCS menu to all project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ if mainMenu is None: return @@ -1108,7 +1127,9 @@ """ Private method to check, if items contain file type items. - @param items items to check (list of QTreeWidgetItems) - @return flag indicating items contain file type items (boolean) + @param items items to check + @type list of QTreeWidgetItems + @return flag indicating items contain file type items + @rtype bool """ return any(isinstance(itm, ProjectBrowserFileItem) for itm in items)