Make gui class debug messages consistent
This commit is contained in:
@@ -47,7 +47,7 @@ class GuiAbout(QDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiAbout ...")
|
||||
logger.debug("Create: GuiAbout")
|
||||
self.setObjectName("GuiAbout")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -110,10 +110,14 @@ class GuiAbout(QDialog):
|
||||
self.outerBox.addWidget(self.buttonBox)
|
||||
self.setLayout(self.outerBox)
|
||||
|
||||
logger.debug("GuiAbout initialisation complete")
|
||||
logger.debug("Ready: GuiAbout")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiAbout")
|
||||
return
|
||||
|
||||
def populateGUI(self):
|
||||
"""Populate tabs with text.
|
||||
"""
|
||||
|
||||
@@ -44,7 +44,7 @@ class GuiDocMerge(QDialog):
|
||||
def __init__(self, mainGui, sHandle, itemList):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiDocMerge ...")
|
||||
logger.debug("Create: GuiDocMerge")
|
||||
self.setObjectName("GuiDocMerge")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -107,10 +107,14 @@ class GuiDocMerge(QDialog):
|
||||
# Load Content
|
||||
self._loadContent(sHandle, itemList)
|
||||
|
||||
logger.debug("GuiDocMerge initialisation complete")
|
||||
logger.debug("Ready: GuiDocMerge")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiDocMerge")
|
||||
return
|
||||
|
||||
def getData(self):
|
||||
"""Return the user's choices.
|
||||
"""
|
||||
|
||||
@@ -48,7 +48,7 @@ class GuiDocSplit(QDialog):
|
||||
def __init__(self, mainGui, sHandle):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiDocSplit ...")
|
||||
logger.debug("Create: GuiDocSplit")
|
||||
self.setObjectName("GuiDocSplit")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -138,10 +138,14 @@ class GuiDocSplit(QDialog):
|
||||
# Load Content
|
||||
self._loadContent(sHandle)
|
||||
|
||||
logger.debug("GuiDocSplit initialisation complete")
|
||||
logger.debug("Ready: GuiDocSplit")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiDocSplit")
|
||||
return
|
||||
|
||||
def getData(self):
|
||||
"""Return the user's choices. Also save the users options for
|
||||
the next time the dialog is used.
|
||||
|
||||
@@ -46,7 +46,7 @@ class GuiPreferences(NPagedDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiPreferences ...")
|
||||
logger.debug("Create: GuiPreferences")
|
||||
self.setObjectName("GuiPreferences")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -83,10 +83,14 @@ class GuiPreferences(NPagedDialog):
|
||||
self._needsRestart = False
|
||||
self._refreshTree = False
|
||||
|
||||
logger.debug("GuiPreferences initialisation complete")
|
||||
logger.debug("Ready: GuiPreferences")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiPreferences")
|
||||
return
|
||||
|
||||
##
|
||||
# Properties
|
||||
##
|
||||
|
||||
@@ -48,7 +48,7 @@ class GuiProjectDetails(NPagedDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiProjectDetails ...")
|
||||
logger.debug("Create: GuiProjectDetails")
|
||||
self.setObjectName("GuiProjectDetails")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -78,10 +78,14 @@ class GuiProjectDetails(NPagedDialog):
|
||||
self.buttonBox.rejected.connect(self._doClose)
|
||||
self.addControls(self.buttonBox)
|
||||
|
||||
logger.debug("GuiProjectDetails initialisation complete")
|
||||
logger.debug("Ready: GuiProjectDetails")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiProjectDetails")
|
||||
return
|
||||
|
||||
def updateValues(self):
|
||||
"""Set all the values of the pages.
|
||||
"""
|
||||
|
||||
@@ -56,7 +56,7 @@ class GuiProjectLoad(QDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiProjectLoad ...")
|
||||
logger.debug("Create: GuiProjectLoad")
|
||||
self.setObjectName("GuiProjectLoad")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -145,10 +145,14 @@ class GuiProjectLoad(QDialog):
|
||||
keyDelete.setKey(QKeySequence(Qt.Key_Delete))
|
||||
keyDelete.activated.connect(self._doDeleteRecent)
|
||||
|
||||
logger.debug("GuiProjectLoad initialisation complete")
|
||||
logger.debug("Ready: GuiProjectLoad")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiProjectLoad")
|
||||
return
|
||||
|
||||
##
|
||||
# Buttons
|
||||
##
|
||||
|
||||
@@ -52,7 +52,7 @@ class GuiProjectSettings(NPagedDialog):
|
||||
def __init__(self, mainGui, focusTab=TAB_MAIN):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiProjectSettings ...")
|
||||
logger.debug("Create: GuiProjectSettings")
|
||||
self.setObjectName("GuiProjectSettings")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -93,10 +93,14 @@ class GuiProjectSettings(NPagedDialog):
|
||||
# Focus Tab
|
||||
self._focusTab(focusTab)
|
||||
|
||||
logger.debug("GuiProjectSettings initialisation complete")
|
||||
logger.debug("Ready: GuiProjectSettings")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiProjectSettings")
|
||||
return
|
||||
|
||||
@property
|
||||
def spellChanged(self):
|
||||
return self._spellChanged
|
||||
|
||||
@@ -47,7 +47,7 @@ class GuiUpdates(QDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiUpdates ...")
|
||||
logger.debug("Create: GuiUpdates")
|
||||
self.setObjectName("GuiUpdates")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -113,10 +113,14 @@ class GuiUpdates(QDialog):
|
||||
|
||||
self.setLayout(self.outerBox)
|
||||
|
||||
logger.debug("GuiUpdates initialisation complete")
|
||||
logger.debug("Ready: GuiUpdates")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiUpdates")
|
||||
return
|
||||
|
||||
def checkLatest(self):
|
||||
"""Check for latest release.
|
||||
"""
|
||||
|
||||
@@ -46,7 +46,7 @@ class GuiWordList(QDialog):
|
||||
def __init__(self, mainGui):
|
||||
super().__init__(parent=mainGui)
|
||||
|
||||
logger.debug("Initialising GuiWordList ...")
|
||||
logger.debug("Create: GuiWordList")
|
||||
self.setObjectName("GuiWordList")
|
||||
|
||||
self.mainGui = mainGui
|
||||
@@ -108,10 +108,14 @@ class GuiWordList(QDialog):
|
||||
|
||||
self._loadWordList()
|
||||
|
||||
logger.debug("GuiWordList initialisation complete")
|
||||
logger.debug("Ready: GuiWordList")
|
||||
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
logger.debug("Delete: GuiWordList")
|
||||
return
|
||||
|
||||
##
|
||||
# Slots
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user