Moved spell checker classes to core folder

This commit is contained in:
Veronica K. B. Olsen
2020-05-08 21:02:30 +02:00
parent 386020bcf8
commit 9b049b6469
6 changed files with 10 additions and 10 deletions
+6
View File
@@ -3,9 +3,15 @@
from nw.core.document import NWDoc
from nw.core.index import NWIndex
from nw.core.project import NWProject
from nw.core.spellcheck import NWSpellCheck
from nw.core.spellcheck import NWSpellEnchant
from nw.core.spellcheck import NWSpellSimple
__all__ = [
"NWDoc",
"NWIndex",
"NWProject",
"NWSpellCheck",
"NWSpellEnchant",
"NWSpellSimple",
]
+1 -1
View File
@@ -39,7 +39,7 @@ from PyQt5.QtWidgets import (
)
from nw.additions import QSwitch, QConfigLayout
from nw.tools import NWSpellCheck, NWSpellSimple, NWSpellEnchant
from nw.core import NWSpellCheck, NWSpellSimple, NWSpellEnchant
from nw.constants import nwAlert, nwQuotes
logger = logging.getLogger(__name__)
+2 -2
View File
@@ -42,7 +42,7 @@ from PyQt5.QtGui import (
from nw.core import NWDoc
from nw.gui.tools import GuiDocHighlighter, WordCounter
from nw.gui.elements.doctitlebar import GuiDocTitleBar
from nw.tools import NWSpellSimple
from nw.core import NWSpellSimple
from nw.constants import nwUnicode, nwDocAction
logger = logging.getLogger(__name__)
@@ -1007,7 +1007,7 @@ class GuiDocEditor(QTextEdit):
"""
if self.mainConf.spellTool == "enchant":
from nw.tools.spellcheck import NWSpellEnchant
from nw.core.spellcheck import NWSpellEnchant
self.theDict = NWSpellEnchant()
else:
self.theDict = NWSpellSimple()
+1 -1
View File
@@ -34,7 +34,7 @@ from PyQt5.QtCore import Qt, QTimer
from PyQt5.QtGui import QColor, QPixmap, QFont
from PyQt5.QtWidgets import QStatusBar, QLabel
from nw.tools import NWSpellCheck
from nw.core import NWSpellCheck
logger = logging.getLogger(__name__)
-6
View File
@@ -3,9 +3,6 @@
from nw.tools.analyse import TextAnalysis
from nw.tools.legacy import projectMaintenance
from nw.tools.optionstate import OptionState
from nw.tools.spellcheck import NWSpellCheck
from nw.tools.spellcheck import NWSpellEnchant
from nw.tools.spellcheck import NWSpellSimple
from nw.tools.translate import numberToWord
from nw.tools.wordcount import countWords
@@ -13,9 +10,6 @@ __all__ = [
"TextAnalysis",
"projectMaintenance",
"OptionState",
"NWSpellCheck",
"NWSpellEnchant",
"NWSpellSimple",
"numberToWord",
"countWords",
]