Example #1
0
 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)
Example #2
0
    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)
Example #3
0
def signalCommand(g):
    if not g:
        pass
    else:
        c = ProfileManager.getCommand(g)
        CommandHandler.execute(c)
Example #4
0
def editMapping(oldGesture,newGesture,newMacro):
    ProfileManager.editMapping(sanitize(oldGesture),sanitize(newGesture),sanitize(newMacro))
Example #5
0
def editMacro(oldMacro,newMacro,description,script):
    ProfileManager.editCommand(sanitize(oldMacro),sanitize(newMacro),sanitize(description),sanitize(script))
Example #6
0
def createMapping(): ProfileManager.createMapping()
def removeMapping(gesturename): ProfileManager.removeMapping(sanitize(gesturename))
Example #7
0
def removeMapping(gesturename): ProfileManager.removeMapping(sanitize(gesturename))
def editMapping(oldGesture,newGesture,newMacro):
Example #8
0
def removeGesture(name): ProfileManager.removeGesture(sanitize(name))
def popError(): return ProfileManager.popError()
Example #9
0
def getCustomGestures(): return ProfileManager.getCustomGestures()
def getListOfMacros(): return ProfileManager.getCommands()
Example #10
0
def removeProfile(profilename): ProfileManager.removeProfile(sanitize(profilename))
def setProfile(profilename): ProfileManager.setCurrentProfile(sanitize(profilename))
Example #11
0
def setProfile(profilename): ProfileManager.setCurrentProfile(sanitize(profilename))
def renameProfile(old,new): ProfileManager.renameProfile(sanitize(old),sanitize(new))
Example #12
0
def setCurrentProfile(newProfile): ProfileManager.setCurrentProfile(sanitize(newProfile))
def createProfile(profilename): ProfileManager.createProfile(sanitize(profilename))
Example #13
0
def createProfile(profilename): ProfileManager.createProfile(sanitize(profilename))
def removeProfile(profilename): ProfileManager.removeProfile(sanitize(profilename))
Example #14
0
def getCurrentProfile(): return ProfileManager.getCurrentProfile()
def setCurrentProfile(newProfile): ProfileManager.setCurrentProfile(sanitize(newProfile))
Example #15
0
def getListOfProfiles(): return ProfileManager.getProfiles()
def getCurrentProfile(): return ProfileManager.getCurrentProfile()
Example #16
0
def getCustomMacros(): return ProfileManager.getCustomCommands()
def getListOfProfiles(): return ProfileManager.getProfiles()
Example #17
0
def createGesture(name,description,representation):
    ProfileManager.createGesture(sanitize(name),sanitize(description),sanitize(representation))
Example #18
0
def getListOfMappings(): return ProfileManager.getMappings()
def getListOfGestures(): return ProfileManager.getGestures()
Example #19
0
def createMacro(): ProfileManager.createCommand()
def removeGesture(name): ProfileManager.removeGesture(sanitize(name))
Example #20
0
def removeMacro(name): ProfileManager.removeMacro(sanitize(name))
def createMapping(): ProfileManager.createMapping()
Example #21
0
def renameProfile(old,new): ProfileManager.renameProfile(sanitize(old),sanitize(new))
def removeMacro(name): ProfileManager.removeMacro(sanitize(name))
Example #22
0
def getListOfGestures(): return ProfileManager.getGestures()
def getCustomGestures(): return ProfileManager.getCustomGestures()