Helpviewer/UrlBar/BookmarkInfoDialog.py

changeset 2403
e3d7a861547c
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 3160
209a07d7e401
equal deleted inserted replaced
2402:304fcefd3b04 2403:e3d7a861547c
9 9
10 from PyQt4.QtCore import pyqtSlot 10 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog, QFont 11 from PyQt4.QtGui import QDialog, QFont
12 12
13 from .Ui_BookmarkInfoDialog import Ui_BookmarkInfoDialog 13 from .Ui_BookmarkInfoDialog import Ui_BookmarkInfoDialog
14
15 import Helpviewer.HelpWindow
16 14
17 import UI.PixmapCache 15 import UI.PixmapCache
18 16
19 17
20 class BookmarkInfoDialog(QDialog, Ui_BookmarkInfoDialog): 18 class BookmarkInfoDialog(QDialog, Ui_BookmarkInfoDialog):
48 @pyqtSlot() 46 @pyqtSlot()
49 def on_removeButton_clicked(self): 47 def on_removeButton_clicked(self):
50 """ 48 """
51 Private slot to remove the current bookmark. 49 Private slot to remove the current bookmark.
52 """ 50 """
51 import Helpviewer.HelpWindow
53 Helpviewer.HelpWindow.HelpWindow.bookmarksManager()\ 52 Helpviewer.HelpWindow.HelpWindow.bookmarksManager()\
54 .removeBookmark(self.__bookmark) 53 .removeBookmark(self.__bookmark)
55 self.close() 54 self.close()
56 55
57 def accept(self): 56 def accept(self):
58 """ 57 """
59 Public slot handling the acceptance of the dialog. 58 Public slot handling the acceptance of the dialog.
60 """ 59 """
61 if self.__bookmark is not None and \ 60 if self.__bookmark is not None and \
62 self.titleEdit.text() != self.__bookmark.title: 61 self.titleEdit.text() != self.__bookmark.title:
62 import Helpviewer.HelpWindow
63 Helpviewer.HelpWindow.HelpWindow.bookmarksManager()\ 63 Helpviewer.HelpWindow.HelpWindow.bookmarksManager()\
64 .setTitle(self.__bookmark, self.titleEdit.text()) 64 .setTitle(self.__bookmark, self.titleEdit.text())
65 self.close() 65 self.close()

eric ide

mercurial