--- a/Helpviewer/Bookmarks/AddBookmarkDialog.py Sun Mar 25 14:01:25 2012 +0200 +++ b/Helpviewer/Bookmarks/AddBookmarkDialog.py Sun Mar 25 16:22:29 2012 +0200 @@ -85,7 +85,7 @@ super().__init__(parent) self.setupUi(self) - self.__bookmarksManager = None + self.__bookmarksManager = bookmarksManager self.__addedNode = None self.__addFolder = False @@ -147,6 +147,22 @@ """ return self.nameEdit.text() + def setDescription(self, description): + """ + Public method to set the description of the new bookmark. + + @param description description of the bookamrk (string) + """ + self.descriptionEdit.setPlainText(description) + + def description(self): + """ + Public method to get the description of the bookmark. + + @return description of the bookamrk (string) + """ + return self.descriptionEdit.toPlainText() + def setCurrentIndex(self, idx): """ Public method to set the current index. @@ -222,6 +238,7 @@ bookmark.title = self.nameEdit.text() if not self.__addFolder: bookmark.url = self.addressEdit.text() + bookmark.desc = self.descriptionEdit.toPlainText() self.__bookmarksManager.addBookmark(parent, bookmark) self.__addedNode = bookmark