|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2011 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing a dialog to list all files not tracked by Mercurial. |
|
8 """ |
|
9 |
|
10 from PyQt4.QtGui import QDialog |
|
11 |
|
12 from .Ui_HgPurgeListDialog import Ui_HgPurgeListDialog |
|
13 |
|
14 |
|
15 class HgPurgeListDialog(QDialog, Ui_HgPurgeListDialog): |
|
16 """ |
|
17 Class implementing a dialog to list all files not tracked by Mercurial. |
|
18 """ |
|
19 def __init__(self, entries, parent=None): |
|
20 """ |
|
21 Constructor |
|
22 |
|
23 @param entries list of entries to be shown (list of strings) |
|
24 @param parent reference to the parent widget (QWidget) |
|
25 """ |
|
26 QDialog.__init__(self, parent) |
|
27 self.setupUi(self) |
|
28 |
|
29 self.purgeList.addItems(sorted(entries)) |