10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
14 |
14 |
15 from EricWidgets import EricFileDialog |
15 from eric7.EricWidgets import EricFileDialog |
16 |
16 |
17 from .Ui_GitArchiveDataDialog import Ui_GitArchiveDataDialog |
17 from .Ui_GitArchiveDataDialog import Ui_GitArchiveDataDialog |
18 |
18 |
19 import UI.PixmapCache |
19 from eric7.EricGui import EricPixmapCache |
20 import Utilities |
20 from eric7 import Utilities |
21 |
21 |
22 |
22 |
23 class GitArchiveDataDialog(QDialog, Ui_GitArchiveDataDialog): |
23 class GitArchiveDataDialog(QDialog, Ui_GitArchiveDataDialog): |
24 """ |
24 """ |
25 Class implementing a dialog to enter the data for the creation of an |
25 Class implementing a dialog to enter the data for the creation of an |
36 @param parent reference to the parent widget (QWidget) |
36 @param parent reference to the parent widget (QWidget) |
37 """ |
37 """ |
38 super().__init__(parent) |
38 super().__init__(parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
40 |
40 |
41 self.fileButton.setIcon(UI.PixmapCache.getIcon("open")) |
41 self.fileButton.setIcon(EricPixmapCache.getIcon("open")) |
42 |
42 |
43 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
43 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
44 |
44 |
45 self.tagCombo.addItems(sorted(tagsList)) |
45 self.tagCombo.addItems(sorted(tagsList)) |
46 self.branchCombo.addItems(["master"] + sorted(branchesList)) |
46 self.branchCombo.addItems(["master"] + sorted(branchesList)) |