def test_load_profile(self): serviceRunner = ServiceRunner.ServiceRunner() widgetRunner = WidgetRunner.WidgetRunner(parent=None, serviceRunner=serviceRunner) profileManager = ProfileManager.ProfileManager(serviceRunner, widgetRunner) print(profileManager.all()) profileManager.load("Default") print(profileManager.current)
def __init__(self): super(SmartestMirror, self).__init__() self.initUI() self.serviceRunner = ServiceRunner.ServiceRunner() self.widgetRunner = WidgetRunner.WidgetRunner(self, self.serviceRunner) self.serviceRunner.init(self, self.widgetRunner) self.widgetRunner.init() self.profileManager = ProfileManager.ProfileManager( self.serviceRunner, self.widgetRunner)
def signalCommand(g): if not g: pass else: c = ProfileManager.getCommand(g) CommandHandler.execute(c)
def editMapping(oldGesture,newGesture,newMacro): ProfileManager.editMapping(sanitize(oldGesture),sanitize(newGesture),sanitize(newMacro))
def editMacro(oldMacro,newMacro,description,script): ProfileManager.editCommand(sanitize(oldMacro),sanitize(newMacro),sanitize(description),sanitize(script))
def createMapping(): ProfileManager.createMapping() def removeMapping(gesturename): ProfileManager.removeMapping(sanitize(gesturename))
def removeMapping(gesturename): ProfileManager.removeMapping(sanitize(gesturename)) def editMapping(oldGesture,newGesture,newMacro):
def removeGesture(name): ProfileManager.removeGesture(sanitize(name)) def popError(): return ProfileManager.popError()
def getCustomGestures(): return ProfileManager.getCustomGestures() def getListOfMacros(): return ProfileManager.getCommands()
def removeProfile(profilename): ProfileManager.removeProfile(sanitize(profilename)) def setProfile(profilename): ProfileManager.setCurrentProfile(sanitize(profilename))
def setProfile(profilename): ProfileManager.setCurrentProfile(sanitize(profilename)) def renameProfile(old,new): ProfileManager.renameProfile(sanitize(old),sanitize(new))
def setCurrentProfile(newProfile): ProfileManager.setCurrentProfile(sanitize(newProfile)) def createProfile(profilename): ProfileManager.createProfile(sanitize(profilename))
def createProfile(profilename): ProfileManager.createProfile(sanitize(profilename)) def removeProfile(profilename): ProfileManager.removeProfile(sanitize(profilename))
def getCurrentProfile(): return ProfileManager.getCurrentProfile() def setCurrentProfile(newProfile): ProfileManager.setCurrentProfile(sanitize(newProfile))
def getListOfProfiles(): return ProfileManager.getProfiles() def getCurrentProfile(): return ProfileManager.getCurrentProfile()
def getCustomMacros(): return ProfileManager.getCustomCommands() def getListOfProfiles(): return ProfileManager.getProfiles()
def createGesture(name,description,representation): ProfileManager.createGesture(sanitize(name),sanitize(description),sanitize(representation))
def getListOfMappings(): return ProfileManager.getMappings() def getListOfGestures(): return ProfileManager.getGestures()
def createMacro(): ProfileManager.createCommand() def removeGesture(name): ProfileManager.removeGesture(sanitize(name))
def removeMacro(name): ProfileManager.removeMacro(sanitize(name)) def createMapping(): ProfileManager.createMapping()
def renameProfile(old,new): ProfileManager.renameProfile(sanitize(old),sanitize(new)) def removeMacro(name): ProfileManager.removeMacro(sanitize(name))
def getListOfGestures(): return ProfileManager.getGestures() def getCustomGestures(): return ProfileManager.getCustomGestures()