9 |
9 |
10 from PyQt6.QtWidgets import QDialog |
10 from PyQt6.QtWidgets import QDialog |
11 |
11 |
12 from eric7 import Preferences |
12 from eric7 import Preferences |
13 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
13 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
|
14 from eric7.QScintilla.SpellChecker import SpellChecker |
14 |
15 |
15 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog |
16 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog |
16 |
17 |
17 |
18 |
18 class SpellingPropertiesDialog(QDialog, Ui_SpellingPropertiesDialog): |
19 class SpellingPropertiesDialog(QDialog, Ui_SpellingPropertiesDialog): |
39 self.pelPicker.setDefaultDirectory(project.ppath) |
40 self.pelPicker.setDefaultDirectory(project.ppath) |
40 self.pelPicker.setFilters(self.tr("Dictionary File (*.dic);;All Files (*)")) |
41 self.pelPicker.setFilters(self.tr("Dictionary File (*.dic);;All Files (*)")) |
41 |
42 |
42 self.project = project |
43 self.project = project |
43 self.parent = parent |
44 self.parent = parent |
44 |
|
45 from eric7.QScintilla.SpellChecker import SpellChecker |
|
46 |
45 |
47 self.spellingComboBox.addItem(self.tr("<default>")) |
46 self.spellingComboBox.addItem(self.tr("<default>")) |
48 self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages())) |
47 self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages())) |
49 |
48 |
50 if not new: |
49 if not new: |