4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to manage bookmarks. |
7 Module implementing a dialog to manage bookmarks. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSignal, Qt, QUrl, QModelIndex |
12 from PyQt4.QtCore import pyqtSignal, Qt, QUrl, QModelIndex |
11 from PyQt4.QtGui import QDialog, QFontMetrics, QMenu, QCursor, QApplication |
13 from PyQt4.QtGui import QDialog, QFontMetrics, QMenu, QCursor, QApplication |
12 |
14 |
13 from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel |
15 from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel |
30 Constructor |
32 Constructor |
31 |
33 |
32 @param parent reference to the parent widget (QWidget |
34 @param parent reference to the parent widget (QWidget |
33 @param manager reference to the bookmarks manager object (BookmarksManager) |
35 @param manager reference to the bookmarks manager object (BookmarksManager) |
34 """ |
36 """ |
35 super().__init__(parent) |
37 super(BookmarksDialog, self).__init__(parent) |
36 self.setupUi(self) |
38 self.setupUi(self) |
37 |
39 |
38 self.__bookmarksManager = manager |
40 self.__bookmarksManager = manager |
39 if self.__bookmarksManager is None: |
41 if self.__bookmarksManager is None: |
40 import Helpviewer.HelpWindow |
42 import Helpviewer.HelpWindow |