This commit is contained in:
chrys 2019-02-12 19:13:43 +01:00
commit 20ff9e1296

View File

@ -38,6 +38,7 @@ class remoteManager():
self.vmenuConst = 'VMENU ' self.vmenuConst = 'VMENU '
self.resetVmenuConst = 'RESETVMENU' self.resetVmenuConst = 'RESETVMENU'
self.interruptConst = 'INTERRUPT' self.interruptConst = 'INTERRUPT'
self.quitAppConst = 'QUITAPPLICATION'
self.defineWindowConst = 'WINDOW ' self.defineWindowConst = 'WINDOW '
self.resetWindowConst = 'RESETWINDOW' self.resetWindowConst = 'RESETWINDOW'
self.setClipboardConst = 'CLIPBOARD ' self.setClipboardConst = 'CLIPBOARD '
@ -89,6 +90,9 @@ class remoteManager():
# reset vmenu # reset vmenu
if upperCommandText.startswith(self.resetVmenuConst): if upperCommandText.startswith(self.resetVmenuConst):
self.resetVMenu() self.resetVMenu()
# quit fenrir
if upperCommandText.startswith(self.quitAppConst):
self.quitFenrir()
# define window # define window
if upperCommandText.startswith(self.defineWindowConst): if upperCommandText.startswith(self.defineWindowConst):
parameterText = commandText[len(self.defineWindowConst):] parameterText = commandText[len(self.defineWindowConst):]
@ -106,6 +110,8 @@ class remoteManager():
self.env['runtime']['vmenuManager'].setCurrMenu() self.env['runtime']['vmenuManager'].setCurrMenu()
def setClipboard(self, text = ''): def setClipboard(self, text = ''):
self.env['runtime']['memoryManager'].addValueToFirstIndex('clipboardHistory', text) self.env['runtime']['memoryManager'].addValueToFirstIndex('clipboardHistory', text)
def quitFenrir(self):
self.env['runtime']['eventManager'].stopMainEventLoop()
def defineWindow(self, windowText): def defineWindow(self, windowText):
start = {} start = {}
end = {} end = {}