40 lines
703 B
Python
40 lines
703 B
Python
# -*- coding: utf-8 -*-
|
|
"""novelWriter Test Dummy GUI Classes
|
|
"""
|
|
|
|
class DummyMain():
|
|
|
|
def __init__(self):
|
|
self.mainConf = None
|
|
self.hasProject = True
|
|
self.statusBar = StatusBar()
|
|
return
|
|
|
|
def makeAlert(self, theMessage, theLevel):
|
|
print("%s: %s" % (str(theLevel), theMessage))
|
|
return
|
|
|
|
def setStatus(self, theMessage):
|
|
return
|
|
|
|
def setProjectStatus(self, isChanged):
|
|
return
|
|
|
|
def openProject(self, projPath):
|
|
return
|
|
|
|
def rebuildIndex(self):
|
|
return
|
|
|
|
# END Class GuiMain
|
|
|
|
class StatusBar():
|
|
|
|
def __init__(self):
|
|
return
|
|
|
|
def setStatus(self, theText):
|
|
return
|
|
|
|
# END Class StatusBar
|