Plugins/ViewManagerPlugins/Tabview/Tabview.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d Plugins/ViewManagerPlugins/Tabview/Tabview.py
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Fri Nov 01 15:48:48 2013 +0100
@@ -232,20 +232,21 @@
         Private method to initialize the tab context menu.
         """
         self.__menu = QMenu(self)
-        self.leftMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("1leftarrow.png"),
+        self.leftMenuAct = self.__menu.addAction(
+            UI.PixmapCache.getIcon("1leftarrow.png"),
             self.trUtf8('Move Left'), self.__contextMenuMoveLeft)
-        self.rightMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("1rightarrow.png"),
+        self.rightMenuAct = self.__menu.addAction(
+            UI.PixmapCache.getIcon("1rightarrow.png"),
             self.trUtf8('Move Right'), self.__contextMenuMoveRight)
-        self.firstMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("2leftarrow.png"),
+        self.firstMenuAct = self.__menu.addAction(
+            UI.PixmapCache.getIcon("2leftarrow.png"),
             self.trUtf8('Move First'), self.__contextMenuMoveFirst)
-        self.lastMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("2rightarrow.png"),
+        self.lastMenuAct = self.__menu.addAction(
+            UI.PixmapCache.getIcon("2rightarrow.png"),
             self.trUtf8('Move Last'), self.__contextMenuMoveLast)
         self.__menu.addSeparator()
-        self.__menu.addAction(UI.PixmapCache.getIcon("tabClose.png"),
+        self.__menu.addAction(
+            UI.PixmapCache.getIcon("tabClose.png"),
             self.trUtf8('Close'), self.__contextMenuClose)
         self.closeOthersMenuAct = self.__menu.addAction(
             UI.PixmapCache.getIcon("tabCloseOther.png"),
@@ -253,19 +254,22 @@
         self.__menu.addAction(
             self.trUtf8('Close All'), self.__contextMenuCloseAll)
         self.__menu.addSeparator()
-        self.saveMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("fileSave.png"),
+        self.saveMenuAct = self.__menu.addAction(
+            UI.PixmapCache.getIcon("fileSave.png"),
             self.trUtf8('Save'), self.__contextMenuSave)
-        self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveAs.png"),
+        self.__menu.addAction(
+            UI.PixmapCache.getIcon("fileSaveAs.png"),
             self.trUtf8('Save As...'), self.__contextMenuSaveAs)
-        self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveAll.png"),
+        self.__menu.addAction(
+            UI.PixmapCache.getIcon("fileSaveAll.png"),
             self.trUtf8('Save All'), self.__contextMenuSaveAll)
         self.__menu.addSeparator()
-        self.openRejectionsMenuAct = \
-            self.__menu.addAction(self.trUtf8("Open 'rejection' file"),
+        self.openRejectionsMenuAct = self.__menu.addAction(
+            self.trUtf8("Open 'rejection' file"),
             self.__contextMenuOpenRejections)
         self.__menu.addSeparator()
-        self.__menu.addAction(UI.PixmapCache.getIcon("print.png"),
+        self.__menu.addAction(
+            UI.PixmapCache.getIcon("print.png"),
             self.trUtf8('Print'), self.__contextMenuPrintFile)
         self.__menu.addSeparator()
         self.copyPathAct = self.__menu.addAction(
@@ -510,8 +514,8 @@
         @param targetIndex index position to place it to (integer)
         """
         editor = self.widget(sourceIndex).getEditor()
-        newEditor, assembly = self.vm.cloneEditor(editor, editor.getFileType(),
-                                        editor.getFileName())
+        newEditor, assembly = self.vm.cloneEditor(
+            editor, editor.getFileType(), editor.getFileName())
         self.vm.insertView(assembly, self, targetIndex,
                            editor.getFileName(), editor.getNoName())
         

eric ide

mercurial