8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot, QCoreApplication |
10 from PyQt6.QtCore import pyqtSlot, QCoreApplication |
11 from PyQt6.QtWidgets import QDialog |
11 from PyQt6.QtWidgets import QDialog |
12 |
12 |
13 from EricWidgets.EricApplication import ericApp |
|
14 from EricWidgets import EricMessageBox |
13 from EricWidgets import EricMessageBox |
15 |
14 |
16 from Ui_HgHisteditCommitEditor import Ui_HgHisteditCommitEditor |
15 from Ui_HgHisteditCommitEditor import Ui_HgHisteditCommitEditor |
17 |
16 |
18 import Preferences |
17 import Preferences |
32 @param parent reference to the parent widget |
31 @param parent reference to the parent widget |
33 @type QWidget |
32 @type QWidget |
34 """ |
33 """ |
35 super().__init__(parent) |
34 super().__init__(parent) |
36 self.setupUi(self) |
35 self.setupUi(self) |
37 |
|
38 project = ericApp().getObject("Project") |
|
39 pwl, pel = project.getProjectDictionaries() |
|
40 language = project.getProjectSpellLanguage() |
|
41 self.messageEdit.setLanguageWithPWL( |
|
42 language, pwl or None, pel or None) |
|
43 |
36 |
44 self.__fileName = fileName |
37 self.__fileName = fileName |
45 self.__readFile() |
38 self.__readFile() |
46 |
39 |
47 self.recentCommitMessages = Preferences.toList( |
40 self.recentCommitMessages = Preferences.toList( |