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

reporegistry: show the mercurial droplet icon for repo items

Changeset 7f60402257e8

Parent cd3f24cbf2b3

by Adrian Buehlmann

Changes to 4 files · Browse files at 7f60402257e8 Showing diff from parent cd3f24cbf2b3 Diff from another changeset...

Added image
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
 # reporegistry.py - registry for a user's repositories  #  # Copyright 2010 Adrian Buehlmann <adrian@cadifra.com>  #  # This software may be used and distributed according to the terms of the  # GNU General Public License version 2 or any later version.    import sys  import os    from PyQt4 import QtCore, QtGui    from PyQt4.QtCore import Qt, QVariant, SIGNAL, SLOT  from PyQt4.QtCore import QModelIndex, QString    from PyQt4.QtGui import QWidget, QVBoxLayout    from tortoisehg.hgqt.i18n import _ +from tortoisehg.hgqt import icon as geticon    connect = QtCore.QObject.connect      extractXmlElementName = 'reporegextract'  reporegistryXmlElementName = 'reporegistry'    repoRegMimeType = 'application/thg-reporegistry'    xmlClassMap = {   'allgroup': 'AllRepoGroupItem',   'group': 'RepoGroupItem',   'repo': 'RepoItem',   'treeitem': 'RepoTreeItem',   }    inverseXmlClassMap = {}    def xmlToClass(ele):   return xmlClassMap[ele]    def classToXml(classname):   if len(inverseXmlClassMap) == 0:   for k,v in xmlClassMap.iteritems():   inverseXmlClassMap[v] = k   return inverseXmlClassMap[classname]    def settingsfilename():   s = QtCore.QSettings()   dir = os.path.dirname(str(s.fileName()))   return dir + '/' + 'thg-reporegistry.xml'    def writeXml(target, item, rootElementName):   xw = QtCore.QXmlStreamWriter(target)   xw.setAutoFormatting(True)   xw.setAutoFormattingIndent(2)   xw.writeStartDocument()   xw.writeStartElement(rootElementName)   item.dumpObject(xw)   xw.writeEndElement()   xw.writeEndDocument()    def readXml(source, rootElementName):   itemread = None   xr = QtCore.QXmlStreamReader(source)   if xr.readNextStartElement():   ele = str(xr.name().toString())   if ele != rootElementName:   print "unexpected xml element '%s' "\   "(was looking for %s)" % (ele, rootElementName)   return   if xr.hasError():   print str(xr.errorString())   if xr.readNextStartElement():   itemread = undumpObject(xr)   xr.skipCurrentElement()   if xr.hasError():   print str(xr.errorString())     print "itemread = %s" % itemread   return itemread    def undumpObject(xr):   classname = xmlToClass(str(xr.name().toString()))   print "undumpObject(): classname = %s" % classname   class_ = getattr(sys.modules[RepoTreeItem.__module__], classname)   obj = class_()   obj.undump(xr)   return obj      class RepoTreeItem:   def __init__(self, parent=None):   self._parent = parent   self.childs = []   self._row = 0     def appendChild(self, child):   child._row = len(self.childs)   child._parent = self   self.childs.append(child)     def child(self, row):   return self.childs[row]     def childCount(self):   return len(self.childs)     def columnCount(self):   return 2   - def data(self, column): + def data(self, column, role):   return QVariant()     def setData(self, column, value):   return False     def row(self):   return self._row     def parent(self):   return self._parent     def menulist(self):   return []     def flags(self):   return Qt.NoItemFlags     def removeRows(self, row, count):   cs = self.childs   remove = cs[row : row + count]   keep = cs[:row] + cs[row + count:]   self.childs = keep   for c in remove:   c._row = 0   c._parent = None   for i, c in enumerate(keep):   c._row = i   return True     def dump(self, xw):   for c in self.childs:   c.dumpObject(xw)     def undump(self, xr):   while not xr.atEnd():   xr.readNext()   if xr.isStartElement():   item = undumpObject(xr)   self.appendChild(item)   elif xr.isEndElement():   break     def dumpObject(self, xw):   xw.writeStartElement(classToXml(self.__class__.__name__))   self.dump(xw)   xw.writeEndElement()      class RepoItem(RepoTreeItem):   def __init__(self, rootpath='', parent=None):   RepoTreeItem.__init__(self, parent)   self._root = rootpath     def rootpath(self):   return self._root   - def data(self, column): + def data(self, column, role): + if role == Qt.DecorationRole: + if column == 0: + ico = geticon('hg') + return QVariant(ico) + return QVariant()   if column == 0:   return QVariant(os.path.basename(self._root))   elif column == 1:   return QVariant(self._root)   return QVariant()     def menulist(self):   return ['open', 'remove']     def flags(self):   return Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsDragEnabled     def removeRows(self, row, count):   return False     def dump(self, xw):   RepoTreeItem.dump(self, xw)   xw.writeAttribute('root', self._root)     def undump(self, xr):   a = xr.attributes()   self._root = str(a.value('', 'root').toString())   RepoTreeItem.undump(self, xr)      class RepoGroupItem(RepoTreeItem):   def __init__(self, name=None, parent=None):   RepoTreeItem.__init__(self, parent)   if name:   self.name = name   else:   self.name = QString()   - def data(self, column): + def data(self, column, role): + if role == Qt.DecorationRole: + return QVariant()   if column == 0:   return QVariant(self.name)   return QVariant()     def setData(self, column, value):   if column == 0:   self.name = value.toString()   return True   return False     def menulist(self):   return ['newGroup', 'remove']     def flags(self):   return (Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsDropEnabled   | Qt.ItemIsEditable)     def dump(self, xw):   xw.writeAttribute('name', self.name)   RepoTreeItem.dump(self, xw)     def undump(self, xr):   a = xr.attributes()   self.name = a.value('', 'name').toString()   RepoTreeItem.undump(self, xr)      class AllRepoGroupItem(RepoGroupItem):   def __init__(self, parent=None):   RepoGroupItem.__init__(self, parent)   self.name = _('All Repositories')     def setData(self, column, value):   return False     def menulist(self):   return ['newGroup']     def flags(self):   return Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsDropEnabled     def dump(self, xw):   RepoTreeItem.dump(self, xw)     def undump(self, xr):   RepoTreeItem.undump(self, xr)      class RepoTreeModel(QtCore.QAbstractItemModel):   def __init__(self, fn=None, parent=None):   QtCore.QAbstractItemModel.__init__(self, parent)     root = None   all = None     if fn:   f = QtCore.QFile(settingsfilename())   if f.open(QtCore.QIODevice.ReadOnly):   root = readXml(f, reporegistryXmlElementName)   f.close()   if root:   for c in root.childs:   if isinstance(c, AllRepoGroupItem):   all = c   break     if not root:   root = RepoTreeItem()   all = AllRepoGroupItem()   root.appendChild(all)     self.rootItem = root   self.allrepos = all     # see http://doc.qt.nokia.com/4.6/model-view-model-subclassing.html     # overrides from QAbstractItemModel     def index(self, row, column, parent):   if not self.hasIndex(row, column, parent):   return QModelIndex()   if (not parent.isValid()):   parentItem = self.rootItem   else:   parentItem = parent.internalPointer()   childItem = parentItem.child(row)   if childItem:   return self.createIndex(row, column, childItem)   else:   return QModelIndex()     def parent(self, index):   if not index.isValid():   return QModelIndex()   childItem = index.internalPointer()   parentItem = childItem.parent()   if parentItem is self.rootItem:   return QModelIndex()   return self.createIndex(parentItem.row(), 0, parentItem)     def rowCount(self, parent):   if parent.column() > 0:   return 0   if not parent.isValid():   parentItem = self.rootItem;   else:   parentItem = parent.internalPointer()   return parentItem.childCount()     def columnCount(self, parent):   if parent.isValid():   return parent.internalPointer().columnCount()   else:   return self.rootItem.columnCount()     def data(self, index, role):   if not index.isValid():   return QVariant() - if role != Qt.DisplayRole and role != Qt.EditRole: - return QVariant(); + if (role != Qt.DisplayRole + and role != Qt.EditRole and role != Qt.DecorationRole): + return QVariant()   item = index.internalPointer() - return item.data(index.column()) + return item.data(index.column(), role)     def headerData(self, section, orientation, role):   if role == Qt.DisplayRole:   if orientation == Qt.Horizontal:   if section == 1:   return QString(_('Path'))   return QVariant()     def flags(self, index):   if not index.isValid():   return Qt.NoItemFlags   item = index.internalPointer()   return item.flags()     def supportedDropActions(self):   return Qt.MoveAction     def removeRows(self, row, count, parent):   item = parent.internalPointer()   if item is None:   item = self.rootItem   self.beginRemoveRows(parent, row, row+count-1)   res = item.removeRows(row, count)   self.endRemoveRows()   return res     def mimeTypes(self):   return QtCore.QStringList(repoRegMimeType)     def mimeData(self, indexes):   i = indexes[0]   item = i.internalPointer()   buf = QtCore.QByteArray()   writeXml(buf, item, extractXmlElementName)   d = QtCore.QMimeData()   d.setData(repoRegMimeType, buf)   return d     def dropMimeData(self, data, action, row, column, parent):   print "dropMimeData(action=%s)" % action   print "formats:"   for s in data.formats():   print s   d = str(data.data(repoRegMimeType))   itemread = readXml(d, extractXmlElementName)     group = parent.internalPointer()   cc = group.childCount()   self.beginInsertRows(parent, cc, cc)   group.appendChild(itemread)   self.endInsertRows()   return True     def setData(self, index, value, role):   if not index.isValid() or role != Qt.EditRole:   return False   s = value.toString()   if s.isEmpty():   return False   item = index.internalPointer()   if item.setData(index.column(), value):   self.emit(SIGNAL('dataChanged(index, index)'), index, index)   return True   return False     # functions not defined in QAbstractItemModel     def allreposIndex(self):   return self.createIndex(0, 0, self.allrepos)     def addRepo(self, reporoot):   all = self.allrepos   cc = all.childCount()   self.beginInsertRows(self.allreposIndex(), cc, cc + 1)   all.appendChild(RepoItem(reporoot))   self.endInsertRows()     def getRepoItem(self, reporoot):   for c in self.allrepos.childs:   if c.rootpath() == reporoot:   return c   return None     def addGroup(self, name):   ri = self.rootItem   cc = ri.childCount()   self.beginInsertRows(QModelIndex(), cc, cc + 1)   ri.appendChild(RepoGroupItem(name, ri))   self.endInsertRows()     def write(self, fn):   print "RepoTreeModel.write(%s)" % fn   f = QtCore.QFile(fn)   f.open(QtCore.QIODevice.WriteOnly)   writeXml(f, self.rootItem, reporegistryXmlElementName)   f.close()      class RepoTreeView(QtGui.QTreeView):   def __init__(self, parent):   QtGui.QTreeView.__init__(self)   self.parent = parent   self.selitem = None     self.setExpandsOnDoubleClick(False)     # enable drag and drop   # (see http://doc.qt.nokia.com/4.6/model-view-dnd.html)   self.setDragEnabled(True)   self.setAcceptDrops(True)   self.setDragDropMode(QtGui.QAbstractItemView.DragDrop)   self.setDropIndicatorShown(True)     self.createActions()     def contextMenuEvent(self, event):   selection = self.selectedIndexes()   if len(selection) == 0:   return   self.selitem = selection[0]   menulist = self.selitem.internalPointer().menulist()   if len(menulist) > 0:   menu = QtGui.QMenu(self)   for act in menulist:   if act:   menu.addAction(self._actions[act])   else:   menu.addSeparator()   menu.exec_(event.globalPos())     def _action_defs(self):   a = [("open", _("Open"), None,   _("Opens the repository in a new tab"), None, self.open),   ("newGroup", _("New Group"), None,   _("Create a new group"), None, self.newGroup),   ("remove", _("Remove entry"), None,   _("Remove the entry"), None, self.removeSelected),   ]   return a     def createActions(self):   self._actions = {}   for name, desc, icon, tip, key, cb in self._action_defs():   self._actions[name] = QtGui.QAction(desc, self)   QtCore.QTimer.singleShot(0, self.configureActions)     def configureActions(self):   for name, desc, icon, tip, key, cb in self._action_defs():   act = self._actions[name]   '''   if icon:   act.setIcon(geticon(icon))   '''   if tip:   act.setStatusTip(tip)   if key:   act.setShortcut(key)   if cb:   connect(act, SIGNAL('triggered()'), cb)   self.addAction(act)     def open(self):   self.parent.openrepo(self.selitem.internalPointer().rootpath())     def newGroup(self):   m = self.model()   m.addGroup(_('New Group'))     def removeSelected(self):   m = self.model()   s = self.selitem   row = s.row()   parent = s.parent()   m.removeRows(row, 1, parent)      class RepoRegistryView(QWidget):     openRepoSignal = QtCore.pyqtSignal(QtCore.QString)     def __init__(self, parent=None):   QWidget.__init__(self, parent)     lay = QVBoxLayout()   lay.setContentsMargins(0, 0, 0, 0)   self.setLayout(lay)     self.tmodel = m = RepoTreeModel(settingsfilename())     self.tview = tv = RepoTreeView(self)   lay.addWidget(tv)   tv.setModel(m)     tv.setIndentation(10)   tv.setFirstColumnSpanned(0, QModelIndex(), True)     self.tview.setColumnHidden(1, True)   QtCore.QTimer.singleShot(0, self.expand)     def expand(self):   self.tview.expandToDepth(0)     def addRepo(self, reporoot):   m = self.tmodel   if m.getRepoItem(reporoot) == None:   m.addRepo(reporoot)     def openrepo(self, path):   self.openRepoSignal.emit(path)     def showPaths(self, show):   self.tview.setColumnHidden(1, not show)   if show:   self.tview.resizeColumnToContents(0)   self.tview.resizeColumnToContents(1)     def close(self):   self.tmodel.write(settingsfilename())
 
