31 """ |
31 """ |
32 Public method to generate the action objects. |
32 Public method to generate the action objects. |
33 """ |
33 """ |
34 self.hgGpgListAct = E5Action( |
34 self.hgGpgListAct = E5Action( |
35 self.tr('List Signed Changesets'), |
35 self.tr('List Signed Changesets'), |
36 UI.PixmapCache.getIcon("changesetSignList.png"), |
36 UI.PixmapCache.getIcon("changesetSignList"), |
37 self.tr('List Signed Changesets...'), |
37 self.tr('List Signed Changesets...'), |
38 0, 0, self, 'mercurial_gpg_list') |
38 0, 0, self, 'mercurial_gpg_list') |
39 self.hgGpgListAct.setStatusTip(self.tr( |
39 self.hgGpgListAct.setStatusTip(self.tr( |
40 'List signed changesets' |
40 'List signed changesets' |
41 )) |
41 )) |
46 self.hgGpgListAct.triggered.connect(self.__hgGpgSignatures) |
46 self.hgGpgListAct.triggered.connect(self.__hgGpgSignatures) |
47 self.actions.append(self.hgGpgListAct) |
47 self.actions.append(self.hgGpgListAct) |
48 |
48 |
49 self.hgGpgVerifyAct = E5Action( |
49 self.hgGpgVerifyAct = E5Action( |
50 self.tr('Verify Signatures'), |
50 self.tr('Verify Signatures'), |
51 UI.PixmapCache.getIcon("changesetSignVerify.png"), |
51 UI.PixmapCache.getIcon("changesetSignVerify"), |
52 self.tr('Verify Signatures'), |
52 self.tr('Verify Signatures'), |
53 0, 0, self, 'mercurial_gpg_verify') |
53 0, 0, self, 'mercurial_gpg_verify') |
54 self.hgGpgVerifyAct.setStatusTip(self.tr( |
54 self.hgGpgVerifyAct.setStatusTip(self.tr( |
55 'Verify all signatures there may be for a particular revision' |
55 'Verify all signatures there may be for a particular revision' |
56 )) |
56 )) |
62 self.hgGpgVerifyAct.triggered.connect(self.__hgGpgVerifySignatures) |
62 self.hgGpgVerifyAct.triggered.connect(self.__hgGpgVerifySignatures) |
63 self.actions.append(self.hgGpgVerifyAct) |
63 self.actions.append(self.hgGpgVerifyAct) |
64 |
64 |
65 self.hgGpgSignAct = E5Action( |
65 self.hgGpgSignAct = E5Action( |
66 self.tr('Sign Revision'), |
66 self.tr('Sign Revision'), |
67 UI.PixmapCache.getIcon("changesetSign.png"), |
67 UI.PixmapCache.getIcon("changesetSign"), |
68 self.tr('Sign Revision'), |
68 self.tr('Sign Revision'), |
69 0, 0, self, 'mercurial_gpg_sign') |
69 0, 0, self, 'mercurial_gpg_sign') |
70 self.hgGpgSignAct.setStatusTip(self.tr( |
70 self.hgGpgSignAct.setStatusTip(self.tr( |
71 'Add a signature for a selected revision' |
71 'Add a signature for a selected revision' |
72 )) |
72 )) |
83 |
83 |
84 @param mainMenu reference to the main menu (QMenu) |
84 @param mainMenu reference to the main menu (QMenu) |
85 @return populated menu (QMenu) |
85 @return populated menu (QMenu) |
86 """ |
86 """ |
87 menu = QMenu(self.menuTitle(), mainMenu) |
87 menu = QMenu(self.menuTitle(), mainMenu) |
88 menu.setIcon(UI.PixmapCache.getIcon("changesetSign.png")) |
88 menu.setIcon(UI.PixmapCache.getIcon("changesetSign")) |
89 menu.setTearOffEnabled(True) |
89 menu.setTearOffEnabled(True) |
90 |
90 |
91 menu.addAction(self.hgGpgListAct) |
91 menu.addAction(self.hgGpgListAct) |
92 menu.addAction(self.hgGpgVerifyAct) |
92 menu.addAction(self.hgGpgVerifyAct) |
93 menu.addAction(self.hgGpgSignAct) |
93 menu.addAction(self.hgGpgSignAct) |