Tue, 29 Apr 2014 18:02:02 +0200
Added code to save the editor split direction.
Preferences/__init__.py | file | annotate | diff | comparison | revisions | |
ViewManager/ViewManager.py | file | annotate | diff | comparison | revisions |
--- a/Preferences/__init__.py Mon Apr 28 19:25:39 2014 +0200 +++ b/Preferences/__init__.py Tue Apr 29 18:02:02 2014 +0200 @@ -163,6 +163,7 @@ "PreviewSplitterState": QByteArray(), "ShowSplash": True, "SingleCloseButton": False, + "SplitOrientationVertical": False, "PerformVersionCheck": 4, # 0 = off @@ -1438,7 +1439,7 @@ "SingleApplicationMode", "TabViewManagerFilenameOnly", "ShowFilePreview", "ShowFilePreviewJS", "ShowFilePreviewSSI", "CaptionShowsFilename", "ShowSplash", - "SingleCloseButton", + "SingleCloseButton", "SplitOrientationVertical", "UseProxy", "UseSystemProxy", "UseHttpProxyForAll", "TopLeftByLeft", "BottomLeftByLeft", "TopRightByRight", "BottomRightByRight",
--- a/ViewManager/ViewManager.py Mon Apr 28 19:25:39 2014 +0200 +++ b/ViewManager/ViewManager.py Tue Apr 29 18:02:02 2014 +0200 @@ -3516,6 +3516,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. @@ -5706,6 +5709,7 @@ UI.PixmapCache.getIcon("remsplitVertical.png")) self.newDocumentSplitViewAct.setIcon( UI.PixmapCache.getIcon("splitVertical.png")) + Preferences.setUI("SplitOrientationVertical", checked) def __previewEditor(self, checked): """