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