29 def initActions(self): |
29 def initActions(self): |
30 """ |
30 """ |
31 Public method to generate the action objects. |
31 Public method to generate the action objects. |
32 """ |
32 """ |
33 self.hgPurgeAct = E5Action( |
33 self.hgPurgeAct = E5Action( |
34 self.trUtf8('Purge Files'), |
34 self.tr('Purge Files'), |
35 UI.PixmapCache.getIcon("fileDelete.png"), |
35 UI.PixmapCache.getIcon("fileDelete.png"), |
36 self.trUtf8('Purge Files'), |
36 self.tr('Purge Files'), |
37 0, 0, self, 'mercurial_purge') |
37 0, 0, self, 'mercurial_purge') |
38 self.hgPurgeAct.setStatusTip(self.trUtf8( |
38 self.hgPurgeAct.setStatusTip(self.tr( |
39 'Delete files and directories not known to Mercurial' |
39 'Delete files and directories not known to Mercurial' |
40 )) |
40 )) |
41 self.hgPurgeAct.setWhatsThis(self.trUtf8( |
41 self.hgPurgeAct.setWhatsThis(self.tr( |
42 """<b>Purge Files</b>""" |
42 """<b>Purge Files</b>""" |
43 """<p>This deletes files and directories not known to Mercurial.""" |
43 """<p>This deletes files and directories not known to Mercurial.""" |
44 """ That means that purge will delete:<ul>""" |
44 """ That means that purge will delete:<ul>""" |
45 """<li>unknown files (marked with "not tracked" in the status""" |
45 """<li>unknown files (marked with "not tracked" in the status""" |
46 """ dialog)</li>""" |
46 """ dialog)</li>""" |
49 )) |
49 )) |
50 self.hgPurgeAct.triggered[()].connect(self.__hgPurge) |
50 self.hgPurgeAct.triggered[()].connect(self.__hgPurge) |
51 self.actions.append(self.hgPurgeAct) |
51 self.actions.append(self.hgPurgeAct) |
52 |
52 |
53 self.hgPurgeAllAct = E5Action( |
53 self.hgPurgeAllAct = E5Action( |
54 self.trUtf8('Purge All Files'), |
54 self.tr('Purge All Files'), |
55 self.trUtf8('Purge All Files'), |
55 self.tr('Purge All Files'), |
56 0, 0, self, 'mercurial_purge_all') |
56 0, 0, self, 'mercurial_purge_all') |
57 self.hgPurgeAllAct.setStatusTip(self.trUtf8( |
57 self.hgPurgeAllAct.setStatusTip(self.tr( |
58 'Delete files and directories not known to Mercurial including' |
58 'Delete files and directories not known to Mercurial including' |
59 ' ignored ones' |
59 ' ignored ones' |
60 )) |
60 )) |
61 self.hgPurgeAllAct.setWhatsThis(self.trUtf8( |
61 self.hgPurgeAllAct.setWhatsThis(self.tr( |
62 """<b>Purge All Files</b>""" |
62 """<b>Purge All Files</b>""" |
63 """<p>This deletes files and directories not known to Mercurial.""" |
63 """<p>This deletes files and directories not known to Mercurial.""" |
64 """ That means that purge will delete:<ul>""" |
64 """ That means that purge will delete:<ul>""" |
65 """<li>unknown files (marked with "not tracked" in the status""" |
65 """<li>unknown files (marked with "not tracked" in the status""" |
66 """ dialog)</li>""" |
66 """ dialog)</li>""" |
70 )) |
70 )) |
71 self.hgPurgeAllAct.triggered[()].connect(self.__hgPurgeAll) |
71 self.hgPurgeAllAct.triggered[()].connect(self.__hgPurgeAll) |
72 self.actions.append(self.hgPurgeAllAct) |
72 self.actions.append(self.hgPurgeAllAct) |
73 |
73 |
74 self.hgPurgeListAct = E5Action( |
74 self.hgPurgeListAct = E5Action( |
75 self.trUtf8('List Files to be Purged'), |
75 self.tr('List Files to be Purged'), |
76 UI.PixmapCache.getIcon("fileDeleteList.png"), |
76 UI.PixmapCache.getIcon("fileDeleteList.png"), |
77 self.trUtf8('List Files to be Purged...'), |
77 self.tr('List Files to be Purged...'), |
78 0, 0, self, 'mercurial_purge_list') |
78 0, 0, self, 'mercurial_purge_list') |
79 self.hgPurgeListAct.setStatusTip(self.trUtf8( |
79 self.hgPurgeListAct.setStatusTip(self.tr( |
80 'List files and directories not known to Mercurial' |
80 'List files and directories not known to Mercurial' |
81 )) |
81 )) |
82 self.hgPurgeListAct.setWhatsThis(self.trUtf8( |
82 self.hgPurgeListAct.setWhatsThis(self.tr( |
83 """<b>List Files to be Purged</b>""" |
83 """<b>List Files to be Purged</b>""" |
84 """<p>This lists files and directories not known to Mercurial.""" |
84 """<p>This lists files and directories not known to Mercurial.""" |
85 """ These would be deleted by the "Purge Files" menu entry.</p>""" |
85 """ These would be deleted by the "Purge Files" menu entry.</p>""" |
86 )) |
86 )) |
87 self.hgPurgeListAct.triggered[()].connect(self.__hgPurgeList) |
87 self.hgPurgeListAct.triggered[()].connect(self.__hgPurgeList) |
88 self.actions.append(self.hgPurgeListAct) |
88 self.actions.append(self.hgPurgeListAct) |
89 |
89 |
90 self.hgPurgeAllListAct = E5Action( |
90 self.hgPurgeAllListAct = E5Action( |
91 self.trUtf8('List All Files to be Purged'), |
91 self.tr('List All Files to be Purged'), |
92 self.trUtf8('List All Files to be Purged...'), |
92 self.tr('List All Files to be Purged...'), |
93 0, 0, self, 'mercurial_purge_all_list') |
93 0, 0, self, 'mercurial_purge_all_list') |
94 self.hgPurgeAllListAct.setStatusTip(self.trUtf8( |
94 self.hgPurgeAllListAct.setStatusTip(self.tr( |
95 'List files and directories not known to Mercurial including' |
95 'List files and directories not known to Mercurial including' |
96 ' ignored ones' |
96 ' ignored ones' |
97 )) |
97 )) |
98 self.hgPurgeAllListAct.setWhatsThis(self.trUtf8( |
98 self.hgPurgeAllListAct.setWhatsThis(self.tr( |
99 """<b>List All Files to be Purged</b>""" |
99 """<b>List All Files to be Purged</b>""" |
100 """<p>This lists files and directories not known to Mercurial""" |
100 """<p>This lists files and directories not known to Mercurial""" |
101 """ including ignored ones. These would be deleted by the""" |
101 """ including ignored ones. These would be deleted by the""" |
102 """ "Purge All Files" menu entry.</p>""" |
102 """ "Purge All Files" menu entry.</p>""" |
103 )) |
103 )) |