Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.1, 1.9.2, and 1.9.3

sync: add a stop button with icon from Tango icon set

Changeset b9fe4f2d1170

Parent 831154ba6a65

by Steve Borho

Changes to 3 files · Browse files at b9fe4f2d1170 Showing diff from parent 831154ba6a65 Diff from another changeset...

Change 1 of 1 Show Entire File tortoisehg/​hgqt/​icons/​process-stop.svg Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
@@ -0,0 +1,336 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48.000000px" + height="48.000000px" + id="svg6361" + sodipodi:version="0.32" + inkscape:version="0.46" + sodipodi:docbase="/home/jimmac/gfx/ximian/tango-icon-theme/scalable/actions" + sodipodi:docname="process-stop.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs3"> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 24 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="48 : 24 : 1" + inkscape:persp3d-origin="24 : 16 : 1" + id="perspective52" /> + <linearGradient + id="linearGradient2256"> + <stop + style="stop-color:#ff0202;stop-opacity:1;" + offset="0" + id="stop2258" /> + <stop + style="stop-color:#ff9b9b;stop-opacity:1;" + offset="1" + id="stop2260" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + id="linearGradient2248"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop2250" /> + <stop + style="stop-color:#ffffff;stop-opacity:0;" + offset="1" + id="stop2252" /> + </linearGradient> + <linearGradient + id="linearGradient9647"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop9649" /> + <stop + style="stop-color:#dbdbdb;stop-opacity:1;" + offset="1" + id="stop9651" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + id="linearGradient21644"> + <stop + style="stop-color:#000000;stop-opacity:1;" + offset="0" + id="stop21646" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop21648" /> + </linearGradient> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient21644" + id="radialGradient21650" + cx="25.125" + cy="36.75" + fx="25.125" + fy="36.75" + r="15.75" + gradientTransform="matrix(1.000000,0.000000,0.000000,0.595238,-2.300678e-15,14.87500)" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + id="linearGradient7895"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop7897" /> + <stop + style="stop-color:#ffffff;stop-opacity:0;" + offset="1" + id="stop7899" /> + </linearGradient> + <linearGradient + id="linearGradient4981"> + <stop + style="stop-color:#cc0000;stop-opacity:1;" + offset="0" + id="stop4983" /> + <stop + style="stop-color:#b30000;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop4985" /> + </linearGradient> + <linearGradient + id="linearGradient15762" + inkscape:collect="always"> + <stop + id="stop15764" + offset="0" + style="stop-color:#ffffff;stop-opacity:1;" /> + <stop + id="stop15766" + offset="1" + style="stop-color:#ffffff;stop-opacity:0;" /> + </linearGradient> + <linearGradient + id="linearGradient14236"> + <stop + id="stop14238" + offset="0.0000000" + style="stop-color:#ed4040;stop-opacity:1.0000000;" /> + <stop + id="stop14240" + offset="1.0000000" + style="stop-color:#a40000;stop-opacity:1.0000000;" /> + </linearGradient> + <linearGradient + id="linearGradient11780"> + <stop + style="stop-color:#ff8b8b;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop11782" /> + <stop + style="stop-color:#ec1b1b;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop11784" /> + </linearGradient> + <linearGradient + id="linearGradient11014"> + <stop + style="stop-color:#a80000;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop11016" /> + <stop + style="stop-color:#c60000;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop13245" /> + <stop + style="stop-color:#e50000;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop11018" /> + </linearGradient> + <linearGradient + y2="9.6507530" + x2="9.8940229" + y1="5.3855424" + x1="5.7365270" + gradientTransform="matrix(-1.000000,0.000000,0.000000,-1.000000,31.72170,31.29079)" + gradientUnits="userSpaceOnUse" + id="linearGradient15772" + xlink:href="#linearGradient15762" + inkscape:collect="always" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient11780" + id="linearGradient2057" + x1="15.737001" + y1="12.503600" + x2="53.570126" + y2="47.374317" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(0.000000,-2.000000)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient4981" + id="linearGradient4987" + x1="23.995985" + y1="20.105337" + x2="41.047836" + y2="37.959785" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(0.000000,-2.000000)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient7895" + id="linearGradient7901" + x1="15.578875" + y1="16.285088" + x2="32.166405" + y2="28.394291" + gradientUnits="userSpaceOnUse" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient9647" + id="radialGradient2239" + cx="24.30225" + cy="33.30225" + fx="24.30225" + fy="33.30225" + r="12.30225" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(1.693981,-5.775714e-16,5.775714e-16,1.693981,-16.86529,-25.11111)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient4981" + id="linearGradient2243" + gradientUnits="userSpaceOnUse" + x1="23.995985" + y1="20.105337" + x2="41.047836" + y2="37.959785" + gradientTransform="matrix(0.988373,0.000000,0.000000,0.988373,0.279002,0.278984)" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient2248" + id="radialGradient2254" + cx="16.75" + cy="10.666344" + fx="16.75" + fy="10.666344" + r="21.25" + gradientTransform="matrix(4.154957,-2.979206e-24,3.255657e-24,3.198723,-52.84553,-23.50921)" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2256" + id="linearGradient2262" + x1="21.75" + y1="15.80225" + x2="24.30225" + y2="35.05225" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(0.000000,-2.000000)" /> + </defs> + <sodipodi:namedview + inkscape:guide-bbox="true" + showguides="true" + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="0.15294118" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="4" + inkscape:cx="0.007276" + inkscape:cy="7.0544576" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:grid-bbox="true" + inkscape:document-units="px" + inkscape:window-width="786" + inkscape:window-height="688" + inkscape:window-x="488" + inkscape:window-y="160" + inkscape:showpageshadow="false" /> + <metadata + id="metadata4"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>Stop</dc:title> + <dc:date>2005-10-16</dc:date> + <dc:creator> + <cc:Agent> + <dc:title>Andreas Nilsson</dc:title> + </cc:Agent> + </dc:creator> + <dc:subject> + <rdf:Bag> + <rdf:li>stop</rdf:li> + <rdf:li>halt</rdf:li> + <rdf:li>error</rdf:li> + </rdf:Bag> + </dc:subject> + <cc:license + rdf:resource="http://creativecommons.org/licenses/publicdomain/" /> + <dc:contributor> + <cc:Agent> + <dc:title>Jakub Steiner</dc:title> + </cc:Agent> + </dc:contributor> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/publicdomain/"> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Reproduction" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#Distribution" /> + <cc:permits + rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> + </cc:License> + </rdf:RDF> + </metadata> + <g + id="layer1" + inkscape:label="Layer 1" + inkscape:groupmode="layer"> + <path + sodipodi:type="arc" + style="opacity:0.63068183;color:#000000;fill:url(#radialGradient21650);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + id="path21642" + sodipodi:cx="25.125" + sodipodi:cy="36.75" + sodipodi:rx="15.75" + sodipodi:ry="9.375" + d="M 40.875 36.75 A 15.75 9.375 0 1 1 9.375,36.75 A 15.75 9.375 0 1 1 40.875 36.75 z" + transform="matrix(1.173803,0.000000,0.000000,0.600000,-5.265866,19.57500)" /> + <path + style="fill:url(#linearGradient4987);fill-opacity:1;fill-rule:evenodd;stroke:#860000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 15.591006,0.4919213 L 32.676311,0.4919213 L 45.497585,13.586385 L 45.497585,31.48003 L 32.848986,43.496929 L 15.418649,43.496929 L 2.4943857,30.658264 L 2.4943857,13.464078 L 15.591006,0.4919213 z " + id="path9480" + sodipodi:nodetypes="ccccccccc" /> + <path + style="opacity:0.81318683;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient2057);stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1" + d="M 16.020655,1.5003424 L 32.248563,1.5003424 L 44.496456,13.922717 L 44.496456,31.037001 L 32.638472,42.48783 L 15.870253,42.48783 L 3.5090792,30.208718 L 3.5090792,13.84561 L 16.020655,1.5003424 z " + id="path9482" + sodipodi:nodetypes="ccccccccc" /> + <path + style="opacity:0.28977272;fill:url(#radialGradient2254);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 15.6875,0.75 L 2.75,13.5625 L 2.75,30.5625 L 5.6875,33.46875 C 22.450041,33.526299 22.164665,20.450067 45.25,21.59375 L 45.25,13.6875 L 32.5625,0.75 L 15.6875,0.75 z " + id="path2241" + sodipodi:nodetypes="cccccccc" /> + <path + style="fill:url(#radialGradient2239);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient2262);stroke-width:0.99999958;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 16.767175,10.5 L 12.5,14.767175 L 20.035075,22.30225 L 12.5,29.837325 L 16.767175,34.104501 L 24.30225,26.569425 L 31.837325,34.104501 L 36.104501,29.837325 L 28.569425,22.30225 L 36.104501,14.767175 L 31.837325,10.5 L 24.30225,18.035075 L 16.767175,10.5 z " + id="path2787" /> + </g> +</svg>
 
