Added session log dialog window

This commit is contained in:
Veronica K. B. Olsen
2019-10-20 14:40:59 +02:00
parent 6638c5187e
commit 323013bbaf
4 changed files with 65 additions and 2 deletions
+5 -1
View File
@@ -34,6 +34,7 @@ from nw.gui.export import GuiExport
from nw.gui.itemeditor import GuiItemEditor
from nw.gui.statusbar import GuiMainStatus
from nw.gui.timelineview import GuiTimeLineView
from nw.gui.sessionlog import GuiSessionLogView
from nw.project.project import NWProject
from nw.project.document import NWDoc
from nw.project.item import NWItem
@@ -521,10 +522,13 @@ class GuiMain(QMainWindow):
def showTimeLineDialog(self):
if self.hasProject:
dlgTLine = GuiTimeLineView(self, self.theProject, self.theIndex)
dlgTLine = GuiSessionLogView(self, self.theProject)
dlgTLine.exec_()
return True
def showSessionLogDialog(self):
return True
def makeAlert(self, theMessage, theLevel=nwAlert.INFO):
"""Alert both the user and the logger at the same time. Message can be either a string or an
array of strings. Severity level is 0 = info, 1 = warning, and 2 = error.