And renamed doctree to projecttree
This commit is contained in:
+2
-2
@@ -9,7 +9,6 @@ from nw.gui.docdetails import GuiDocViewDetails
|
|||||||
from nw.gui.doceditor import GuiDocEditor
|
from nw.gui.doceditor import GuiDocEditor
|
||||||
from nw.gui.docmerge import GuiDocMerge
|
from nw.gui.docmerge import GuiDocMerge
|
||||||
from nw.gui.docsplit import GuiDocSplit
|
from nw.gui.docsplit import GuiDocSplit
|
||||||
from nw.gui.doctree import GuiDocTree
|
|
||||||
from nw.gui.docviewer import GuiDocViewer
|
from nw.gui.docviewer import GuiDocViewer
|
||||||
from nw.gui.itemdetails import GuiItemDetails
|
from nw.gui.itemdetails import GuiItemDetails
|
||||||
from nw.gui.itemeditor import GuiItemEditor
|
from nw.gui.itemeditor import GuiItemEditor
|
||||||
@@ -18,6 +17,7 @@ from nw.gui.outline import GuiProjectOutline
|
|||||||
from nw.gui.preferences import GuiPreferences
|
from nw.gui.preferences import GuiPreferences
|
||||||
from nw.gui.projload import GuiProjectLoad
|
from nw.gui.projload import GuiProjectLoad
|
||||||
from nw.gui.projsettings import GuiProjectSettings
|
from nw.gui.projsettings import GuiProjectSettings
|
||||||
|
from nw.gui.projtree import GuiProjectTree
|
||||||
from nw.gui.sessionlog import GuiSessionLogView
|
from nw.gui.sessionlog import GuiSessionLogView
|
||||||
from nw.gui.statusbar import GuiMainStatus
|
from nw.gui.statusbar import GuiMainStatus
|
||||||
from nw.gui.theme import GuiIcons
|
from nw.gui.theme import GuiIcons
|
||||||
@@ -33,7 +33,6 @@ __all__ = [
|
|||||||
"GuiDocEditor",
|
"GuiDocEditor",
|
||||||
"GuiDocMerge",
|
"GuiDocMerge",
|
||||||
"GuiDocSplit",
|
"GuiDocSplit",
|
||||||
"GuiDocTree",
|
|
||||||
"GuiDocViewer",
|
"GuiDocViewer",
|
||||||
"GuiItemDetails",
|
"GuiItemDetails",
|
||||||
"GuiItemEditor",
|
"GuiItemEditor",
|
||||||
@@ -42,6 +41,7 @@ __all__ = [
|
|||||||
"GuiPreferences",
|
"GuiPreferences",
|
||||||
"GuiProjectLoad",
|
"GuiProjectLoad",
|
||||||
"GuiProjectSettings",
|
"GuiProjectSettings",
|
||||||
|
"GuiProjectTree",
|
||||||
"GuiSessionLogView",
|
"GuiSessionLogView",
|
||||||
"GuiMainStatus",
|
"GuiMainStatus",
|
||||||
"GuiIcons",
|
"GuiIcons",
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ from nw.constants import (
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class GuiDocTree(QTreeWidget):
|
class GuiProjectTree(QTreeWidget):
|
||||||
|
|
||||||
C_NAME = 0
|
C_NAME = 0
|
||||||
C_COUNT = 1
|
C_COUNT = 1
|
||||||
@@ -52,7 +52,7 @@ class GuiDocTree(QTreeWidget):
|
|||||||
def __init__(self, theParent, theProject):
|
def __init__(self, theParent, theProject):
|
||||||
QTreeWidget.__init__(self, theParent)
|
QTreeWidget.__init__(self, theParent)
|
||||||
|
|
||||||
logger.debug("Initialising GuiDocTree ...")
|
logger.debug("Initialising GuiProjectTree ...")
|
||||||
self.mainConf = nw.CONFIG
|
self.mainConf = nw.CONFIG
|
||||||
self.theParent = theParent
|
self.theParent = theParent
|
||||||
self.theTheme = theParent.theTheme
|
self.theTheme = theParent.theTheme
|
||||||
@@ -115,7 +115,7 @@ class GuiDocTree(QTreeWidget):
|
|||||||
# The last column should just auto-scale
|
# The last column should just auto-scale
|
||||||
self.resizeColumnToContents(self.C_FLAGS)
|
self.resizeColumnToContents(self.C_FLAGS)
|
||||||
|
|
||||||
logger.debug("GuiDocTree initialisation complete")
|
logger.debug("GuiProjectTree initialisation complete")
|
||||||
|
|
||||||
# Internal Mapping
|
# Internal Mapping
|
||||||
self.makeAlert = self.theParent.makeAlert
|
self.makeAlert = self.theParent.makeAlert
|
||||||
@@ -782,4 +782,4 @@ class GuiDocTree(QTreeWidget):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# END Class GuiDocTree
|
# END Class GuiProjectTree
|
||||||
+2
-2
@@ -40,7 +40,7 @@ from PyQt5.QtWidgets import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from nw.gui import (
|
from nw.gui import (
|
||||||
GuiMainMenu, GuiMainStatus, GuiTheme, GuiDocTree, GuiDocEditor,
|
GuiMainMenu, GuiMainStatus, GuiTheme, GuiProjectTree, GuiDocEditor,
|
||||||
GuiDocViewer, GuiItemDetails, GuiSearchBar, GuiNoticeBar, GuiDocViewDetails,
|
GuiDocViewer, GuiItemDetails, GuiSearchBar, GuiNoticeBar, GuiDocViewDetails,
|
||||||
GuiPreferences, GuiProjectSettings, GuiItemEditor, GuiProjectOutline,
|
GuiPreferences, GuiProjectSettings, GuiItemEditor, GuiProjectOutline,
|
||||||
GuiSessionLogView, GuiDocMerge, GuiDocSplit, GuiProjectLoad, GuiBuildNovel
|
GuiSessionLogView, GuiDocMerge, GuiDocSplit, GuiProjectLoad, GuiBuildNovel
|
||||||
@@ -91,7 +91,7 @@ class GuiMain(QMainWindow):
|
|||||||
# Main GUI Elements
|
# Main GUI Elements
|
||||||
self.statusBar = GuiMainStatus(self)
|
self.statusBar = GuiMainStatus(self)
|
||||||
self.noticeBar = GuiNoticeBar(self)
|
self.noticeBar = GuiNoticeBar(self)
|
||||||
self.treeView = GuiDocTree(self, self.theProject)
|
self.treeView = GuiProjectTree(self, self.theProject)
|
||||||
self.docEditor = GuiDocEditor(self, self.theProject)
|
self.docEditor = GuiDocEditor(self, self.theProject)
|
||||||
self.docViewer = GuiDocViewer(self, self.theProject)
|
self.docViewer = GuiDocViewer(self, self.theProject)
|
||||||
self.viewMeta = GuiDocViewDetails(self, self.theProject)
|
self.viewMeta = GuiDocViewDetails(self, self.theProject)
|
||||||
|
|||||||
Reference in New Issue
Block a user