20
21
22
 
23
24
 
20
21
22
23
24
25
@@ -20,5 +20,6 @@
  <file>icons/mqpatch.svg</file>   <file>icons/plus.png</file>   <file>icons/minus.png</file> + <file>icons/hg.ico</file>   </qresource>  </RCC>
 
2
3
4
5
 
6
7
8
 
6102
6103
6104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6105
6106
6107
 
13213
13214
13215
 
 
 
 
13216
13217
13218
 
13261
13262
13263
13264
 
13265
13266
13267
 
13268
13269
13270
 
 
13271
13272
13273
13274
 
 
 
13275
13276
 
13277
13278
13279
 
 
13280
13281
13282
13283
13284
 
 
 
13285
13286
13287
 
2
3
4
 
5
6
7
8
 
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
 
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
 
13382
13383
13384
 
13385
13386
13387
 
13388
13389
 
 
13390
13391
13392
13393
 
 
13394
13395
13396
13397
 
13398
13399
 
 
13400
13401
13402
13403
 
 
 
13404
13405
13406
13407
13408
13409
@@ -2,7 +2,7 @@
   # Resource object code  # -# Created: ? 5 19 18:11:55 2010 +# Created: Fr 21. Mai 23:38:34 2010  # by: The Resource Compiler for PyQt (Qt v4.6.2)  #  # WARNING! All changes made in this file will be lost! @@ -6102,6 +6102,123 @@
 \x09\x09\x43\x37\x33\x2e\x37\x30\x35\x2c\x32\x2e\x39\x2c\x37\x32\  \x2e\x38\x30\x35\x2c\x32\x2c\x37\x31\x2e\x37\x30\x35\x2c\x32\x7a\  \x22\x2f\x3e\x0d\x0a\x3c\x2f\x73\x76\x67\x3e\x0d\x0a\ +\x00\x00\x07\x26\ +\x00\ +\x00\x01\x00\x02\x00\x10\x10\x00\x00\x01\x00\x20\x00\x68\x04\x00\ +\x00\x26\x00\x00\x00\x0c\x0c\x00\x00\x01\x00\x20\x00\x98\x02\x00\ +\x00\x8e\x04\x00\x00\x28\x00\x00\x00\x10\x00\x00\x00\x20\x00\x00\ +\x00\x01\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd4\xd3\xd4\x2a\xac\xac\xac\ +\x5a\xdc\xdc\xdc\x21\x00\x00\x00\x00\x00\x00\x00\x00\xbf\xbf\xbf\ +\x57\x4c\x4b\x4c\xeb\x89\x89\x89\xef\xa2\xa1\xa2\x9d\xe8\xe8\xe8\ +\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\xba\xb9\xba\x62\x67\x67\x67\xfc\x78\x78\x78\ +\xff\x77\x77\x77\xf8\xc9\xc9\xc9\x4c\x00\x00\x00\x00\xb1\xb1\xb1\ +\xc5\x69\x69\x69\xff\x52\x52\x52\xff\x5b\x5b\x5b\xff\x89\x89\x89\ +\xe7\xd9\xd9\xd9\x2e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x95\x95\x95\xe8\x99\x99\x99\xff\xcc\xcc\xcc\ +\xff\xd3\xd3\xd3\xff\x74\x74\x74\xdb\x00\x00\x00\x00\xc9\xc9\xc9\ +\x90\xcc\xcc\xcc\xff\xed\xed\xed\xff\xc5\xc5\xc5\xff\x3f\x3f\x3f\ +\xff\x83\x83\x83\xe5\xec\xec\xec\x18\x00\x00\x00\x00\x00\x00\x00\ +\x00\xf9\xf9\xf9\x02\x9c\x9c\x9c\xf7\x99\x99\x99\xff\x99\x99\x99\ +\xff\xc4\xc4\xc4\xff\x68\x68\x68\xfb\xfc\xfc\xfc\x04\xe9\xe9\xe9\ +\x29\xac\xac\xac\xfd\xea\xea\xea\xff\xf3\xf3\xf3\xff\xc1\xc1\xc1\ +\xff\x3b\x3b\x3b\xff\xa2\xa2\xa2\xb1\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\xc6\xc6\xc6\xa2\x99\x99\x99\xff\x99\x99\x99\ +\xff\x9a\x9a\x9a\xff\xaa\xaa\xaa\xba\x00\x00\x00\x00\x00\x00\x00\ +\x00\xaf\xaf\xaf\xc3\xa1\xa1\xa1\xff\xb9\xb9\xb9\xff\xdf\xdf\xdf\ +\xff\x87\x87\x87\xff\x49\x49\x49\xfe\xe5\xe5\xe5\x40\x00\x00\x00\ +\x00\x00\x00\x00\x00\xf9\xf9\xf9\x0d\xcd\xcd\xcd\x9e\xb3\xb3\xb3\ +\xdd\xc6\xc6\xc6\xab\xf7\xf7\xf7\x18\x00\x00\x00\x00\x00\x00\x00\ +\x00\xb8\xb8\xb8\xa2\x9a\x9a\x9a\xff\x99\x99\x99\xff\x9f\x9f\x9f\ +\xff\xd1\xd1\xd1\xff\x38\x38\x38\xff\xaf\xaf\xaf\xa3\x00\x00\x00\ +\x00\xdf\xdf\xdf\x18\xf9\xf9\xf9\x02\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xcd\xcc\xcd\ +\x33\x91\x91\x91\xef\x9d\x9d\x9d\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\xba\xba\xba\xff\x7b\x7b\x7b\xff\x6b\x6b\x6b\xdf\x98\x98\x98\ +\x96\x5b\x5b\x5b\xfe\x6f\x6f\x6f\xcc\xf2\xf2\xf2\x0a\x00\x00\x00\ +\x00\xf9\xf9\xf9\x03\xb4\xb3\xb4\x57\x8d\x8c\x8d\xb4\x79\x79\x79\ +\xfc\x96\x96\x96\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x9b\x9b\x9b\xff\xbd\xbd\xbd\xff\x3b\x3b\x3b\xfa\x8f\x8f\x8f\ +\xf7\xc2\xc2\xc2\xff\xca\xca\xca\xff\xba\xba\xba\x4f\xe3\xe2\xe3\ +\x18\x53\x52\x53\xc8\x58\x58\x58\xff\x71\x71\x71\xff\x8d\x8d\x8d\ +\xff\x9b\x9b\x9b\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\xb8\xb8\xb8\xff\x4b\x4b\x4b\xf5\xbd\xbd\xbd\ +\xad\x9a\x9a\x9a\xff\xaa\xaa\xaa\xf7\xdf\xdf\xdf\x27\x60\x60\x60\ +\xc5\x72\x72\x72\xff\x9f\x9f\x9f\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x9f\x9f\x9f\xff\x6f\x6f\x6f\xd5\xfb\xfb\xfb\ +\x08\xe5\xe5\xe5\x56\xf1\xf1\xf1\x2a\xcb\xcb\xcb\x40\x71\x71\x71\ +\xff\x9c\x9c\x9c\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\xa1\xa1\xa1\xff\x95\x95\x95\x98\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbe\xbe\xbe\x6d\xa8\xa8\xa8\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x84\x84\x84\xfe\xdd\xdd\xdd\x3b\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd7\xd7\xd7\x53\xae\xae\xae\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x9b\x9b\x9b\xff\x9a\x9a\x9a\xb9\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf7\xf7\xf7\x0a\xbd\xbd\xbd\ +\xe4\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x95\x95\x95\xe7\xef\xef\xef\x1e\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\xee\xee\ +\x3b\xb4\xb4\xb4\xee\x9a\x9a\x9a\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x9c\x9c\x9c\xff\xba\xba\xba\ +\xdb\xee\xee\xee\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\xf6\xf6\xf6\x1a\xd6\xd6\xd6\x8c\xb8\xb8\xb8\xd6\xaa\xaa\xaa\ +\xf8\xab\xab\xab\xf6\xbc\xbc\xbc\xcc\xdd\xdd\xdd\x74\xfb\xfb\xfb\ +\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x07\x9c\ +\x41\xc1\x03\x9c\x41\xc1\x01\x9c\x41\x80\x01\x9c\x41\xc1\x80\x9c\ +\x41\xc1\x80\x9c\x41\x9f\x00\x9c\x41\x08\x00\x9c\x41\x00\x00\x9c\ +\x41\x00\x00\x9c\x41\x00\x00\x9c\x41\xe0\x00\x9c\x41\xe0\x01\x9c\ +\x41\xe0\x01\x9c\x41\xf0\x03\x9c\x41\xf8\x07\x9c\x41\x28\x00\x00\ +\x00\x0c\x00\x00\x00\x18\x00\x00\x00\x01\x00\x20\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x47\x46\x47\ +\x4f\x4e\x4e\x4e\xae\x45\x44\x45\x1c\x00\x00\x00\x00\x60\x5f\x60\ +\xa0\x57\x57\x57\xfd\x82\x82\x82\xf2\x55\x55\x55\x4b\x00\x00\x00\ +\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4e\x4d\x4e\x44\x9a\x9a\x9a\ +\xff\xbd\xbd\xbd\xff\x84\x84\x84\xfc\x8f\x8f\x8f\x08\x94\x94\x94\ +\xe6\xbd\xbd\xbd\xff\x89\x89\x89\xff\x61\x61\x61\xff\x6e\x6e\x6e\ +\x4e\x00\x00\x00\x00\x00\x00\x00\x00\x77\x76\x77\x99\x99\x99\x99\ +\xff\xa4\xa4\xa4\xff\xb3\xb3\xb3\xff\x65\x65\x65\x46\x7f\x7f\x7f\ +\x9c\xc3\xc3\xc3\xff\xed\xed\xed\xff\xa2\xa2\xa2\xff\x5f\x5e\x5f\ +\xfd\x6a\x6a\x6a\x13\x00\x00\x00\x00\x6b\x6b\x6b\x3b\xa3\xa3\xa3\ +\xfe\x9a\x9a\x9a\xff\x9c\x9b\x9c\xf5\xbf\xbf\xbf\x08\x4b\x4a\x4b\ +\x1b\xa1\xa1\xa1\xff\xab\xab\xab\xff\xca\xca\xca\xff\x4d\x4d\x4d\ +\xff\x6f\x6e\x6f\xae\x00\x00\x00\x00\x00\x00\x00\x00\x8c\x8c\x8c\ +\x28\x98\x98\x98\x63\xb7\xb7\xb7\x13\x00\x00\x00\x00\x3d\x3c\x3d\ +\x3e\xac\xac\xac\xff\x99\x99\x99\xff\xa0\xa0\xa0\xff\xb2\xb2\xb2\ +\xff\x5b\x5b\x5b\xf0\x5e\x5e\x5e\xa5\x65\x65\x65\xee\x55\x55\x55\ +\x3f\x00\x00\x00\x00\x1b\x1a\x1b\x06\x6a\x6a\x6a\xbe\x6b\x6b\x6b\ +\xff\xa5\xa5\xa5\xff\x99\x99\x99\xff\x99\x99\x99\xff\xc2\xc2\xc2\ +\xff\x46\x46\x46\xfd\x9d\x9d\x9d\xfd\xbe\xbe\xbe\xff\x66\x66\x66\ +\xb8\x3c\x3b\x3c\x5a\x40\x40\x40\xfa\x8d\x8d\x8d\xff\x9e\x9e\x9e\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa4\xa4\xa4\ +\xff\x62\x62\x62\xfb\x8c\x8b\x8c\x98\x9d\x9c\x9d\xe2\x90\x90\x90\ +\x21\x69\x69\x69\xfb\xa1\xa1\xa1\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x68\x68\x68\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x4c\x4b\x4c\ +\x4b\xa8\xa8\xa8\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa1\xa1\xa1\ +\xff\x65\x65\x65\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x6c\x6c\ +\x26\xaa\xaa\xaa\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x8a\x8a\x8a\ +\xf3\xae\xae\xae\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\x91\x91\x91\xca\x9d\x9d\x9d\xff\x99\x99\x99\xff\x99\x99\x99\ +\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa2\xa1\xa2\xf8\x6a\x6a\x6a\ +\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ +\x00\xbf\xbf\xbf\x01\x90\x90\x90\x6b\x9d\x9d\x9d\xed\xa7\xa7\xa7\ +\xfe\xa8\xa8\xa8\xfb\x99\x99\x99\xce\x97\x97\x97\x21\x00\x00\x00\ +\x00\x00\x00\x00\x00\xc4\x30\x9c\x41\x80\x10\x9c\x41\x80\x00\x9c\ +\x41\x80\x00\x9c\x41\xc4\x00\x9c\x41\x10\x00\x9c\x41\x00\x00\x9c\ +\x41\x00\x00\x9c\x41\xc0\x00\x9c\x41\xc0\x00\x9c\x41\xe0\x10\x9c\ +\x41\xe0\x30\x9c\x41\  \x00\x00\x23\x9a\  \x3c\  \x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\ @@ -13213,6 +13330,10 @@
 \x0c\x07\x55\xc7\  \x00\x71\  \x00\x75\x00\x69\x00\x74\x00\x2e\x00\x73\x00\x76\x00\x67\ +\x00\x06\ +\x06\xea\x4f\x9f\ +\x00\x68\ +\x00\x67\x00\x2e\x00\x69\x00\x63\x00\x6f\  \x00\x07\  \x03\x5a\x5a\x27\  \x00\x6c\ @@ -13261,27 +13382,28 @@
   qt_resource_struct = "\  \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ -\x00\x00\x00\x00\x00\x02\x00\x00\x00\x14\x00\x00\x00\x02\ +\x00\x00\x00\x00\x00\x02\x00\x00\x00\x15\x00\x00\x00\x02\  \x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\  \x00\x00\x00\xa0\x00\x00\x00\x00\x00\x01\x00\x00\xb7\x00\ -\x00\x00\x00\xe6\x00\x00\x00\x00\x00\x01\x00\x01\x7b\x8f\ +\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x01\x00\x01\x82\xb9\  \x00\x00\x00\x8a\x00\x00\x00\x00\x00\x01\x00\x00\xb6\x40\ -\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x02\x8b\x54\ -\x00\x00\x01\xd8\x00\x00\x00\x00\x00\x01\x00\x03\x33\x26\ +\x00\x00\x01\x56\x00\x00\x00\x00\x00\x01\x00\x02\x92\x7e\ +\x00\x00\x01\xea\x00\x00\x00\x00\x00\x01\x00\x03\x3a\x50\  \x00\x00\x00\x26\x00\x00\x00\x00\x00\x01\x00\x00\x3d\x90\  \x00\x00\x00\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x41\x9b\ -\x00\x00\x01\xa8\x00\x00\x00\x00\x00\x01\x00\x02\xe0\x18\ -\x00\x00\x01\x2e\x00\x00\x00\x00\x00\x01\x00\x02\x6c\x05\ +\x00\x00\x01\xba\x00\x00\x00\x00\x00\x01\x00\x02\xe7\x42\ +\x00\x00\x00\xe6\x00\x00\x00\x00\x00\x01\x00\x01\x7b\x8f\ +\x00\x00\x01\x40\x00\x00\x00\x00\x00\x01\x00\x02\x73\x2f\  \x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x01\x34\x6e\ -\x00\x00\x00\xfa\x00\x00\x00\x00\x00\x01\x00\x01\x9f\x2d\ +\x00\x00\x01\x0c\x00\x00\x00\x00\x00\x01\x00\x01\xa6\x57\  \x00\x00\x00\x54\x00\x00\x00\x00\x00\x01\x00\x00\x98\xf0\ -\x00\x00\x01\x5e\x00\x00\x00\x00\x00\x01\x00\x02\xa6\xdc\ -\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x01\xbd\xfd\ +\x00\x00\x01\x70\x00\x00\x00\x00\x00\x01\x00\x02\xae\x06\ +\x00\x00\x01\x28\x00\x00\x00\x00\x00\x01\x00\x01\xc5\x27\  \x00\x00\x00\x74\x00\x00\x00\x00\x00\x01\x00\x00\xa9\x63\  \x00\x00\x00\xd0\x00\x00\x00\x00\x00\x01\x00\x01\x54\x6d\ -\x00\x00\x01\x7a\x00\x00\x00\x00\x00\x01\x00\x02\xc6\xdb\ -\x00\x00\x01\x90\x00\x00\x00\x00\x00\x01\x00\x02\xd3\x32\ -\x00\x00\x01\xbe\x00\x00\x00\x00\x00\x01\x00\x03\x00\x88\ +\x00\x00\x01\x8c\x00\x00\x00\x00\x00\x01\x00\x02\xce\x05\ +\x00\x00\x01\xa2\x00\x00\x00\x00\x00\x01\x00\x02\xda\x5c\ +\x00\x00\x01\xd0\x00\x00\x00\x00\x00\x01\x00\x03\x07\xb2\  "    def qInitResources():