Proagate word counts and save them for files.

This commit is contained in:
Veronica K. B. Olsen
2019-04-22 17:02:52 +02:00
parent 2727ade4a0
commit 3631b239fc
10 changed files with 103 additions and 91 deletions
+13 -8
View File
@@ -43,8 +43,9 @@ class NWProject():
return
def buildProjectTree(self):
return True
##
# Add Entries
##
def newRoot(self, rootName, rootClass):
newItem = NWItem()
@@ -85,6 +86,10 @@ class NWProject():
hScene = self.newFile("New Scene", nwItemClass.NOVEL, hChapt)
return
##
# File I/O
##
def openProject(self, fileName):
if not path.isfile(fileName):
@@ -194,9 +199,9 @@ class NWProject():
return True
#
##
# Set Functions
#
##
def setProjectPath(self, projPath):
self.projPath = projPath
@@ -225,9 +230,9 @@ class NWProject():
self.treeOrder = newOrder
return True
#
##
# Get Functions
#
##
def getItem(self, tHandle):
if tHandle in self.projTree:
@@ -305,9 +310,9 @@ class NWProject():
return validActions
#
##
# Internal Functions
#
##
def _checkRootUnique(self, theClass):
"""Checks if there already is a root entry of class 'theClass' in the