Renamed docdetails file to itemdetails
This commit is contained in:
+3
-3
@@ -172,7 +172,7 @@ def main(sysArgs=None):
|
|||||||
debugLevel = logging.INFO
|
debugLevel = logging.INFO
|
||||||
elif inOpt == "--debug":
|
elif inOpt == "--debug":
|
||||||
debugLevel = logging.DEBUG
|
debugLevel = logging.DEBUG
|
||||||
logFormat = "[{asctime:}] {name:>30}:{lineno:<4d} {levelname:8} {message:}"
|
logFormat = "[{asctime:}] {name:>22}:{lineno:<4d} {levelname:8} {message:}"
|
||||||
elif inOpt == "--logfile":
|
elif inOpt == "--logfile":
|
||||||
logFile = inArg
|
logFile = inArg
|
||||||
toFile = True
|
toFile = True
|
||||||
@@ -180,7 +180,7 @@ def main(sysArgs=None):
|
|||||||
toStd = False
|
toStd = False
|
||||||
elif inOpt == "--verbose":
|
elif inOpt == "--verbose":
|
||||||
debugLevel = VERBOSE
|
debugLevel = VERBOSE
|
||||||
logFormat = "[{asctime:}] {name:>30}:{lineno:<4d} {levelname:8} {message:}"
|
logFormat = "[{asctime:}] {name:>22}:{lineno:<4d} {levelname:8} {message:}"
|
||||||
elif inOpt == "--style":
|
elif inOpt == "--style":
|
||||||
qtStyle = inArg
|
qtStyle = inArg
|
||||||
elif inOpt == "--config":
|
elif inOpt == "--config":
|
||||||
@@ -196,7 +196,7 @@ def main(sysArgs=None):
|
|||||||
CONFIG.cmdOpen = cmdOpen
|
CONFIG.cmdOpen = cmdOpen
|
||||||
|
|
||||||
# Set Logging
|
# Set Logging
|
||||||
logFmt = logging.Formatter(fmt=logFormat,datefmt="%Y-%m-%d %H:%M:%S",style="{")
|
logFmt = logging.Formatter(fmt=logFormat, datefmt="%Y-%m-%d %H:%M:%S", style="{")
|
||||||
|
|
||||||
if not logFile == "" and toFile:
|
if not logFile == "" and toFile:
|
||||||
if path.isfile(logFile+".bak"):
|
if path.isfile(logFile+".bak"):
|
||||||
|
|||||||
+2
-2
@@ -5,12 +5,12 @@ from nw.gui.build import GuiBuildNovel
|
|||||||
from nw.gui.docbars import GuiDocTitleBar
|
from nw.gui.docbars import GuiDocTitleBar
|
||||||
from nw.gui.docbars import GuiNoticeBar
|
from nw.gui.docbars import GuiNoticeBar
|
||||||
from nw.gui.docbars import GuiSearchBar
|
from nw.gui.docbars import GuiSearchBar
|
||||||
from nw.gui.docdetails import GuiDocDetails
|
|
||||||
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.doctree import GuiDocTree
|
||||||
from nw.gui.docviewer import GuiDocViewer
|
from nw.gui.docviewer import GuiDocViewer
|
||||||
|
from nw.gui.itemdetails import GuiItemDetails
|
||||||
from nw.gui.itemeditor import GuiItemEditor
|
from nw.gui.itemeditor import GuiItemEditor
|
||||||
from nw.gui.mainmenu import GuiMainMenu
|
from nw.gui.mainmenu import GuiMainMenu
|
||||||
from nw.gui.outline import GuiProjectOutline
|
from nw.gui.outline import GuiProjectOutline
|
||||||
@@ -29,12 +29,12 @@ __all__ = [
|
|||||||
"GuiDocTitleBar",
|
"GuiDocTitleBar",
|
||||||
"GuiNoticeBar",
|
"GuiNoticeBar",
|
||||||
"GuiSearchBar",
|
"GuiSearchBar",
|
||||||
"GuiDocDetails",
|
|
||||||
"GuiDocEditor",
|
"GuiDocEditor",
|
||||||
"GuiDocMerge",
|
"GuiDocMerge",
|
||||||
"GuiDocSplit",
|
"GuiDocSplit",
|
||||||
"GuiDocTree",
|
"GuiDocTree",
|
||||||
"GuiDocViewer",
|
"GuiDocViewer",
|
||||||
|
"GuiItemDetails",
|
||||||
"GuiItemEditor",
|
"GuiItemEditor",
|
||||||
"GuiMainMenu",
|
"GuiMainMenu",
|
||||||
"GuiProjectOutline",
|
"GuiProjectOutline",
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ from nw.constants import (
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class GuiDocDetails(QFrame):
|
class GuiItemDetails(QFrame):
|
||||||
|
|
||||||
def __init__(self, theParent, theProject):
|
def __init__(self, theParent, theProject):
|
||||||
QFrame.__init__(self, theParent)
|
QFrame.__init__(self, theParent)
|
||||||
|
|
||||||
logger.debug("Initialising DocDetails ...")
|
logger.debug("Initialising GuiItemDetails ...")
|
||||||
self.mainConf = nw.CONFIG
|
self.mainConf = nw.CONFIG
|
||||||
self.theParent = theParent
|
self.theParent = theParent
|
||||||
self.theProject = theProject
|
self.theProject = theProject
|
||||||
@@ -182,7 +182,7 @@ class GuiDocDetails(QFrame):
|
|||||||
self.mainBox.setColumnMinimumWidth(1, flagWidth)
|
self.mainBox.setColumnMinimumWidth(1, flagWidth)
|
||||||
self.mainBox.setColumnMinimumWidth(4, countWidth)
|
self.mainBox.setColumnMinimumWidth(4, countWidth)
|
||||||
|
|
||||||
logger.debug("DocDetails initialisation complete")
|
logger.debug("GuiItemDetails initialisation complete")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -262,4 +262,4 @@ class GuiDocDetails(QFrame):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# END Class GuiDocDetails
|
# END Class GuiItemDetails
|
||||||
+2
-2
@@ -41,7 +41,7 @@ from PyQt5.QtWidgets import (
|
|||||||
|
|
||||||
from nw.gui import (
|
from nw.gui import (
|
||||||
GuiMainMenu, GuiMainStatus, GuiTheme, GuiDocTree, GuiDocEditor,
|
GuiMainMenu, GuiMainStatus, GuiTheme, GuiDocTree, GuiDocEditor,
|
||||||
GuiDocViewer, GuiDocDetails, 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
|
||||||
)
|
)
|
||||||
@@ -96,7 +96,7 @@ class GuiMain(QMainWindow):
|
|||||||
self.docViewer = GuiDocViewer(self, self.theProject)
|
self.docViewer = GuiDocViewer(self, self.theProject)
|
||||||
self.viewMeta = GuiDocViewDetails(self, self.theProject)
|
self.viewMeta = GuiDocViewDetails(self, self.theProject)
|
||||||
self.searchBar = GuiSearchBar(self)
|
self.searchBar = GuiSearchBar(self)
|
||||||
self.treeMeta = GuiDocDetails(self, self.theProject)
|
self.treeMeta = GuiItemDetails(self, self.theProject)
|
||||||
self.projView = GuiProjectOutline(self, self.theProject)
|
self.projView = GuiProjectOutline(self, self.theProject)
|
||||||
self.mainMenu = GuiMainMenu(self, self.theProject)
|
self.mainMenu = GuiMainMenu(self, self.theProject)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user