src/eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
869 869
870 def initMenu(self, mainMenu): 870 def initMenu(self, mainMenu):
871 """ 871 """
872 Public method to generate the extension menu. 872 Public method to generate the extension menu.
873 873
874 @param mainMenu reference to the main menu (QMenu) 874 @param mainMenu reference to the main menu
875 @return populated menu (QMenu) 875 @type QMenu
876 @return populated menu
877 @rtype QMenu
876 """ 878 """
877 menu = QMenu(self.menuTitle(), mainMenu) 879 menu = QMenu(self.menuTitle(), mainMenu)
878 menu.setTearOffEnabled(True) 880 menu.setTearOffEnabled(True)
879 881
880 pushPopMenu = QMenu(self.tr("Push/Pop"), menu) 882 pushPopMenu = QMenu(self.tr("Push/Pop"), menu)
957 959
958 def menuTitle(self): 960 def menuTitle(self):
959 """ 961 """
960 Public method to get the menu title. 962 Public method to get the menu title.
961 963
962 @return title of the menu (string) 964 @return title of the menu
965 @rtype str
963 """ 966 """
964 return self.tr("Queues") 967 return self.tr("Queues")
965 968
966 def __hgQueueNewPatch(self): 969 def __hgQueueNewPatch(self):
967 """ 970 """
1000 Private method to push patches onto the stack or pop patches off the 1003 Private method to push patches onto the stack or pop patches off the
1001 stack. 1004 stack.
1002 1005
1003 @param operation operation type to be performed (Queues.POP, 1006 @param operation operation type to be performed (Queues.POP,
1004 Queues.PUSH, Queues.GOTO) 1007 Queues.PUSH, Queues.GOTO)
1005 @param doAll flag indicating to push/pop all (boolean) 1008 @type int
1009 @param doAll flag indicating to push/pop all
1010 @type bool
1006 @param named flag indicating to push/pop until a named patch 1011 @param named flag indicating to push/pop until a named patch
1007 is at the top of the stack (boolean) 1012 is at the top of the stack
1008 @param force flag indicating a forceful pop (boolean) 1013 @type bool
1014 @param force flag indicating a forceful pop
1015 @type bool
1009 """ 1016 """
1010 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches( 1017 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches(
1011 operation=operation, doAll=doAll, named=named, force=force 1018 operation=operation, doAll=doAll, named=named, force=force
1012 ) 1019 )
1013 if shouldReopen: 1020 if shouldReopen:

eric ide

mercurial