Added code to save the editor split direction. 5_4_x

Tue, 29 Apr 2014 18:02:02 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 29 Apr 2014 18:02:02 +0200
branch
5_4_x
changeset 3548
509de9ee6cb8
parent 3543
be1eb4e203c0
child 3551
d608f3f42d71

Added code to save the editor split direction.
(grafted from c2a187c632097382b6fad9dea103ee7b8eb6954d)

Preferences/__init__.py file | annotate | diff | comparison | revisions
ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/Preferences/__init__.py	Sun Apr 27 19:20:08 2014 +0200
+++ b/Preferences/__init__.py	Tue Apr 29 18:02:02 2014 +0200
@@ -212,6 +212,7 @@
         "PreviewSplitterState": QByteArray(),
         "ShowSplash": True,
         "SingleCloseButton": False,
+        "SplitOrientationVertical": False,
         
         "PerformVersionCheck": 4,
         # 0 = off
@@ -1463,7 +1464,7 @@
                "SingleApplicationMode", "TabViewManagerFilenameOnly",
                "ShowFilePreview", "ShowFilePreviewJS", "ShowFilePreviewSSI",
                "CaptionShowsFilename", "ShowSplash",
-               "SingleCloseButton",
+               "SingleCloseButton", "SplitOrientationVertical",
                "UseProxy", "UseSystemProxy", "UseHttpProxyForAll",
                "TopLeftByLeft", "BottomLeftByLeft",
                "TopRightByRight", "BottomRightByRight",
--- a/ViewManager/ViewManager.py	Sun Apr 27 19:20:08 2014 +0200
+++ b/ViewManager/ViewManager.py	Tue Apr 29 18:02:02 2014 +0200
@@ -3514,6 +3514,9 @@
         self.prevSplitAct.setEnabled(False)
         self.previewAct.setEnabled(True)
         
+        self.splitOrientationAct.setChecked(
+            Preferences.getUI("SplitOrientationVertical"))
+        
     def initViewMenu(self):
         """
         Public method to create the View menu.
@@ -5687,6 +5690,7 @@
                 UI.PixmapCache.getIcon("remsplitVertical.png"))
             self.newDocumentSplitViewAct.setIcon(
                 UI.PixmapCache.getIcon("splitVertical.png"))
+        Preferences.setUI("SplitOrientationVertical", checked)
     
     def __previewEditor(self, checked):
         """

eric ide

mercurial