diff -r 2f70ca07f0af -r 4cd7e5a8b3cf src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py --- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py Fri Dec 22 19:45:17 2023 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py Sat Dec 23 15:40:23 2023 +0100 @@ -36,12 +36,18 @@ Constructor @param vcsObject reference to the vcs object + @type Hg @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 """ from .LargefilesExtension.ProjectBrowserHelper import ( LargefilesProjectBrowserHelper, @@ -80,11 +86,12 @@ """ Private slot showing the extensions menu. - @param key menu key (string, one of 'mainMenu', 'multiMenu', - 'backMenu', 'dirMenu' or 'dirMultiMenu') + @param key menu key (one of 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu' + or 'dirMultiMenu') + @type str @param controlled flag indicating to show the menu for a version controlled entry or a non-version controlled entry - (boolean) + @type bool """ for extensionName in self.__extensionMenus: if key in self.__extensionMenus[extensionName]: @@ -108,8 +115,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(): controlled = True @@ -143,8 +152,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() @@ -184,8 +195,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(): controlled = True @@ -213,8 +226,10 @@ VCS status and the directory status. @param menu reference to the menu to be shown - @param standardItems array of standard items that need + @type QMenu + @param standardItems list 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() @@ -254,10 +269,13 @@ """ Private method to add an extension menu entry. - @param menu menu to add it to (QMenu) - @param key menu key (string, one of 'mainMenu', 'multiMenu', - 'backMenu', 'dirMenu' or 'dirMultiMenu') - @return reference to the menu action (QAction) + @param menu menu to add it to + @type QMenu + @param key menu key (one of 'mainMenu', 'multiMenu', 'backMenu', 'dirMenu' + or 'dirMultiMenu') + @type str + @return reference to the menu action + @rtype QAction """ act = None if key in ["mainMenu", "multiMenu", "backMenu", "dirMenu", "dirMultiMenu"]: @@ -282,6 +300,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 = [] @@ -424,6 +443,7 @@ project browsers. @param mainMenu reference to the menu to be amended + @type QMenu """ self.vcsMultiMenuActions = [] self.vcsAddMultiMenuActions = [] @@ -528,6 +548,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 @@ -572,6 +593,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 @@ -685,6 +707,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