def itemOpen(self, link, executable=None, browseHint=True, state={}): if browseHint: self.__history.push(link, state) return True else: utils.showDocument(link, executable=executable, referrer=self.__history.currentItem().link()) return False
def __itemOpen(self, link, executable): if self.viewWidget().doc(): ref = struct.DocLink(self.viewWidget().doc(), autoUpdate=False) elif self.viewWidget().rev(): ref = struct.RevLink(self.viewWidget().rev()) else: ref = None utils.showDocument(link, executable=executable, referrer=ref)
def __open(self, item): row = self.__historyListBox.row(item) rev = self.__historyRevs[row] showDocument(struct.RevLink(rev))