32 def initActions(self): |
32 def initActions(self): |
33 """ |
33 """ |
34 Public method to generate the action objects. |
34 Public method to generate the action objects. |
35 """ |
35 """ |
36 self.hgQueueInitAct = E5Action( |
36 self.hgQueueInitAct = E5Action( |
37 self.trUtf8('Init Queue Repository'), |
37 self.tr('Init Queue Repository'), |
38 self.trUtf8('Init Queue Repository'), |
38 self.tr('Init Queue Repository'), |
39 0, 0, self, 'mercurial_queues_init') |
39 0, 0, self, 'mercurial_queues_init') |
40 self.hgQueueInitAct.setStatusTip(self.trUtf8( |
40 self.hgQueueInitAct.setStatusTip(self.tr( |
41 'Initialize a new versioned queue repository' |
41 'Initialize a new versioned queue repository' |
42 )) |
42 )) |
43 self.hgQueueInitAct.setWhatsThis(self.trUtf8( |
43 self.hgQueueInitAct.setWhatsThis(self.tr( |
44 """<b>Init Queue Repository</b>""" |
44 """<b>Init Queue Repository</b>""" |
45 """<p>This initializes a new versioned queue repository inside""" |
45 """<p>This initializes a new versioned queue repository inside""" |
46 """ the current repository.</p>""" |
46 """ the current repository.</p>""" |
47 )) |
47 )) |
48 self.hgQueueInitAct.triggered[()].connect(self.__hgQueueInit) |
48 self.hgQueueInitAct.triggered.connect(self.__hgQueueInit) |
49 self.actions.append(self.hgQueueInitAct) |
49 self.actions.append(self.hgQueueInitAct) |
50 |
50 |
51 self.hgQueueCommitAct = E5Action( |
51 self.hgQueueCommitAct = E5Action( |
52 self.trUtf8('Commit changes'), |
52 self.tr('Commit changes'), |
53 self.trUtf8('Commit changes...'), |
53 self.tr('Commit changes...'), |
54 0, 0, self, 'mercurial_queues_commit') |
54 0, 0, self, 'mercurial_queues_commit') |
55 self.hgQueueCommitAct.setStatusTip(self.trUtf8( |
55 self.hgQueueCommitAct.setStatusTip(self.tr( |
56 'Commit changes in the queue repository' |
56 'Commit changes in the queue repository' |
57 )) |
57 )) |
58 self.hgQueueCommitAct.setWhatsThis(self.trUtf8( |
58 self.hgQueueCommitAct.setWhatsThis(self.tr( |
59 """<b>Commit changes...</b>""" |
59 """<b>Commit changes...</b>""" |
60 """<p>This commits changes in the queue repository.</p>""" |
60 """<p>This commits changes in the queue repository.</p>""" |
61 )) |
61 )) |
62 self.hgQueueCommitAct.triggered[()].connect(self.__hgQueueCommit) |
62 self.hgQueueCommitAct.triggered.connect(self.__hgQueueCommit) |
63 self.actions.append(self.hgQueueCommitAct) |
63 self.actions.append(self.hgQueueCommitAct) |
64 |
64 |
65 self.hgQueueNewAct = E5Action( |
65 self.hgQueueNewAct = E5Action( |
66 self.trUtf8('New Patch'), |
66 self.tr('New Patch'), |
67 self.trUtf8('New Patch...'), |
67 self.tr('New Patch...'), |
68 0, 0, self, 'mercurial_queues_new') |
68 0, 0, self, 'mercurial_queues_new') |
69 self.hgQueueNewAct.setStatusTip(self.trUtf8( |
69 self.hgQueueNewAct.setStatusTip(self.tr( |
70 'Create a new patch' |
70 'Create a new patch' |
71 )) |
71 )) |
72 self.hgQueueNewAct.setWhatsThis(self.trUtf8( |
72 self.hgQueueNewAct.setWhatsThis(self.tr( |
73 """<b>New Patch</b>""" |
73 """<b>New Patch</b>""" |
74 """<p>This creates a new named patch.</p>""" |
74 """<p>This creates a new named patch.</p>""" |
75 )) |
75 )) |
76 self.hgQueueNewAct.triggered[()].connect(self.__hgQueueNewPatch) |
76 self.hgQueueNewAct.triggered.connect(self.__hgQueueNewPatch) |
77 self.actions.append(self.hgQueueNewAct) |
77 self.actions.append(self.hgQueueNewAct) |
78 |
78 |
79 self.hgQueueRefreshAct = E5Action( |
79 self.hgQueueRefreshAct = E5Action( |
80 self.trUtf8('Update Current Patch'), |
80 self.tr('Update Current Patch'), |
81 self.trUtf8('Update Current Patch'), |
81 self.tr('Update Current Patch'), |
82 0, 0, self, 'mercurial_queues_refresh') |
82 0, 0, self, 'mercurial_queues_refresh') |
83 self.hgQueueRefreshAct.setStatusTip(self.trUtf8( |
83 self.hgQueueRefreshAct.setStatusTip(self.tr( |
84 'Update the current patch' |
84 'Update the current patch' |
85 )) |
85 )) |
86 self.hgQueueRefreshAct.setWhatsThis(self.trUtf8( |
86 self.hgQueueRefreshAct.setWhatsThis(self.tr( |
87 """<b>Update Current Patch</b>""" |
87 """<b>Update Current Patch</b>""" |
88 """<p>This updates the current patch.</p>""" |
88 """<p>This updates the current patch.</p>""" |
89 )) |
89 )) |
90 self.hgQueueRefreshAct.triggered[()].connect( |
90 self.hgQueueRefreshAct.triggered.connect( |
91 self.__hgQueueRefreshPatch) |
91 self.__hgQueueRefreshPatch) |
92 self.actions.append(self.hgQueueRefreshAct) |
92 self.actions.append(self.hgQueueRefreshAct) |
93 |
93 |
94 self.hgQueueRefreshMessageAct = E5Action( |
94 self.hgQueueRefreshMessageAct = E5Action( |
95 self.trUtf8('Update Current Patch (with Message)'), |
95 self.tr('Update Current Patch (with Message)'), |
96 self.trUtf8('Update Current Patch (with Message)'), |
96 self.tr('Update Current Patch (with Message)'), |
97 0, 0, self, 'mercurial_queues_refresh_message') |
97 0, 0, self, 'mercurial_queues_refresh_message') |
98 self.hgQueueRefreshMessageAct.setStatusTip(self.trUtf8( |
98 self.hgQueueRefreshMessageAct.setStatusTip(self.tr( |
99 'Update the current patch and edit commit message' |
99 'Update the current patch and edit commit message' |
100 )) |
100 )) |
101 self.hgQueueRefreshMessageAct.setWhatsThis(self.trUtf8( |
101 self.hgQueueRefreshMessageAct.setWhatsThis(self.tr( |
102 """<b>Update Current Patch (with Message)</b>""" |
102 """<b>Update Current Patch (with Message)</b>""" |
103 """<p>This updates the current patch after giving the chance""" |
103 """<p>This updates the current patch after giving the chance""" |
104 """ to change the current commit message.</p>""" |
104 """ to change the current commit message.</p>""" |
105 )) |
105 )) |
106 self.hgQueueRefreshMessageAct.triggered[()].connect( |
106 self.hgQueueRefreshMessageAct.triggered.connect( |
107 self.__hgQueueRefreshPatchMessage) |
107 self.__hgQueueRefreshPatchMessage) |
108 self.actions.append(self.hgQueueRefreshMessageAct) |
108 self.actions.append(self.hgQueueRefreshMessageAct) |
109 |
109 |
110 self.hgQueueDiffAct = E5Action( |
110 self.hgQueueDiffAct = E5Action( |
111 self.trUtf8('Show Current Patch'), |
111 self.tr('Show Current Patch'), |
112 self.trUtf8('Show Current Patch...'), |
112 self.tr('Show Current Patch...'), |
113 0, 0, self, 'mercurial_queues_show') |
113 0, 0, self, 'mercurial_queues_show') |
114 self.hgQueueDiffAct.setStatusTip(self.trUtf8( |
114 self.hgQueueDiffAct.setStatusTip(self.tr( |
115 'Show the contents the current patch' |
115 'Show the contents the current patch' |
116 )) |
116 )) |
117 self.hgQueueDiffAct.setWhatsThis(self.trUtf8( |
117 self.hgQueueDiffAct.setWhatsThis(self.tr( |
118 """<b>Show Current Patch</b>""" |
118 """<b>Show Current Patch</b>""" |
119 """<p>This shows the contents of the current patch including""" |
119 """<p>This shows the contents of the current patch including""" |
120 """ any changes which have been made in the working directory""" |
120 """ any changes which have been made in the working directory""" |
121 """ since the last refresh.</p>""" |
121 """ since the last refresh.</p>""" |
122 )) |
122 )) |
123 self.hgQueueDiffAct.triggered[()].connect(self.__hgQueueShowPatch) |
123 self.hgQueueDiffAct.triggered.connect(self.__hgQueueShowPatch) |
124 self.actions.append(self.hgQueueDiffAct) |
124 self.actions.append(self.hgQueueDiffAct) |
125 |
125 |
126 self.hgQueueHeaderAct = E5Action( |
126 self.hgQueueHeaderAct = E5Action( |
127 self.trUtf8('Show Current Message'), |
127 self.tr('Show Current Message'), |
128 self.trUtf8('Show Current Message...'), |
128 self.tr('Show Current Message...'), |
129 0, 0, self, 'mercurial_queues_show_message') |
129 0, 0, self, 'mercurial_queues_show_message') |
130 self.hgQueueHeaderAct.setStatusTip(self.trUtf8( |
130 self.hgQueueHeaderAct.setStatusTip(self.tr( |
131 'Show the commit message of the current patch' |
131 'Show the commit message of the current patch' |
132 )) |
132 )) |
133 self.hgQueueHeaderAct.setWhatsThis(self.trUtf8( |
133 self.hgQueueHeaderAct.setWhatsThis(self.tr( |
134 """<b>Show Current Message</b>""" |
134 """<b>Show Current Message</b>""" |
135 """<p>This shows the commit message of the current patch.</p>""" |
135 """<p>This shows the commit message of the current patch.</p>""" |
136 )) |
136 )) |
137 self.hgQueueHeaderAct.triggered[()].connect(self.__hgQueueShowHeader) |
137 self.hgQueueHeaderAct.triggered.connect(self.__hgQueueShowHeader) |
138 self.actions.append(self.hgQueueHeaderAct) |
138 self.actions.append(self.hgQueueHeaderAct) |
139 |
139 |
140 self.hgQueueListAct = E5Action( |
140 self.hgQueueListAct = E5Action( |
141 self.trUtf8('List Patches'), |
141 self.tr('List Patches'), |
142 self.trUtf8('List Patches...'), |
142 self.tr('List Patches...'), |
143 0, 0, self, 'mercurial_queues_list') |
143 0, 0, self, 'mercurial_queues_list') |
144 self.hgQueueListAct.setStatusTip(self.trUtf8( |
144 self.hgQueueListAct.setStatusTip(self.tr( |
145 'List applied and unapplied patches' |
145 'List applied and unapplied patches' |
146 )) |
146 )) |
147 self.hgQueueListAct.setWhatsThis(self.trUtf8( |
147 self.hgQueueListAct.setWhatsThis(self.tr( |
148 """<b>List Patches</b>""" |
148 """<b>List Patches</b>""" |
149 """<p>This lists all applied and unapplied patches.</p>""" |
149 """<p>This lists all applied and unapplied patches.</p>""" |
150 )) |
150 )) |
151 self.hgQueueListAct.triggered[()].connect(self.__hgQueueListPatches) |
151 self.hgQueueListAct.triggered.connect(self.__hgQueueListPatches) |
152 self.actions.append(self.hgQueueListAct) |
152 self.actions.append(self.hgQueueListAct) |
153 |
153 |
154 self.hgQueueFinishAct = E5Action( |
154 self.hgQueueFinishAct = E5Action( |
155 self.trUtf8('Finish Applied Patches'), |
155 self.tr('Finish Applied Patches'), |
156 self.trUtf8('Finish Applied Patches'), |
156 self.tr('Finish Applied Patches'), |
157 0, 0, self, 'mercurial_queues_finish_applied') |
157 0, 0, self, 'mercurial_queues_finish_applied') |
158 self.hgQueueFinishAct.setStatusTip(self.trUtf8( |
158 self.hgQueueFinishAct.setStatusTip(self.tr( |
159 'Finish applied patches' |
159 'Finish applied patches' |
160 )) |
160 )) |
161 self.hgQueueFinishAct.setWhatsThis(self.trUtf8( |
161 self.hgQueueFinishAct.setWhatsThis(self.tr( |
162 """<b>Finish Applied Patches</b>""" |
162 """<b>Finish Applied Patches</b>""" |
163 """<p>This finishes the applied patches by moving them out of""" |
163 """<p>This finishes the applied patches by moving them out of""" |
164 """ mq control into regular repository history.</p>""" |
164 """ mq control into regular repository history.</p>""" |
165 )) |
165 )) |
166 self.hgQueueFinishAct.triggered[()].connect( |
166 self.hgQueueFinishAct.triggered.connect( |
167 self.__hgQueueFinishAppliedPatches) |
167 self.__hgQueueFinishAppliedPatches) |
168 self.actions.append(self.hgQueueFinishAct) |
168 self.actions.append(self.hgQueueFinishAct) |
169 |
169 |
170 self.hgQueueRenameAct = E5Action( |
170 self.hgQueueRenameAct = E5Action( |
171 self.trUtf8('Rename Patch'), |
171 self.tr('Rename Patch'), |
172 self.trUtf8('Rename Patch'), |
172 self.tr('Rename Patch'), |
173 0, 0, self, 'mercurial_queues_rename') |
173 0, 0, self, 'mercurial_queues_rename') |
174 self.hgQueueRenameAct.setStatusTip(self.trUtf8( |
174 self.hgQueueRenameAct.setStatusTip(self.tr( |
175 'Rename a patch' |
175 'Rename a patch' |
176 )) |
176 )) |
177 self.hgQueueRenameAct.setWhatsThis(self.trUtf8( |
177 self.hgQueueRenameAct.setWhatsThis(self.tr( |
178 """<b>Rename Patch</b>""" |
178 """<b>Rename Patch</b>""" |
179 """<p>This renames the current or a named patch.</p>""" |
179 """<p>This renames the current or a named patch.</p>""" |
180 )) |
180 )) |
181 self.hgQueueRenameAct.triggered[()].connect(self.__hgQueueRenamePatch) |
181 self.hgQueueRenameAct.triggered.connect(self.__hgQueueRenamePatch) |
182 self.actions.append(self.hgQueueRenameAct) |
182 self.actions.append(self.hgQueueRenameAct) |
183 |
183 |
184 self.hgQueueDeleteAct = E5Action( |
184 self.hgQueueDeleteAct = E5Action( |
185 self.trUtf8('Delete Patch'), |
185 self.tr('Delete Patch'), |
186 self.trUtf8('Delete Patch'), |
186 self.tr('Delete Patch'), |
187 0, 0, self, 'mercurial_queues_delete') |
187 0, 0, self, 'mercurial_queues_delete') |
188 self.hgQueueDeleteAct.setStatusTip(self.trUtf8( |
188 self.hgQueueDeleteAct.setStatusTip(self.tr( |
189 'Delete unapplied patch' |
189 'Delete unapplied patch' |
190 )) |
190 )) |
191 self.hgQueueDeleteAct.setWhatsThis(self.trUtf8( |
191 self.hgQueueDeleteAct.setWhatsThis(self.tr( |
192 """<b>Delete Patch</b>""" |
192 """<b>Delete Patch</b>""" |
193 """<p>This deletes an unapplied patch.</p>""" |
193 """<p>This deletes an unapplied patch.</p>""" |
194 )) |
194 )) |
195 self.hgQueueDeleteAct.triggered[()].connect(self.__hgQueueDeletePatch) |
195 self.hgQueueDeleteAct.triggered.connect(self.__hgQueueDeletePatch) |
196 self.actions.append(self.hgQueueDeleteAct) |
196 self.actions.append(self.hgQueueDeleteAct) |
197 |
197 |
198 self.hgQueueFoldAct = E5Action( |
198 self.hgQueueFoldAct = E5Action( |
199 self.trUtf8('Fold Patches'), |
199 self.tr('Fold Patches'), |
200 self.trUtf8('Fold Patches'), |
200 self.tr('Fold Patches'), |
201 0, 0, self, 'mercurial_queues_fold') |
201 0, 0, self, 'mercurial_queues_fold') |
202 self.hgQueueFoldAct.setStatusTip(self.trUtf8( |
202 self.hgQueueFoldAct.setStatusTip(self.tr( |
203 'Fold unapplied patches into the current patch' |
203 'Fold unapplied patches into the current patch' |
204 )) |
204 )) |
205 self.hgQueueFoldAct.setWhatsThis(self.trUtf8( |
205 self.hgQueueFoldAct.setWhatsThis(self.tr( |
206 """<b>Fold Patches</b>""" |
206 """<b>Fold Patches</b>""" |
207 """<p>This folds unapplied patches into the current patch.</p>""" |
207 """<p>This folds unapplied patches into the current patch.</p>""" |
208 )) |
208 )) |
209 self.hgQueueFoldAct.triggered[()].connect( |
209 self.hgQueueFoldAct.triggered.connect( |
210 self.__hgQueueFoldUnappliedPatches) |
210 self.__hgQueueFoldUnappliedPatches) |
211 self.actions.append(self.hgQueueFoldAct) |
211 self.actions.append(self.hgQueueFoldAct) |
212 |
212 |
213 self.hgQueueStatusAct = E5Action( |
213 self.hgQueueStatusAct = E5Action( |
214 self.trUtf8('Show Status'), |
214 self.tr('Show Status'), |
215 self.trUtf8('Show &Status...'), |
215 self.tr('Show &Status...'), |
216 0, 0, self, 'mercurial_queues_status') |
216 0, 0, self, 'mercurial_queues_status') |
217 self.hgQueueStatusAct.setStatusTip(self.trUtf8( |
217 self.hgQueueStatusAct.setStatusTip(self.tr( |
218 'Show the status of the queue repository' |
218 'Show the status of the queue repository' |
219 )) |
219 )) |
220 self.hgQueueStatusAct.setWhatsThis(self.trUtf8( |
220 self.hgQueueStatusAct.setWhatsThis(self.tr( |
221 """<b>Show Status</b>""" |
221 """<b>Show Status</b>""" |
222 """<p>This shows the status of the queue repository.</p>""" |
222 """<p>This shows the status of the queue repository.</p>""" |
223 )) |
223 )) |
224 self.hgQueueStatusAct.triggered[()].connect(self.__hgQueueStatus) |
224 self.hgQueueStatusAct.triggered.connect(self.__hgQueueStatus) |
225 self.actions.append(self.hgQueueStatusAct) |
225 self.actions.append(self.hgQueueStatusAct) |
|
226 |
|
227 self.hgQueueSummaryAct = E5Action( |
|
228 self.tr('Show Summary'), |
|
229 self.tr('Show summary...'), |
|
230 0, 0, self, 'mercurial_queues_summary') |
|
231 self.hgQueueSummaryAct.setStatusTip(self.tr( |
|
232 'Show summary information of the queue repository' |
|
233 )) |
|
234 self.hgQueueSummaryAct.setWhatsThis(self.tr( |
|
235 """<b>Show summary</b>""" |
|
236 """<p>This shows some summary information of the queue""" |
|
237 """ repository.</p>""" |
|
238 )) |
|
239 self.hgQueueSummaryAct.triggered.connect(self.__hgQueueSummary) |
|
240 self.actions.append(self.hgQueueSummaryAct) |
226 |
241 |
227 self.__initPushPopActions() |
242 self.__initPushPopActions() |
228 self.__initPushPopForceActions() |
243 self.__initPushPopForceActions() |
229 self.__initGuardsActions() |
244 self.__initGuardsActions() |
230 self.__initQueuesMgmtActions() |
245 self.__initQueuesMgmtActions() |
232 def __initPushPopActions(self): |
247 def __initPushPopActions(self): |
233 """ |
248 """ |
234 Public method to generate the push and pop action objects. |
249 Public method to generate the push and pop action objects. |
235 """ |
250 """ |
236 self.hgQueuePushAct = E5Action( |
251 self.hgQueuePushAct = E5Action( |
237 self.trUtf8('Push Next Patch'), |
252 self.tr('Push Next Patch'), |
238 self.trUtf8('Push Next Patch'), |
253 self.tr('Push Next Patch'), |
239 0, 0, self, 'mercurial_queues_push_next') |
254 0, 0, self, 'mercurial_queues_push_next') |
240 self.hgQueuePushAct.setStatusTip(self.trUtf8( |
255 self.hgQueuePushAct.setStatusTip(self.tr( |
241 'Push the next patch onto the stack' |
256 'Push the next patch onto the stack' |
242 )) |
257 )) |
243 self.hgQueuePushAct.setWhatsThis(self.trUtf8( |
258 self.hgQueuePushAct.setWhatsThis(self.tr( |
244 """<b>Push Next Patch</b>""" |
259 """<b>Push Next Patch</b>""" |
245 """<p>This pushes the next patch onto the stack of applied""" |
260 """<p>This pushes the next patch onto the stack of applied""" |
246 """ patches.</p>""" |
261 """ patches.</p>""" |
247 )) |
262 )) |
248 self.hgQueuePushAct.triggered[()].connect(self.__hgQueuePushPatch) |
263 self.hgQueuePushAct.triggered.connect(self.__hgQueuePushPatch) |
249 self.actions.append(self.hgQueuePushAct) |
264 self.actions.append(self.hgQueuePushAct) |
250 |
265 |
251 self.hgQueuePushAllAct = E5Action( |
266 self.hgQueuePushAllAct = E5Action( |
252 self.trUtf8('Push All Patches'), |
267 self.tr('Push All Patches'), |
253 self.trUtf8('Push All Patches'), |
268 self.tr('Push All Patches'), |
254 0, 0, self, 'mercurial_queues_push_all') |
269 0, 0, self, 'mercurial_queues_push_all') |
255 self.hgQueuePushAllAct.setStatusTip(self.trUtf8( |
270 self.hgQueuePushAllAct.setStatusTip(self.tr( |
256 'Push all patches onto the stack' |
271 'Push all patches onto the stack' |
257 )) |
272 )) |
258 self.hgQueuePushAllAct.setWhatsThis(self.trUtf8( |
273 self.hgQueuePushAllAct.setWhatsThis(self.tr( |
259 """<b>Push All Patches</b>""" |
274 """<b>Push All Patches</b>""" |
260 """<p>This pushes all patches onto the stack of applied""" |
275 """<p>This pushes all patches onto the stack of applied""" |
261 """ patches.</p>""" |
276 """ patches.</p>""" |
262 )) |
277 )) |
263 self.hgQueuePushAllAct.triggered[()].connect( |
278 self.hgQueuePushAllAct.triggered.connect( |
264 self.__hgQueuePushAllPatches) |
279 self.__hgQueuePushAllPatches) |
265 self.actions.append(self.hgQueuePushAllAct) |
280 self.actions.append(self.hgQueuePushAllAct) |
266 |
281 |
267 self.hgQueuePushUntilAct = E5Action( |
282 self.hgQueuePushUntilAct = E5Action( |
268 self.trUtf8('Push Patches'), |
283 self.tr('Push Patches'), |
269 self.trUtf8('Push Patches'), |
284 self.tr('Push Patches'), |
270 0, 0, self, 'mercurial_queues_push_until') |
285 0, 0, self, 'mercurial_queues_push_until') |
271 self.hgQueuePushUntilAct.setStatusTip(self.trUtf8( |
286 self.hgQueuePushUntilAct.setStatusTip(self.tr( |
272 'Push patches onto the stack' |
287 'Push patches onto the stack' |
273 )) |
288 )) |
274 self.hgQueuePushUntilAct.setWhatsThis(self.trUtf8( |
289 self.hgQueuePushUntilAct.setWhatsThis(self.tr( |
275 """<b>Push Patches</b>""" |
290 """<b>Push Patches</b>""" |
276 """<p>This pushes patches onto the stack of applied patches""" |
291 """<p>This pushes patches onto the stack of applied patches""" |
277 """ until a named patch is at the top of the stack.</p>""" |
292 """ until a named patch is at the top of the stack.</p>""" |
278 )) |
293 )) |
279 self.hgQueuePushUntilAct.triggered[()].connect( |
294 self.hgQueuePushUntilAct.triggered.connect( |
280 self.__hgQueuePushPatches) |
295 self.__hgQueuePushPatches) |
281 self.actions.append(self.hgQueuePushUntilAct) |
296 self.actions.append(self.hgQueuePushUntilAct) |
282 |
297 |
283 self.hgQueuePopAct = E5Action( |
298 self.hgQueuePopAct = E5Action( |
284 self.trUtf8('Pop Current Patch'), |
299 self.tr('Pop Current Patch'), |
285 self.trUtf8('Pop Current Patch'), |
300 self.tr('Pop Current Patch'), |
286 0, 0, self, 'mercurial_queues_pop_current') |
301 0, 0, self, 'mercurial_queues_pop_current') |
287 self.hgQueuePopAct.setStatusTip(self.trUtf8( |
302 self.hgQueuePopAct.setStatusTip(self.tr( |
288 'Pop the current patch off the stack' |
303 'Pop the current patch off the stack' |
289 )) |
304 )) |
290 self.hgQueuePopAct.setWhatsThis(self.trUtf8( |
305 self.hgQueuePopAct.setWhatsThis(self.tr( |
291 """<b>Pop Current Patch</b>""" |
306 """<b>Pop Current Patch</b>""" |
292 """<p>This pops the current patch off the stack of applied""" |
307 """<p>This pops the current patch off the stack of applied""" |
293 """ patches.</p>""" |
308 """ patches.</p>""" |
294 )) |
309 )) |
295 self.hgQueuePopAct.triggered[()].connect(self.__hgQueuePopPatch) |
310 self.hgQueuePopAct.triggered.connect(self.__hgQueuePopPatch) |
296 self.actions.append(self.hgQueuePopAct) |
311 self.actions.append(self.hgQueuePopAct) |
297 |
312 |
298 self.hgQueuePopAllAct = E5Action( |
313 self.hgQueuePopAllAct = E5Action( |
299 self.trUtf8('Pop All Patches'), |
314 self.tr('Pop All Patches'), |
300 self.trUtf8('Pop All Patches'), |
315 self.tr('Pop All Patches'), |
301 0, 0, self, 'mercurial_queues_pop_all') |
316 0, 0, self, 'mercurial_queues_pop_all') |
302 self.hgQueuePopAllAct.setStatusTip(self.trUtf8( |
317 self.hgQueuePopAllAct.setStatusTip(self.tr( |
303 'Pop all patches off the stack' |
318 'Pop all patches off the stack' |
304 )) |
319 )) |
305 self.hgQueuePopAllAct.setWhatsThis(self.trUtf8( |
320 self.hgQueuePopAllAct.setWhatsThis(self.tr( |
306 """<b>Pop All Patches</b>""" |
321 """<b>Pop All Patches</b>""" |
307 """<p>This pops all patches off the stack of applied""" |
322 """<p>This pops all patches off the stack of applied""" |
308 """ patches.</p>""" |
323 """ patches.</p>""" |
309 )) |
324 )) |
310 self.hgQueuePopAllAct.triggered[()].connect( |
325 self.hgQueuePopAllAct.triggered.connect( |
311 self.__hgQueuePopAllPatches) |
326 self.__hgQueuePopAllPatches) |
312 self.actions.append(self.hgQueuePopAllAct) |
327 self.actions.append(self.hgQueuePopAllAct) |
313 |
328 |
314 self.hgQueuePopUntilAct = E5Action( |
329 self.hgQueuePopUntilAct = E5Action( |
315 self.trUtf8('Pop Patches'), |
330 self.tr('Pop Patches'), |
316 self.trUtf8('Pop Patches'), |
331 self.tr('Pop Patches'), |
317 0, 0, self, 'mercurial_queues_pop_until') |
332 0, 0, self, 'mercurial_queues_pop_until') |
318 self.hgQueuePopUntilAct.setStatusTip(self.trUtf8( |
333 self.hgQueuePopUntilAct.setStatusTip(self.tr( |
319 'Pop patches off the stack' |
334 'Pop patches off the stack' |
320 )) |
335 )) |
321 self.hgQueuePopUntilAct.setWhatsThis(self.trUtf8( |
336 self.hgQueuePopUntilAct.setWhatsThis(self.tr( |
322 """<b>Pop Patches</b>""" |
337 """<b>Pop Patches</b>""" |
323 """<p>This pops patches off the stack of applied patches""" |
338 """<p>This pops patches off the stack of applied patches""" |
324 """ until a named patch is at the top of the stack.</p>""" |
339 """ until a named patch is at the top of the stack.</p>""" |
325 )) |
340 )) |
326 self.hgQueuePopUntilAct.triggered[()].connect(self.__hgQueuePopPatches) |
341 self.hgQueuePopUntilAct.triggered.connect(self.__hgQueuePopPatches) |
327 self.actions.append(self.hgQueuePopUntilAct) |
342 self.actions.append(self.hgQueuePopUntilAct) |
328 |
343 |
329 self.hgQueueGotoAct = E5Action( |
344 self.hgQueueGotoAct = E5Action( |
330 self.trUtf8('Go to Patch'), |
345 self.tr('Go to Patch'), |
331 self.trUtf8('Go to Patch'), |
346 self.tr('Go to Patch'), |
332 0, 0, self, 'mercurial_queues_goto') |
347 0, 0, self, 'mercurial_queues_goto') |
333 self.hgQueueGotoAct.setStatusTip(self.trUtf8( |
348 self.hgQueueGotoAct.setStatusTip(self.tr( |
334 'Push or pop patches until named patch is at top of stack' |
349 'Push or pop patches until named patch is at top of stack' |
335 )) |
350 )) |
336 self.hgQueueGotoAct.setWhatsThis(self.trUtf8( |
351 self.hgQueueGotoAct.setWhatsThis(self.tr( |
337 """<b>Go to Patch</b>""" |
352 """<b>Go to Patch</b>""" |
338 """<p>This pushes or pops patches until a named patch is at the""" |
353 """<p>This pushes or pops patches until a named patch is at the""" |
339 """ top of the stack.</p>""" |
354 """ top of the stack.</p>""" |
340 )) |
355 )) |
341 self.hgQueueGotoAct.triggered[()].connect(self.__hgQueueGotoPatch) |
356 self.hgQueueGotoAct.triggered.connect(self.__hgQueueGotoPatch) |
342 self.actions.append(self.hgQueueGotoAct) |
357 self.actions.append(self.hgQueueGotoAct) |
343 |
358 |
344 def __initPushPopForceActions(self): |
359 def __initPushPopForceActions(self): |
345 """ |
360 """ |
346 Public method to generate the push and pop (force) action objects. |
361 Public method to generate the push and pop (force) action objects. |
347 """ |
362 """ |
348 self.hgQueuePushForceAct = E5Action( |
363 self.hgQueuePushForceAct = E5Action( |
349 self.trUtf8('Push Next Patch'), |
364 self.tr('Push Next Patch'), |
350 self.trUtf8('Push Next Patch'), |
365 self.tr('Push Next Patch'), |
351 0, 0, self, 'mercurial_queues_push_next_force') |
366 0, 0, self, 'mercurial_queues_push_next_force') |
352 self.hgQueuePushForceAct.setStatusTip(self.trUtf8( |
367 self.hgQueuePushForceAct.setStatusTip(self.tr( |
353 'Push the next patch onto the stack on top of local changes' |
368 'Push the next patch onto the stack on top of local changes' |
354 )) |
369 )) |
355 self.hgQueuePushForceAct.setWhatsThis(self.trUtf8( |
370 self.hgQueuePushForceAct.setWhatsThis(self.tr( |
356 """<b>Push Next Patch</b>""" |
371 """<b>Push Next Patch</b>""" |
357 """<p>This pushes the next patch onto the stack of applied""" |
372 """<p>This pushes the next patch onto the stack of applied""" |
358 """ patches on top of local changes.</p>""" |
373 """ patches on top of local changes.</p>""" |
359 )) |
374 )) |
360 self.hgQueuePushForceAct.triggered[()].connect( |
375 self.hgQueuePushForceAct.triggered.connect( |
361 self.__hgQueuePushPatchForced) |
376 self.__hgQueuePushPatchForced) |
362 self.actions.append(self.hgQueuePushForceAct) |
377 self.actions.append(self.hgQueuePushForceAct) |
363 |
378 |
364 self.hgQueuePushAllForceAct = E5Action( |
379 self.hgQueuePushAllForceAct = E5Action( |
365 self.trUtf8('Push All Patches'), |
380 self.tr('Push All Patches'), |
366 self.trUtf8('Push All Patches'), |
381 self.tr('Push All Patches'), |
367 0, 0, self, 'mercurial_queues_push_all_force') |
382 0, 0, self, 'mercurial_queues_push_all_force') |
368 self.hgQueuePushAllForceAct.setStatusTip(self.trUtf8( |
383 self.hgQueuePushAllForceAct.setStatusTip(self.tr( |
369 'Push all patches onto the stack on top of local changes' |
384 'Push all patches onto the stack on top of local changes' |
370 )) |
385 )) |
371 self.hgQueuePushAllForceAct.setWhatsThis(self.trUtf8( |
386 self.hgQueuePushAllForceAct.setWhatsThis(self.tr( |
372 """<b>Push All Patches</b>""" |
387 """<b>Push All Patches</b>""" |
373 """<p>This pushes all patches onto the stack of applied patches""" |
388 """<p>This pushes all patches onto the stack of applied patches""" |
374 """ on top of local changes.</p>""" |
389 """ on top of local changes.</p>""" |
375 )) |
390 )) |
376 self.hgQueuePushAllForceAct.triggered[()].connect( |
391 self.hgQueuePushAllForceAct.triggered.connect( |
377 self.__hgQueuePushAllPatchesForced) |
392 self.__hgQueuePushAllPatchesForced) |
378 self.actions.append(self.hgQueuePushAllForceAct) |
393 self.actions.append(self.hgQueuePushAllForceAct) |
379 |
394 |
380 self.hgQueuePushUntilForceAct = E5Action( |
395 self.hgQueuePushUntilForceAct = E5Action( |
381 self.trUtf8('Push Patches'), |
396 self.tr('Push Patches'), |
382 self.trUtf8('Push Patches'), |
397 self.tr('Push Patches'), |
383 0, 0, self, 'mercurial_queues_push_until_force') |
398 0, 0, self, 'mercurial_queues_push_until_force') |
384 self.hgQueuePushUntilForceAct.setStatusTip(self.trUtf8( |
399 self.hgQueuePushUntilForceAct.setStatusTip(self.tr( |
385 'Push patches onto the stack on top of local changes' |
400 'Push patches onto the stack on top of local changes' |
386 )) |
401 )) |
387 self.hgQueuePushUntilForceAct.setWhatsThis(self.trUtf8( |
402 self.hgQueuePushUntilForceAct.setWhatsThis(self.tr( |
388 """<b>Push Patches</b>""" |
403 """<b>Push Patches</b>""" |
389 """<p>This pushes patches onto the stack of applied patches""" |
404 """<p>This pushes patches onto the stack of applied patches""" |
390 """ until a named patch is at the top of the stack on top of""" |
405 """ until a named patch is at the top of the stack on top of""" |
391 """ local changes.</p>""" |
406 """ local changes.</p>""" |
392 )) |
407 )) |
393 self.hgQueuePushUntilForceAct.triggered[()].connect( |
408 self.hgQueuePushUntilForceAct.triggered.connect( |
394 self.__hgQueuePushPatchesForced) |
409 self.__hgQueuePushPatchesForced) |
395 self.actions.append(self.hgQueuePushUntilForceAct) |
410 self.actions.append(self.hgQueuePushUntilForceAct) |
396 |
411 |
397 self.hgQueuePopForceAct = E5Action( |
412 self.hgQueuePopForceAct = E5Action( |
398 self.trUtf8('Pop Current Patch'), |
413 self.tr('Pop Current Patch'), |
399 self.trUtf8('Pop Current Patch'), |
414 self.tr('Pop Current Patch'), |
400 0, 0, self, 'mercurial_queues_pop_current_force') |
415 0, 0, self, 'mercurial_queues_pop_current_force') |
401 self.hgQueuePopForceAct.setStatusTip(self.trUtf8( |
416 self.hgQueuePopForceAct.setStatusTip(self.tr( |
402 'Pop the current patch off the stack forgetting local changes' |
417 'Pop the current patch off the stack forgetting local changes' |
403 )) |
418 )) |
404 self.hgQueuePopForceAct.setWhatsThis(self.trUtf8( |
419 self.hgQueuePopForceAct.setWhatsThis(self.tr( |
405 """<b>Pop Current Patch</b>""" |
420 """<b>Pop Current Patch</b>""" |
406 """<p>This pops the current patch off the stack of applied""" |
421 """<p>This pops the current patch off the stack of applied""" |
407 """ patches""" |
422 """ patches""" |
408 """ forgetting local changes.</p>""" |
423 """ forgetting local changes.</p>""" |
409 )) |
424 )) |
410 self.hgQueuePopForceAct.triggered[()].connect( |
425 self.hgQueuePopForceAct.triggered.connect( |
411 self.__hgQueuePopPatchForced) |
426 self.__hgQueuePopPatchForced) |
412 self.actions.append(self.hgQueuePopForceAct) |
427 self.actions.append(self.hgQueuePopForceAct) |
413 |
428 |
414 self.hgQueuePopAllForceAct = E5Action( |
429 self.hgQueuePopAllForceAct = E5Action( |
415 self.trUtf8('Pop All Patches'), |
430 self.tr('Pop All Patches'), |
416 self.trUtf8('Pop All Patches'), |
431 self.tr('Pop All Patches'), |
417 0, 0, self, 'mercurial_queues_pop_all_force') |
432 0, 0, self, 'mercurial_queues_pop_all_force') |
418 self.hgQueuePopAllForceAct.setStatusTip(self.trUtf8( |
433 self.hgQueuePopAllForceAct.setStatusTip(self.tr( |
419 'Pop all patches off the stack forgetting local changes' |
434 'Pop all patches off the stack forgetting local changes' |
420 )) |
435 )) |
421 self.hgQueuePopAllForceAct.setWhatsThis(self.trUtf8( |
436 self.hgQueuePopAllForceAct.setWhatsThis(self.tr( |
422 """<b>Pop All Patches</b>""" |
437 """<b>Pop All Patches</b>""" |
423 """<p>This pops all patches off the stack of applied patches""" |
438 """<p>This pops all patches off the stack of applied patches""" |
424 """ forgetting local changes.</p>""" |
439 """ forgetting local changes.</p>""" |
425 )) |
440 )) |
426 self.hgQueuePopAllForceAct.triggered[()].connect( |
441 self.hgQueuePopAllForceAct.triggered.connect( |
427 self.__hgQueuePopAllPatchesForced) |
442 self.__hgQueuePopAllPatchesForced) |
428 self.actions.append(self.hgQueuePopAllForceAct) |
443 self.actions.append(self.hgQueuePopAllForceAct) |
429 |
444 |
430 self.hgQueuePopUntilForceAct = E5Action( |
445 self.hgQueuePopUntilForceAct = E5Action( |
431 self.trUtf8('Pop Patches'), |
446 self.tr('Pop Patches'), |
432 self.trUtf8('Pop Patches'), |
447 self.tr('Pop Patches'), |
433 0, 0, self, 'mercurial_queues_pop_until_force') |
448 0, 0, self, 'mercurial_queues_pop_until_force') |
434 self.hgQueuePopUntilForceAct.setStatusTip(self.trUtf8( |
449 self.hgQueuePopUntilForceAct.setStatusTip(self.tr( |
435 'Pop patches off the stack forgetting local changes' |
450 'Pop patches off the stack forgetting local changes' |
436 )) |
451 )) |
437 self.hgQueuePopUntilForceAct.setWhatsThis(self.trUtf8( |
452 self.hgQueuePopUntilForceAct.setWhatsThis(self.tr( |
438 """<b>Pop Patches</b>""" |
453 """<b>Pop Patches</b>""" |
439 """<p>This pops patches off the stack of applied patches until""" |
454 """<p>This pops patches off the stack of applied patches until""" |
440 """ a named patch is at the top of the stack forgetting local""" |
455 """ a named patch is at the top of the stack forgetting local""" |
441 """ changes.</p>""" |
456 """ changes.</p>""" |
442 )) |
457 )) |
443 self.hgQueuePopUntilForceAct.triggered[()].connect( |
458 self.hgQueuePopUntilForceAct.triggered.connect( |
444 self.__hgQueuePopPatchesForced) |
459 self.__hgQueuePopPatchesForced) |
445 self.actions.append(self.hgQueuePopUntilForceAct) |
460 self.actions.append(self.hgQueuePopUntilForceAct) |
446 |
461 |
447 self.hgQueueGotoForceAct = E5Action( |
462 self.hgQueueGotoForceAct = E5Action( |
448 self.trUtf8('Go to Patch'), |
463 self.tr('Go to Patch'), |
449 self.trUtf8('Go to Patch'), |
464 self.tr('Go to Patch'), |
450 0, 0, self, 'mercurial_queues_goto_force') |
465 0, 0, self, 'mercurial_queues_goto_force') |
451 self.hgQueueGotoForceAct.setStatusTip(self.trUtf8( |
466 self.hgQueueGotoForceAct.setStatusTip(self.tr( |
452 'Push or pop patches until named patch is at top of stack' |
467 'Push or pop patches until named patch is at top of stack' |
453 ' overwriting any local changes' |
468 ' overwriting any local changes' |
454 )) |
469 )) |
455 self.hgQueueGotoForceAct.setWhatsThis(self.trUtf8( |
470 self.hgQueueGotoForceAct.setWhatsThis(self.tr( |
456 """<b>Go to Patch</b>""" |
471 """<b>Go to Patch</b>""" |
457 """<p>This pushes or pops patches until a named patch is at the""" |
472 """<p>This pushes or pops patches until a named patch is at the""" |
458 """ top of the stack overwriting any local changes.</p>""" |
473 """ top of the stack overwriting any local changes.</p>""" |
459 )) |
474 )) |
460 self.hgQueueGotoForceAct.triggered[()].connect( |
475 self.hgQueueGotoForceAct.triggered.connect( |
461 self.__hgQueueGotoPatchForced) |
476 self.__hgQueueGotoPatchForced) |
462 self.actions.append(self.hgQueueGotoForceAct) |
477 self.actions.append(self.hgQueueGotoForceAct) |
463 |
478 |
464 def __initGuardsActions(self): |
479 def __initGuardsActions(self): |
465 """ |
480 """ |
466 Public method to generate the guards action objects. |
481 Public method to generate the guards action objects. |
467 """ |
482 """ |
468 self.hgQueueDefineGuardsAct = E5Action( |
483 self.hgQueueDefineGuardsAct = E5Action( |
469 self.trUtf8('Define Guards'), |
484 self.tr('Define Guards'), |
470 self.trUtf8('Define Guards...'), |
485 self.tr('Define Guards...'), |
471 0, 0, self, 'mercurial_queues_guards_define') |
486 0, 0, self, 'mercurial_queues_guards_define') |
472 self.hgQueueDefineGuardsAct.setStatusTip(self.trUtf8( |
487 self.hgQueueDefineGuardsAct.setStatusTip(self.tr( |
473 'Define guards for the current or a named patch' |
488 'Define guards for the current or a named patch' |
474 )) |
489 )) |
475 self.hgQueueDefineGuardsAct.setWhatsThis(self.trUtf8( |
490 self.hgQueueDefineGuardsAct.setWhatsThis(self.tr( |
476 """<b>Define Guards</b>""" |
491 """<b>Define Guards</b>""" |
477 """<p>This opens a dialog to define guards for the current""" |
492 """<p>This opens a dialog to define guards for the current""" |
478 """ or a named patch.</p>""" |
493 """ or a named patch.</p>""" |
479 )) |
494 )) |
480 self.hgQueueDefineGuardsAct.triggered[()].connect( |
495 self.hgQueueDefineGuardsAct.triggered.connect( |
481 self.__hgQueueGuardsDefine) |
496 self.__hgQueueGuardsDefine) |
482 self.actions.append(self.hgQueueDefineGuardsAct) |
497 self.actions.append(self.hgQueueDefineGuardsAct) |
483 |
498 |
484 self.hgQueueDropAllGuardsAct = E5Action( |
499 self.hgQueueDropAllGuardsAct = E5Action( |
485 self.trUtf8('Drop All Guards'), |
500 self.tr('Drop All Guards'), |
486 self.trUtf8('Drop All Guards...'), |
501 self.tr('Drop All Guards...'), |
487 0, 0, self, 'mercurial_queues_guards_drop_all') |
502 0, 0, self, 'mercurial_queues_guards_drop_all') |
488 self.hgQueueDropAllGuardsAct.setStatusTip(self.trUtf8( |
503 self.hgQueueDropAllGuardsAct.setStatusTip(self.tr( |
489 'Drop all guards of the current or a named patch' |
504 'Drop all guards of the current or a named patch' |
490 )) |
505 )) |
491 self.hgQueueDropAllGuardsAct.setWhatsThis(self.trUtf8( |
506 self.hgQueueDropAllGuardsAct.setWhatsThis(self.tr( |
492 """<b>Drop All Guards</b>""" |
507 """<b>Drop All Guards</b>""" |
493 """<p>This drops all guards of the current or a named patch.</p>""" |
508 """<p>This drops all guards of the current or a named patch.</p>""" |
494 )) |
509 )) |
495 self.hgQueueDropAllGuardsAct.triggered[()].connect( |
510 self.hgQueueDropAllGuardsAct.triggered.connect( |
496 self.__hgQueueGuardsDropAll) |
511 self.__hgQueueGuardsDropAll) |
497 self.actions.append(self.hgQueueDropAllGuardsAct) |
512 self.actions.append(self.hgQueueDropAllGuardsAct) |
498 |
513 |
499 self.hgQueueListGuardsAct = E5Action( |
514 self.hgQueueListGuardsAct = E5Action( |
500 self.trUtf8('List Guards'), |
515 self.tr('List Guards'), |
501 self.trUtf8('List Guards...'), |
516 self.tr('List Guards...'), |
502 0, 0, self, 'mercurial_queues_guards_list') |
517 0, 0, self, 'mercurial_queues_guards_list') |
503 self.hgQueueListGuardsAct.setStatusTip(self.trUtf8( |
518 self.hgQueueListGuardsAct.setStatusTip(self.tr( |
504 'List guards of the current or a named patch' |
519 'List guards of the current or a named patch' |
505 )) |
520 )) |
506 self.hgQueueListGuardsAct.setWhatsThis(self.trUtf8( |
521 self.hgQueueListGuardsAct.setWhatsThis(self.tr( |
507 """<b>List Guards</b>""" |
522 """<b>List Guards</b>""" |
508 """<p>This lists the guards of the current or a named patch.</p>""" |
523 """<p>This lists the guards of the current or a named patch.</p>""" |
509 )) |
524 )) |
510 self.hgQueueListGuardsAct.triggered[()].connect( |
525 self.hgQueueListGuardsAct.triggered.connect( |
511 self.__hgQueueGuardsList) |
526 self.__hgQueueGuardsList) |
512 self.actions.append(self.hgQueueListGuardsAct) |
527 self.actions.append(self.hgQueueListGuardsAct) |
513 |
528 |
514 self.hgQueueListAllGuardsAct = E5Action( |
529 self.hgQueueListAllGuardsAct = E5Action( |
515 self.trUtf8('List All Guards'), |
530 self.tr('List All Guards'), |
516 self.trUtf8('List All Guards...'), |
531 self.tr('List All Guards...'), |
517 0, 0, self, 'mercurial_queues_guards_list_all') |
532 0, 0, self, 'mercurial_queues_guards_list_all') |
518 self.hgQueueListAllGuardsAct.setStatusTip(self.trUtf8( |
533 self.hgQueueListAllGuardsAct.setStatusTip(self.tr( |
519 'List all guards of all patches' |
534 'List all guards of all patches' |
520 )) |
535 )) |
521 self.hgQueueListAllGuardsAct.setWhatsThis(self.trUtf8( |
536 self.hgQueueListAllGuardsAct.setWhatsThis(self.tr( |
522 """<b>List All Guards</b>""" |
537 """<b>List All Guards</b>""" |
523 """<p>This lists all guards of all patches.</p>""" |
538 """<p>This lists all guards of all patches.</p>""" |
524 )) |
539 )) |
525 self.hgQueueListAllGuardsAct.triggered[()].connect( |
540 self.hgQueueListAllGuardsAct.triggered.connect( |
526 self.__hgQueueGuardsListAll) |
541 self.__hgQueueGuardsListAll) |
527 self.actions.append(self.hgQueueListAllGuardsAct) |
542 self.actions.append(self.hgQueueListAllGuardsAct) |
528 |
543 |
529 self.hgQueueActivateGuardsAct = E5Action( |
544 self.hgQueueActivateGuardsAct = E5Action( |
530 self.trUtf8('Set Active Guards'), |
545 self.tr('Set Active Guards'), |
531 self.trUtf8('Set Active Guards...'), |
546 self.tr('Set Active Guards...'), |
532 0, 0, self, 'mercurial_queues_guards_set_active') |
547 0, 0, self, 'mercurial_queues_guards_set_active') |
533 self.hgQueueActivateGuardsAct.setStatusTip(self.trUtf8( |
548 self.hgQueueActivateGuardsAct.setStatusTip(self.tr( |
534 'Set the list of active guards' |
549 'Set the list of active guards' |
535 )) |
550 )) |
536 self.hgQueueActivateGuardsAct.setWhatsThis(self.trUtf8( |
551 self.hgQueueActivateGuardsAct.setWhatsThis(self.tr( |
537 """<b>Set Active Guards</b>""" |
552 """<b>Set Active Guards</b>""" |
538 """<p>This opens a dialog to set the active guards.</p>""" |
553 """<p>This opens a dialog to set the active guards.</p>""" |
539 )) |
554 )) |
540 self.hgQueueActivateGuardsAct.triggered[()].connect( |
555 self.hgQueueActivateGuardsAct.triggered.connect( |
541 self.__hgQueueGuardsSetActive) |
556 self.__hgQueueGuardsSetActive) |
542 self.actions.append(self.hgQueueActivateGuardsAct) |
557 self.actions.append(self.hgQueueActivateGuardsAct) |
543 |
558 |
544 self.hgQueueDeactivateGuardsAct = E5Action( |
559 self.hgQueueDeactivateGuardsAct = E5Action( |
545 self.trUtf8('Deactivate Guards'), |
560 self.tr('Deactivate Guards'), |
546 self.trUtf8('Deactivate Guards...'), |
561 self.tr('Deactivate Guards...'), |
547 0, 0, self, 'mercurial_queues_guards_deactivate') |
562 0, 0, self, 'mercurial_queues_guards_deactivate') |
548 self.hgQueueDeactivateGuardsAct.setStatusTip(self.trUtf8( |
563 self.hgQueueDeactivateGuardsAct.setStatusTip(self.tr( |
549 'Deactivate all active guards' |
564 'Deactivate all active guards' |
550 )) |
565 )) |
551 self.hgQueueDeactivateGuardsAct.setWhatsThis(self.trUtf8( |
566 self.hgQueueDeactivateGuardsAct.setWhatsThis(self.tr( |
552 """<b>Deactivate Guards</b>""" |
567 """<b>Deactivate Guards</b>""" |
553 """<p>This deactivates all active guards.</p>""" |
568 """<p>This deactivates all active guards.</p>""" |
554 )) |
569 )) |
555 self.hgQueueDeactivateGuardsAct.triggered[()].connect( |
570 self.hgQueueDeactivateGuardsAct.triggered.connect( |
556 self.__hgQueueGuardsDeactivate) |
571 self.__hgQueueGuardsDeactivate) |
557 self.actions.append(self.hgQueueDeactivateGuardsAct) |
572 self.actions.append(self.hgQueueDeactivateGuardsAct) |
558 |
573 |
559 self.hgQueueIdentifyActiveGuardsAct = E5Action( |
574 self.hgQueueIdentifyActiveGuardsAct = E5Action( |
560 self.trUtf8('Identify Active Guards'), |
575 self.tr('Identify Active Guards'), |
561 self.trUtf8('Identify Active Guards...'), |
576 self.tr('Identify Active Guards...'), |
562 0, 0, self, 'mercurial_queues_guards_identify_active') |
577 0, 0, self, 'mercurial_queues_guards_identify_active') |
563 self.hgQueueIdentifyActiveGuardsAct.setStatusTip(self.trUtf8( |
578 self.hgQueueIdentifyActiveGuardsAct.setStatusTip(self.tr( |
564 'Show a list of active guards' |
579 'Show a list of active guards' |
565 )) |
580 )) |
566 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(self.trUtf8( |
581 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(self.tr( |
567 """<b>Identify Active Guards</b>""" |
582 """<b>Identify Active Guards</b>""" |
568 """<p>This opens a dialog showing a list of active guards.</p>""" |
583 """<p>This opens a dialog showing a list of active guards.</p>""" |
569 )) |
584 )) |
570 self.hgQueueIdentifyActiveGuardsAct.triggered[()].connect( |
585 self.hgQueueIdentifyActiveGuardsAct.triggered.connect( |
571 self.__hgQueueGuardsIdentifyActive) |
586 self.__hgQueueGuardsIdentifyActive) |
572 self.actions.append(self.hgQueueIdentifyActiveGuardsAct) |
587 self.actions.append(self.hgQueueIdentifyActiveGuardsAct) |
573 |
588 |
574 def __initQueuesMgmtActions(self): |
589 def __initQueuesMgmtActions(self): |
575 """ |
590 """ |
576 Public method to generate the queues management action objects. |
591 Public method to generate the queues management action objects. |
577 """ |
592 """ |
578 self.hgQueueCreateQueueAct = E5Action( |
593 self.hgQueueCreateQueueAct = E5Action( |
579 self.trUtf8('Create Queue'), |
594 self.tr('Create Queue'), |
580 self.trUtf8('Create Queue'), |
595 self.tr('Create Queue'), |
581 0, 0, self, 'mercurial_queues_create_queue') |
596 0, 0, self, 'mercurial_queues_create_queue') |
582 self.hgQueueCreateQueueAct.setStatusTip(self.trUtf8( |
597 self.hgQueueCreateQueueAct.setStatusTip(self.tr( |
583 'Create a new patch queue' |
598 'Create a new patch queue' |
584 )) |
599 )) |
585 self.hgQueueCreateQueueAct.setWhatsThis(self.trUtf8( |
600 self.hgQueueCreateQueueAct.setWhatsThis(self.tr( |
586 """<b>Create Queue</b>""" |
601 """<b>Create Queue</b>""" |
587 """<p>This creates a new patch queue.</p>""" |
602 """<p>This creates a new patch queue.</p>""" |
588 )) |
603 )) |
589 self.hgQueueCreateQueueAct.triggered[()].connect( |
604 self.hgQueueCreateQueueAct.triggered.connect( |
590 self.__hgQueueCreateQueue) |
605 self.__hgQueueCreateQueue) |
591 self.actions.append(self.hgQueueCreateQueueAct) |
606 self.actions.append(self.hgQueueCreateQueueAct) |
592 |
607 |
593 self.hgQueueRenameQueueAct = E5Action( |
608 self.hgQueueRenameQueueAct = E5Action( |
594 self.trUtf8('Rename Queue'), |
609 self.tr('Rename Queue'), |
595 self.trUtf8('Rename Queue'), |
610 self.tr('Rename Queue'), |
596 0, 0, self, 'mercurial_queues_rename_queue') |
611 0, 0, self, 'mercurial_queues_rename_queue') |
597 self.hgQueueRenameQueueAct.setStatusTip(self.trUtf8( |
612 self.hgQueueRenameQueueAct.setStatusTip(self.tr( |
598 'Rename the active patch queue' |
613 'Rename the active patch queue' |
599 )) |
614 )) |
600 self.hgQueueRenameQueueAct.setWhatsThis(self.trUtf8( |
615 self.hgQueueRenameQueueAct.setWhatsThis(self.tr( |
601 """<b>Rename Queue</b>""" |
616 """<b>Rename Queue</b>""" |
602 """<p>This renames the active patch queue.</p>""" |
617 """<p>This renames the active patch queue.</p>""" |
603 )) |
618 )) |
604 self.hgQueueRenameQueueAct.triggered[()].connect( |
619 self.hgQueueRenameQueueAct.triggered.connect( |
605 self.__hgQueueRenameQueue) |
620 self.__hgQueueRenameQueue) |
606 self.actions.append(self.hgQueueRenameQueueAct) |
621 self.actions.append(self.hgQueueRenameQueueAct) |
607 |
622 |
608 self.hgQueueDeleteQueueAct = E5Action( |
623 self.hgQueueDeleteQueueAct = E5Action( |
609 self.trUtf8('Delete Queue'), |
624 self.tr('Delete Queue'), |
610 self.trUtf8('Delete Queue'), |
625 self.tr('Delete Queue'), |
611 0, 0, self, 'mercurial_queues_delete_queue') |
626 0, 0, self, 'mercurial_queues_delete_queue') |
612 self.hgQueueDeleteQueueAct.setStatusTip(self.trUtf8( |
627 self.hgQueueDeleteQueueAct.setStatusTip(self.tr( |
613 'Delete the reference to a patch queue' |
628 'Delete the reference to a patch queue' |
614 )) |
629 )) |
615 self.hgQueueDeleteQueueAct.setWhatsThis(self.trUtf8( |
630 self.hgQueueDeleteQueueAct.setWhatsThis(self.tr( |
616 """<b>Delete Queue</b>""" |
631 """<b>Delete Queue</b>""" |
617 """<p>This deletes the reference to a patch queue.</p>""" |
632 """<p>This deletes the reference to a patch queue.</p>""" |
618 )) |
633 )) |
619 self.hgQueueDeleteQueueAct.triggered[()].connect( |
634 self.hgQueueDeleteQueueAct.triggered.connect( |
620 self.__hgQueueDeleteQueue) |
635 self.__hgQueueDeleteQueue) |
621 self.actions.append(self.hgQueueDeleteQueueAct) |
636 self.actions.append(self.hgQueueDeleteQueueAct) |
622 |
637 |
623 self.hgQueuePurgeQueueAct = E5Action( |
638 self.hgQueuePurgeQueueAct = E5Action( |
624 self.trUtf8('Purge Queue'), |
639 self.tr('Purge Queue'), |
625 self.trUtf8('Purge Queue'), |
640 self.tr('Purge Queue'), |
626 0, 0, self, 'mercurial_queues_purge_queue') |
641 0, 0, self, 'mercurial_queues_purge_queue') |
627 self.hgQueuePurgeQueueAct.setStatusTip(self.trUtf8( |
642 self.hgQueuePurgeQueueAct.setStatusTip(self.tr( |
628 'Delete the reference to a patch queue and remove the patch' |
643 'Delete the reference to a patch queue and remove the patch' |
629 ' directory' |
644 ' directory' |
630 )) |
645 )) |
631 self.hgQueuePurgeQueueAct.setWhatsThis(self.trUtf8( |
646 self.hgQueuePurgeQueueAct.setWhatsThis(self.tr( |
632 """<b>Purge Queue</b>""" |
647 """<b>Purge Queue</b>""" |
633 """<p>This deletes the reference to a patch queue and removes""" |
648 """<p>This deletes the reference to a patch queue and removes""" |
634 """ the patch directory.</p>""" |
649 """ the patch directory.</p>""" |
635 )) |
650 )) |
636 self.hgQueuePurgeQueueAct.triggered[()].connect( |
651 self.hgQueuePurgeQueueAct.triggered.connect( |
637 self.__hgQueuePurgeQueue) |
652 self.__hgQueuePurgeQueue) |
638 self.actions.append(self.hgQueuePurgeQueueAct) |
653 self.actions.append(self.hgQueuePurgeQueueAct) |
639 |
654 |
640 self.hgQueueActivateQueueAct = E5Action( |
655 self.hgQueueActivateQueueAct = E5Action( |
641 self.trUtf8('Activate Queue'), |
656 self.tr('Activate Queue'), |
642 self.trUtf8('Activate Queue'), |
657 self.tr('Activate Queue'), |
643 0, 0, self, 'mercurial_queues_activate_queue') |
658 0, 0, self, 'mercurial_queues_activate_queue') |
644 self.hgQueueActivateQueueAct.setStatusTip(self.trUtf8( |
659 self.hgQueueActivateQueueAct.setStatusTip(self.tr( |
645 'Set the active queue' |
660 'Set the active queue' |
646 )) |
661 )) |
647 self.hgQueueActivateQueueAct.setWhatsThis(self.trUtf8( |
662 self.hgQueueActivateQueueAct.setWhatsThis(self.tr( |
648 """<b>Activate Queue</b>""" |
663 """<b>Activate Queue</b>""" |
649 """<p>This sets the active queue.</p>""" |
664 """<p>This sets the active queue.</p>""" |
650 )) |
665 )) |
651 self.hgQueueActivateQueueAct.triggered[()].connect( |
666 self.hgQueueActivateQueueAct.triggered.connect( |
652 self.__hgQueueActivateQueue) |
667 self.__hgQueueActivateQueue) |
653 self.actions.append(self.hgQueueActivateQueueAct) |
668 self.actions.append(self.hgQueueActivateQueueAct) |
654 |
669 |
655 self.hgQueueListQueuesAct = E5Action( |
670 self.hgQueueListQueuesAct = E5Action( |
656 self.trUtf8('List Queues'), |
671 self.tr('List Queues'), |
657 self.trUtf8('List Queues...'), |
672 self.tr('List Queues...'), |
658 0, 0, self, 'mercurial_queues_list_queues') |
673 0, 0, self, 'mercurial_queues_list_queues') |
659 self.hgQueueListQueuesAct.setStatusTip(self.trUtf8( |
674 self.hgQueueListQueuesAct.setStatusTip(self.tr( |
660 'List the available queues' |
675 'List the available queues' |
661 )) |
676 )) |
662 self.hgQueueListQueuesAct.setWhatsThis(self.trUtf8( |
677 self.hgQueueListQueuesAct.setWhatsThis(self.tr( |
663 """<b>List Queues</b>""" |
678 """<b>List Queues</b>""" |
664 """<p>This opens a dialog showing all available queues.</p>""" |
679 """<p>This opens a dialog showing all available queues.</p>""" |
665 )) |
680 )) |
666 self.hgQueueListQueuesAct.triggered[()].connect( |
681 self.hgQueueListQueuesAct.triggered.connect( |
667 self.__hgQueueListQueues) |
682 self.__hgQueueListQueues) |
668 self.actions.append(self.hgQueueListQueuesAct) |
683 self.actions.append(self.hgQueueListQueuesAct) |
669 |
684 |
670 def initMenu(self, mainMenu): |
685 def initMenu(self, mainMenu): |
671 """ |
686 """ |