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 """ |
603 |
608 |
604 def initMenu(self, menu): |
609 def initMenu(self, menu): |
605 """ |
610 """ |
606 Public method to generate the VCS menu. |
611 Public method to generate the VCS menu. |
607 |
612 |
608 @param menu reference to the menu to be populated (QMenu) |
613 @param menu reference to the menu to be populated |
|
614 @type QMenu |
609 """ |
615 """ |
610 menu.clear() |
616 menu.clear() |
611 |
617 |
612 act = menu.addAction( |
618 act = menu.addAction( |
613 EricPixmapCache.getIcon( |
619 EricPixmapCache.getIcon( |
666 |
672 |
667 def initToolbar(self, ui, toolbarManager): |
673 def initToolbar(self, ui, toolbarManager): |
668 """ |
674 """ |
669 Public slot to initialize the VCS toolbar. |
675 Public slot to initialize the VCS toolbar. |
670 |
676 |
671 @param ui reference to the main window (UserInterface) |
677 @param ui reference to the main window |
|
678 @type UserInterface |
672 @param toolbarManager reference to a toolbar manager object |
679 @param toolbarManager reference to a toolbar manager object |
673 (EricToolBarManager) |
680 @type EricToolBarManager |
674 """ |
681 """ |
675 self.__toolbar = QToolBar(self.tr("Subversion (svn)"), ui) |
682 self.__toolbar = QToolBar(self.tr("Subversion (svn)"), ui) |
676 self.__toolbar.setObjectName("SubversionToolbar") |
683 self.__toolbar.setObjectName("SubversionToolbar") |
677 self.__toolbar.setToolTip(self.tr("Subversion (svn)")) |
684 self.__toolbar.setToolTip(self.tr("Subversion (svn)")) |
678 |
685 |
709 |
716 |
710 def removeToolbar(self, ui, toolbarManager): |
717 def removeToolbar(self, ui, toolbarManager): |
711 """ |
718 """ |
712 Public method to remove a toolbar created by initToolbar(). |
719 Public method to remove a toolbar created by initToolbar(). |
713 |
720 |
714 @param ui reference to the main window (UserInterface) |
721 @param ui reference to the main window |
|
722 @type UserInterface |
715 @param toolbarManager reference to a toolbar manager object |
723 @param toolbarManager reference to a toolbar manager object |
716 (EricToolBarManager) |
724 @type EricToolBarManager |
717 """ |
725 """ |
718 ui.removeToolBar(self.__toolbar) |
726 ui.removeToolBar(self.__toolbar) |
719 ui.unregisterToolbar("subversion") |
727 ui.unregisterToolbar("subversion") |
720 |
728 |
721 title = self.__toolbar.windowTitle() |
729 title = self.__toolbar.windowTitle() |