Helpviewer/Bookmarks/BookmarksMenu.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3003
cb43c34239b1
child 3060
5883ce99ee12
--- a/Helpviewer/Bookmarks/BookmarksMenu.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/Bookmarks/BookmarksMenu.py	Fri Oct 18 23:00:41 2013 +0200
@@ -22,8 +22,8 @@
     """
     Class implementing the bookmarks menu base class.
     
-    @signal openUrl(QUrl, str) emitted to open a URL with the given title in the
-        current tab
+    @signal openUrl(QUrl, str) emitted to open a URL with the given title in
+        the current tab
     @signal newUrl(QUrl, str) emitted to open a URL with the given title in a
         new tab
     """
@@ -132,22 +132,28 @@
         """
         act = self.actionAt(pos)
         
-        if act is not None and act.menu() is None and self.index(act).isValid():
+        if act is not None and \
+                act.menu() is None and \
+                self.index(act).isValid():
             menu = QMenu()
             v = act.data()
             
-            menuAction = menu.addAction(self.trUtf8("&Open"), self.__openBookmark)
+            menuAction = menu.addAction(
+                self.trUtf8("&Open"), self.__openBookmark)
             menuAction.setData(v)
-            menuAction = menu.addAction(self.trUtf8("Open in New &Tab\tCtrl+LMB"),
+            menuAction = menu.addAction(
+                self.trUtf8("Open in New &Tab\tCtrl+LMB"),
                 self.__openBookmarkInNewTab)
             menuAction.setData(v)
             menu.addSeparator()
             
-            menuAction = menu.addAction(self.trUtf8("&Remove"), self.__removeBookmark)
+            menuAction = menu.addAction(
+                self.trUtf8("&Remove"), self.__removeBookmark)
             menuAction.setData(v)
             menu.addSeparator()
             
-            menuAction = menu.addAction(self.trUtf8("&Properties..."), self.__edit)
+            menuAction = menu.addAction(
+                self.trUtf8("&Properties..."), self.__edit)
             menuAction.setData(v)
             
             execAct = menu.exec_(QCursor.pos())
@@ -196,15 +202,15 @@
         dlg = BookmarkPropertiesDialog(node)
         dlg.exec_()
 
-##########################################################################################
+##############################################################################
 
 
 class BookmarksMenuBarMenu(BookmarksMenu):
     """
     Class implementing a dynamically populated menu for bookmarks.
     
-    @signal openUrl(QUrl, str) emitted to open a URL with the given title in the
-        current tab
+    @signal openUrl(QUrl, str) emitted to open a URL with the given title in
+        the current tab
     """
     openUrl = pyqtSignal(QUrl, str)
     
@@ -227,7 +233,8 @@
         """
         import Helpviewer.HelpWindow
         
-        self.__bookmarksManager = Helpviewer.HelpWindow.HelpWindow.bookmarksManager()
+        self.__bookmarksManager = Helpviewer.HelpWindow.HelpWindow\
+            .bookmarksManager()
         self.setModel(self.__bookmarksManager.bookmarksModel())
         self.setRootIndex(self.__bookmarksManager.bookmarksModel()\
                             .nodeIndex(self.__bookmarksManager.menu()))
@@ -281,7 +288,8 @@
     
     def setInitialActions(self, actions):
         """
-        Public method to set the list of actions that should appear first in the menu.
+        Public method to set the list of actions that should appear first in
+        the menu.
         
         @param actions list of initial actions (list of QAction)
         """

eric ide

mercurial