Ejemplo n.º 1
0
    def load(self, import_=False):
        if self.abortOnModified():
            return

        if import_:
            path = xbmcgui.Dialog().browse(1, T(32521, 'Select File'), 'files',
                                           '*.cvseq', False, False)
            if not path:
                return
        else:
            selection = cvutil.selectSequence()

            if not selection:
                return

            path = selection['path']

        self._load(path)

        sep = cinemavision.util.getSep(path)

        self.path, name = path.rsplit(sep, 1)
        self.path += sep
        self.setName(name.rsplit('.', 1)[0])

        self.saveDefault()
Ejemplo n.º 2
0
    def selectSequence(self):
        selection = cvutil.selectSequence()
        if not selection:
            return

        self.sequencePath = selection['path']
        self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
Ejemplo n.º 3
0
    def selectSequence(self):
        selection = cvutil.selectSequence(active=False, for_dialog=True)
        if not selection:
            return

        self.sequencePath = selection['path']
        self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
Ejemplo n.º 4
0
    def selectSequence(self):
        selection = cvutil.selectSequence()
        if not selection:
            return

        self.sequencePath = selection['path']
        self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
Ejemplo n.º 5
0
    def load(self, import_=False):
        if self.abortOnModified():
            return

        if import_:
            path = xbmcgui.Dialog().browse(1, T(32521, 'Select File'), 'files', '*.cvseq', False, False)
            if not path:
                return
        else:
            selection = cvutil.selectSequence()

            if not selection:
                return

            path = selection['path']

        self._load(path)

        sep = cinemavision.util.getSep(path)

        self.path, name = path.rsplit(sep, 1)
        self.path += sep
        self.setName(name.rsplit('.', 1)[0])

        self.saveDefault()
Ejemplo n.º 6
0
def setDefaultSequence(setting):
    import cvutil

    selection = cvutil.selectSequence()
    if not selection:
        return

    kodiutil.setSetting(setting, selection['name'])