13 |
13 |
14 class HgBundleDialog(QDialog, Ui_HgBundleDialog): |
14 class HgBundleDialog(QDialog, Ui_HgBundleDialog): |
15 """ |
15 """ |
16 Class implementing a dialog to enter the data for a bundle operation. |
16 Class implementing a dialog to enter the data for a bundle operation. |
17 """ |
17 """ |
18 def __init__(self, parent = None): |
18 def __init__(self, tagsList, branchesList, parent = None): |
19 """ |
19 """ |
20 Constructor |
20 Constructor |
|
21 |
|
22 @param tagsList list of tags (list of strings) |
|
23 @param branchesList list of branches (list of strings) |
|
24 @param parent parent widget (QWidget) |
21 """ |
25 """ |
22 QDialog.__init__(self, parent) |
26 QDialog.__init__(self, parent) |
23 self.setupUi(self) |
27 self.setupUi(self) |
24 |
28 |
25 self.compressionCombo.addItems(["", "bzip2", "gzip", "none"]) |
29 self.compressionCombo.addItems(["", "bzip2", "gzip", "none"]) |
|
30 self.tagCombo.addItems(list(sorted(tagsList))) |
|
31 self.branchCombo.addItems(list(sorted(["default"] + branchesList))) |
26 |
32 |
27 def getParameters(self): |
33 def getParameters(self): |
28 """ |
34 """ |
29 Public method to retrieve the bundle data. |
35 Public method to retrieve the bundle data. |
30 |
36 |