src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9695
ad962e9b904d
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
25 def __init__(self, vcsObject, projectObject, parent=None, name=None): 25 def __init__(self, vcsObject, projectObject, parent=None, name=None):
26 """ 26 """
27 Constructor 27 Constructor
28 28
29 @param vcsObject reference to the vcs object 29 @param vcsObject reference to the vcs object
30 @type Subversion
30 @param projectObject reference to the project object 31 @param projectObject reference to the project object
31 @param parent parent widget (QWidget) 32 @type Project
32 @param name name of this object (string) 33 @param parent parent widget
34 @type QWidget
35 @param name name of this object
36 @type str
33 """ 37 """
34 VcsProjectHelper.__init__(self, vcsObject, projectObject, parent, name) 38 VcsProjectHelper.__init__(self, vcsObject, projectObject, parent, name)
35 39
36 def getActions(self): 40 def getActions(self):
37 """ 41 """
38 Public method to get a list of all actions. 42 Public method to get a list of all actions.
39 43
40 @return list of all actions (list of EricAction) 44 @return list of all actions
45 @rtype list of EricAction
41 """ 46 """
42 return self.actions[:] 47 return self.actions[:]
43 48
44 def initActions(self): 49 def initActions(self):
45 """ 50 """
615 620
616 def initMenu(self, menu): 621 def initMenu(self, menu):
617 """ 622 """
618 Public method to generate the VCS menu. 623 Public method to generate the VCS menu.
619 624
620 @param menu reference to the menu to be populated (QMenu) 625 @param menu reference to the menu to be populated
626 @type QMenu
621 """ 627 """
622 menu.clear() 628 menu.clear()
623 629
624 act = menu.addAction( 630 act = menu.addAction(
625 EricPixmapCache.getIcon( 631 EricPixmapCache.getIcon(
679 685
680 def initToolbar(self, ui, toolbarManager): 686 def initToolbar(self, ui, toolbarManager):
681 """ 687 """
682 Public slot to initialize the VCS toolbar. 688 Public slot to initialize the VCS toolbar.
683 689
684 @param ui reference to the main window (UserInterface) 690 @param ui reference to the main window
691 @type UserInterface
685 @param toolbarManager reference to a toolbar manager object 692 @param toolbarManager reference to a toolbar manager object
686 (EricToolBarManager) 693 @type EricToolBarManager
687 """ 694 """
688 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui) 695 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui)
689 self.__toolbar.setObjectName("PySvnToolbar") 696 self.__toolbar.setObjectName("PySvnToolbar")
690 self.__toolbar.setToolTip(self.tr("Subversion (pysvn)")) 697 self.__toolbar.setToolTip(self.tr("Subversion (pysvn)"))
691 698
721 728
722 def removeToolbar(self, ui, toolbarManager): 729 def removeToolbar(self, ui, toolbarManager):
723 """ 730 """
724 Public method to remove a toolbar created by initToolbar(). 731 Public method to remove a toolbar created by initToolbar().
725 732
726 @param ui reference to the main window (UserInterface) 733 @param ui reference to the main window
734 @type UserInterface
727 @param toolbarManager reference to a toolbar manager object 735 @param toolbarManager reference to a toolbar manager object
728 (EricToolBarManager) 736 @type EricToolBarManager
729 """ 737 """
730 ui.removeToolBar(self.__toolbar) 738 ui.removeToolBar(self.__toolbar)
731 ui.unregisterToolbar("pysvn") 739 ui.unregisterToolbar("pysvn")
732 740
733 title = self.__toolbar.windowTitle() 741 title = self.__toolbar.windowTitle()

eric ide

mercurial