replaces namespace fenrir with fenrirscreenreader

This commit is contained in:
chrys
2018-03-21 11:10:28 +01:00
parent 40da178136
commit a8a0f7cc29
241 changed files with 11181 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core import debug
class applicationManager():
def __init__(self):
pass
def initialize(self, environment):
self.env = environment
def shutdown(self):
pass
def getCurrentApplication(self):
currApp = self.env['screen']['newApplication'].upper()
if not currApp:
currApp == 'DEFAULT'
if currApp == '':
currApp == 'DEFAULT'
return currApp
def getPrevApplication(self):
prevApp = self.env['screen']['oldApplication'].upper()
if not prevApp:
prevApp == 'DEFAULT'
if prevApp == '':
prevApp == 'DEFAULT'
return prevApp
def isApplicationChange(self):
return self.env['screen']['oldApplication'] != self.env['screen']['newApplication']