7 Module implementing the bookmarks extension interface. |
7 Module implementing the bookmarks extension interface. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QObject, QProcess |
12 from PyQt4.QtCore import QProcess |
13 from PyQt4.QtGui import QDialog, QInputDialog |
13 from PyQt4.QtGui import QDialog, QInputDialog |
14 |
14 |
|
15 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
16 from ..HgDialog import HgDialog |
16 |
17 |
17 from .HgBookmarksListDialog import HgBookmarksListDialog |
18 from .HgBookmarksListDialog import HgBookmarksListDialog |
18 from .HgBookmarkDialog import HgBookmarkDialog |
19 from .HgBookmarkDialog import HgBookmarkDialog |
19 from .HgBookmarkRenameDialog import HgBookmarkRenameDialog |
20 from .HgBookmarkRenameDialog import HgBookmarkRenameDialog |
20 from .HgBookmarksInOutDialog import HgBookmarksInOutDialog |
21 from .HgBookmarksInOutDialog import HgBookmarksInOutDialog |
21 |
22 |
22 import Preferences |
23 import Preferences |
23 |
24 |
24 |
25 |
25 class Bookmarks(QObject): |
26 class Bookmarks(HgExtension): |
26 """ |
27 """ |
27 Class implementing the bookmarks extension interface. |
28 Class implementing the bookmarks extension interface. |
28 """ |
29 """ |
29 def __init__(self, vcs): |
30 def __init__(self, vcs): |
30 """ |
31 """ |
31 Constructor |
32 Constructor |
32 |
33 |
33 @param vcs reference to the Mercurial vcs object |
34 @param vcs reference to the Mercurial vcs object |
34 """ |
35 """ |
35 QObject.__init__(self, vcs) |
36 super().__init__(vcs) |
36 |
|
37 self.vcs = vcs |
|
38 |
37 |
39 self.bookmarksListDlg = None |
38 self.bookmarksListDlg = None |
40 self.bookmarksInOutDlg = None |
39 self.bookmarksInOutDlg = None |
41 self.bookmarksList = [] |
40 self.bookmarksList = [] |
42 |
41 |