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)
示例#3
0
 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 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
示例#5
0
 def __open(self, item):
     row = self.__historyListBox.row(item)
     rev = self.__historyRevs[row]
     showDocument(struct.RevLink(rev))
示例#6
0
 def __open(self, item):
     row = self.__historyListBox.row(item)
     rev = self.__historyRevs[row]
     showDocument(struct.RevLink(rev))