7 Module implementing a dialog to enter data to fold patches. |
7 Module implementing a dialog to enter data to fold patches. |
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 |
|
13 from EricWidgets.EricApplication import ericApp |
12 |
14 |
13 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog |
15 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog |
14 |
16 |
15 import UI.PixmapCache |
17 import UI.PixmapCache |
16 |
18 |
31 |
33 |
32 self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) |
34 self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) |
33 self.removeButton.setIcon(UI.PixmapCache.getIcon("minus")) |
35 self.removeButton.setIcon(UI.PixmapCache.getIcon("minus")) |
34 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
36 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
35 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
37 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
|
38 |
|
39 project = ericApp().getObject("Project") |
|
40 pwl, pel = project.getProjectDictionaries() |
|
41 language = project.getProjectSpellLanguage() |
|
42 self.messageEdit.setLanguageWithPWL( |
|
43 language, pwl or None, pel or None) |
36 |
44 |
37 for patch in patchesList: |
45 for patch in patchesList: |
38 name, summary = patch.split("@@") |
46 name, summary = patch.split("@@") |
39 QTreeWidgetItem(self.sourcePatches, [name, summary]) |
47 QTreeWidgetItem(self.sourcePatches, [name, summary]) |
40 |
48 |