Helpviewer/Bookmarks/BookmarksManager.py

changeset 2954
bf0215fe12d1
parent 2403
e3d7a861547c
child 3002
6ffc581f00f1
equal deleted inserted replaced
2953:703452a2876f 2954:bf0215fe12d1
110 self.bookmarksReloaded.emit() 110 self.bookmarksReloaded.emit()
111 111
112 def load(self): 112 def load(self):
113 """ 113 """
114 Public method to load the bookmarks. 114 Public method to load the bookmarks.
115
116 @exception RuntimeError raised to indicate an error loading the
117 bookmarks
115 """ 118 """
116 if self.__loaded: 119 if self.__loaded:
117 return 120 return
118 121
119 self.__loaded = True 122 self.__loaded = True
258 command = ChangeBookmarkCommand(self, node, newUrl, False) 261 command = ChangeBookmarkCommand(self, node, newUrl, False)
259 self.__commands.push(command) 262 self.__commands.push(command)
260 263
261 def setNodeChanged(self, node): 264 def setNodeChanged(self, node):
262 """ 265 """
263 Public method to signal changes of bookmarks other than title, URL or timestamp. 266 Public method to signal changes of bookmarks other than title, URL
267 or timestamp.
268
269 @param node reference to the bookmark (BookmarkNode)
264 """ 270 """
265 self.__saveTimer.changeOccurred() 271 self.__saveTimer.changeOccurred()
266 272
267 def setTimestamp(self, node, timestampType, timestamp): 273 def setTimestamp(self, node, timestampType, timestamp):
268 """ 274 """
269 Public method to set the URL of a bookmark. 275 Public method to set the URL of a bookmark.
270 276
271 @param node reference to the node to be changed (BookmarkNode) 277 @param node reference to the node to be changed (BookmarkNode)
272 @param timestampType type of the timestamp to set (BookmarkNode.TsAdded, 278 @param timestampType type of the timestamp to set
273 BookmarkNode.TsModified, BookmarkNode.TsVisited) 279 (BookmarkNode.TsAdded, BookmarkNode.TsModified,
280 BookmarkNode.TsVisited)
274 @param timestamp timestamp to set (QDateTime) 281 @param timestamp timestamp to set (QDateTime)
275 """ 282 """
276 if not self.__loaded: 283 if not self.__loaded:
277 return 284 return
278 285

eric ide

mercurial