98
99
100
 
 
 
 
 
101
102
103
 
174
175
176
177
178
179
180
 
399
400
401
 
 
 
 
402
403
404
 
426
427
428
 
429
430
431
 
434
435
436
 
437
438
439
440
441
442
443
444
445
446
447
 
98
99
100
101
102
103
104
105
106
107
108
 
179
180
181
 
182
183
184
 
403
404
405
406
407
408
409
410
411
412
 
434
435
436
437
438
439
440
 
443
444
445
446
447
448
449
450
 
 
 
 
451
452
453
@@ -98,6 +98,11 @@
  a.setIcon(qtlib.geticon(icon))   a.triggered.connect(cb)   tb.addAction(a) + self.stopAction = a = QAction(self) + a.setToolTip(_('Stop current operation')) + a.setIcon(qtlib.geticon(process-stop)) + a.triggered.connect(self.stopclicked) + tb.addAction(a)   tb.setMaximumHeight(self.postpullbutton.sizeHint().height())   hbox.addWidget(tb)   self.layout().addLayout(hbox) @@ -174,7 +179,6 @@
  cmd = cmdui.Widget(not embedded, self)   cmd.commandStarted.connect(self.commandStarted)   cmd.commandFinished.connect(self.commandFinished) - cmd.commandCanceling.connect(self.commandCanceled)     cmd.makeLogVisible.connect(self.makeLogVisible)   cmd.output.connect(self.output) @@ -399,6 +403,10 @@
  else:   return super(SyncWidget, self).keyPressEvent(event)   + def stopclicked(self): + if self.cmd.core.is_running(): + self.cmd.cancel() +   def saveclicked(self):   if self.curalias:   alias = self.curalias @@ -426,6 +434,7 @@
  def commandStarted(self):   for b in self.opbuttons:   if b: b.setEnabled(False) + self.stopAction.setEnabled(True)   if not self.embedded:   self.cmd.show_output(True)   self.cmd.setVisible(True) @@ -434,14 +443,11 @@
  self.repo.decrementBusyCount()   for b in self.opbuttons:   if b: b.setEnabled(True) + self.stopAction.setEnabled(False)   if self.finishfunc:   output = self.cmd.core.get_rawoutput()   self.finishfunc(ret, output)   - def commandCanceled(self): - for b in self.opbuttons: - if b: b.setEnabled(True) -   def run(self, cmdline, details):   if self.cmd.core.is_running():   return
 
53
54
55
 
56
57
 
53
54
55
56
57
58
@@ -53,5 +53,6 @@
  <file>icons/bookmark.png</file>   <file>icons/extensions.svg</file>   <file>icons/mail-forward.svg</file> + <file>icons/process-stop.svg</file>   </qresource>  </RCC>