8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, Qt |
10 from PyQt6.QtCore import pyqtSlot, Qt |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
12 |
12 |
13 from EricWidgets.EricApplication import ericApp |
13 from eric7.EricWidgets.EricApplication import ericApp |
14 |
14 |
15 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog |
15 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog |
16 |
16 |
17 import UI.PixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 |
18 |
19 |
19 |
20 class HgQueuesFoldDialog(QDialog, Ui_HgQueuesFoldDialog): |
20 class HgQueuesFoldDialog(QDialog, Ui_HgQueuesFoldDialog): |
21 """ |
21 """ |
22 Class implementing a dialog to enter data to fold patches. |
22 Class implementing a dialog to enter data to fold patches. |
30 @param parent reference to the parent widget (QWidget) |
30 @param parent reference to the parent widget (QWidget) |
31 """ |
31 """ |
32 super().__init__(parent) |
32 super().__init__(parent) |
33 self.setupUi(self) |
33 self.setupUi(self) |
34 |
34 |
35 self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) |
35 self.addButton.setIcon(EricPixmapCache.getIcon("plus")) |
36 self.removeButton.setIcon(UI.PixmapCache.getIcon("minus")) |
36 self.removeButton.setIcon(EricPixmapCache.getIcon("minus")) |
37 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
37 self.upButton.setIcon(EricPixmapCache.getIcon("1uparrow")) |
38 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
38 self.downButton.setIcon(EricPixmapCache.getIcon("1downarrow")) |
39 |
39 |
40 project = ericApp().getObject("Project") |
40 project = ericApp().getObject("Project") |
41 pwl, pel = project.getProjectDictionaries() |
41 pwl, pel = project.getProjectDictionaries() |
42 language = project.getProjectSpellLanguage() |
42 language = project.getProjectSpellLanguage() |
43 self.messageEdit.setLanguageWithPWL(language, pwl or None, pel or None) |
43 self.messageEdit.setLanguageWithPWL(language, pwl or None, pel or None) |