def cycle (self, event) : vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : return vd.cycleVersion()
def sequenceAll (self, event) : deb ("tileAll") vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : return if (vd.size() > 1) : sequence = vd.createVersionGroup (range(vd.size()), "Sequence") rv.commands.setViewNode (sequence)
def tileLastTwo (self, event) : deb ("compareLastTwo") vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : return if (vd.size() > 1 and vd._current != vd._last) : layout = vd.createVersionGroup ([vd._current, vd._last], "Layout") rv.commands.setViewNode (layout)
def enableIfHasVersionData(self) : deb ("enableIfHasVersionData") vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : deb (" empty") return rv.commands.DisabledMenuState else : deb (" not empty") return rv.commands.NeutralMenuState
def tileAll (self, event) : deb ("tileAll") vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : return if (vd.size() > 1) : layout = vd.createVersionGroup (range(vd.size()), "Layout") rv.commands.setViewNode (layout)
def compareLastTwo (self, event) : deb ("compareLastTwo") vd = api.getVersionDataFromSource() if (not vd or vd.empty()) : return if (vd.size() > 1 and vd._current != vd._last) : stack = vd.createVersionGroup ([vd._current, vd._last], "Stack") rv.commands.setViewNode (stack) rv.runtime.eval ("rvui.toggleWipe()", ["rvui"])