Renamed 'project' folder to 'core'
This commit is contained in:
@@ -32,7 +32,7 @@ import nw
|
|||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
from PyQt5.QtCore import QRegularExpression
|
from PyQt5.QtCore import QRegularExpression
|
||||||
|
|
||||||
from nw.project.document import NWDoc
|
from nw.core.document import NWDoc
|
||||||
from nw.tools.translate import numberToWord
|
from nw.tools.translate import numberToWord
|
||||||
from nw.constants import nwItemLayout
|
from nw.constants import nwItemLayout
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from nw.core.document import NWDoc
|
||||||
|
from nw.core.index import NWIndex
|
||||||
|
from nw.core.project import NWProject
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"NWDoc",
|
||||||
|
"NWIndex",
|
||||||
|
"NWProject",
|
||||||
|
]
|
||||||
@@ -34,7 +34,7 @@ from PyQt5.QtWidgets import (
|
|||||||
QListWidget, QAbstractItemView, QListWidgetItem
|
QListWidget, QAbstractItemView, QListWidgetItem
|
||||||
)
|
)
|
||||||
from nw.constants import nwAlert, nwItemType
|
from nw.constants import nwAlert, nwItemType
|
||||||
from nw.project import NWDoc
|
from nw.core import NWDoc
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ from PyQt5.QtWidgets import (
|
|||||||
QListWidget, QAbstractItemView, QListWidgetItem
|
QListWidget, QAbstractItemView, QListWidgetItem
|
||||||
)
|
)
|
||||||
from nw.constants import nwAlert, nwItemType, nwItemClass, nwItemLayout
|
from nw.constants import nwAlert, nwItemType, nwItemClass, nwItemLayout
|
||||||
from nw.project import NWDoc
|
from nw.core import NWDoc
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ from PyQt5.QtGui import (
|
|||||||
QTextDocument, QCursor
|
QTextDocument, QCursor
|
||||||
)
|
)
|
||||||
|
|
||||||
from nw.project import NWDoc
|
from nw.core import NWDoc
|
||||||
from nw.gui.tools import GuiDocHighlighter, WordCounter
|
from nw.gui.tools import GuiDocHighlighter, WordCounter
|
||||||
from nw.gui.elements.doctitlebar import GuiDocTitleBar
|
from nw.gui.elements.doctitlebar import GuiDocTitleBar
|
||||||
from nw.tools import NWSpellSimple
|
from nw.tools import NWSpellSimple
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ from PyQt5.QtWidgets import (
|
|||||||
QTreeWidget, QTreeWidgetItem, QAbstractItemView, QApplication, QMessageBox
|
QTreeWidget, QTreeWidgetItem, QAbstractItemView, QApplication, QMessageBox
|
||||||
)
|
)
|
||||||
|
|
||||||
from nw.project import NWDoc
|
from nw.core import NWDoc
|
||||||
from nw.constants import (
|
from nw.constants import (
|
||||||
nwLabels, nwItemType, nwItemClass, nwItemLayout, nwAlert
|
nwLabels, nwItemType, nwItemClass, nwItemLayout, nwAlert
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ from nw.gui import (
|
|||||||
GuiConfigEditor, GuiProjectEditor, GuiItemEditor, GuiProjectOutline,
|
GuiConfigEditor, GuiProjectEditor, GuiItemEditor, GuiProjectOutline,
|
||||||
GuiSessionLogView, GuiDocMerge, GuiDocSplit, GuiProjectLoad
|
GuiSessionLogView, GuiDocMerge, GuiDocSplit, GuiProjectLoad
|
||||||
)
|
)
|
||||||
from nw.project import NWProject, NWDoc, NWIndex
|
from nw.core import NWProject, NWDoc, NWIndex
|
||||||
from nw.tools import countWords
|
from nw.tools import countWords
|
||||||
from nw.constants import nwFiles, nwItemType, nwAlert
|
from nw.constants import nwFiles, nwItemType, nwAlert
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from nw.project.document import NWDoc
|
|
||||||
from nw.project.index import NWIndex
|
|
||||||
from nw.project.project import NWProject
|
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
"NWDoc",
|
|
||||||
"NWIndex",
|
|
||||||
"NWProject",
|
|
||||||
]
|
|
||||||
+1
-1
@@ -9,7 +9,7 @@ from lxml import etree
|
|||||||
from nwdummy import DummyMain
|
from nwdummy import DummyMain
|
||||||
|
|
||||||
from nw.config import Config
|
from nw.config import Config
|
||||||
from nw.project.project import NWProject, NWItem
|
from nw.core.project import NWProject, NWItem
|
||||||
from nw.constants import nwItemClass, nwItemType, nwItemLayout
|
from nw.constants import nwItemClass, nwItemType, nwItemLayout
|
||||||
|
|
||||||
theConf = Config()
|
theConf = Config()
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ from nwtools import *
|
|||||||
from nwdummy import DummyMain
|
from nwdummy import DummyMain
|
||||||
|
|
||||||
from nw.config import Config
|
from nw.config import Config
|
||||||
from nw.project.project import NWProject
|
from nw.core.project import NWProject
|
||||||
from nw.project.index import NWIndex
|
from nw.core.index import NWIndex
|
||||||
from nw.constants import nwItemClass
|
from nw.constants import nwItemClass
|
||||||
|
|
||||||
theConf = Config()
|
theConf = Config()
|
||||||
|
|||||||
Reference in New Issue
Block a user