diff options
author | avenjamin <avenjamin@gmail.com> | 2009-11-02 06:40:16 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-11-02 06:40:16 +0000 |
commit | 87099cc81ddec5c695f4a62fa3c69de228523c82 (patch) | |
tree | 29645406508c3da180007990131dcf57ebdbba9b /Source/TableDocument.m | |
parent | 7db6c4e18fb52c2e5ada02ad108ab6415a49843d (diff) | |
download | sequelpro-87099cc81ddec5c695f4a62fa3c69de228523c82.tar.gz sequelpro-87099cc81ddec5c695f4a62fa3c69de228523c82.tar.bz2 sequelpro-87099cc81ddec5c695f4a62fa3c69de228523c82.zip |
• Initial work to set the default view mode when connecting. Issue #249
• Organize constants into groups
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index c419bd1e..8847d103 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -2805,6 +2805,8 @@ [tableTabView selectTabViewItemAtIndex:0]; [mainToolbar setSelectedItemIdentifier:MAIN_TOOLBAR_TABLE_STRUCTURE]; [spHistoryControllerInstance updateHistoryEntries]; + + [prefs setInteger:SPStructureViewMode forKey:SPLastViewMode]; } - (IBAction)viewContent:(id)sender @@ -2819,6 +2821,8 @@ [tableTabView selectTabViewItemAtIndex:1]; [mainToolbar setSelectedItemIdentifier:MAIN_TOOLBAR_TABLE_CONTENT]; [spHistoryControllerInstance updateHistoryEntries]; + + [prefs setInteger:SPContentViewMode forKey:SPLastViewMode]; } - (IBAction)viewQuery:(id)sender @@ -2843,6 +2847,8 @@ // Set the focus on the text field if no query has been run if (![[customQueryTextView string] length]) [tableWindow makeFirstResponder:customQueryTextView]; + + [prefs setInteger:SPQueryEditorViewMode forKey:SPLastViewMode]; } - (IBAction)viewStatus:(id)sender @@ -2864,6 +2870,8 @@ [tableTabView selectTabViewItemAtIndex:3]; [mainToolbar setSelectedItemIdentifier:MAIN_TOOLBAR_TABLE_INFO]; [spHistoryControllerInstance updateHistoryEntries]; + + [prefs setInteger:SPTableInfoViewMode forKey:SPLastViewMode]; } - (IBAction)viewRelations:(id)sender @@ -2885,6 +2893,8 @@ [tableTabView selectTabViewItemAtIndex:4]; [mainToolbar setSelectedItemIdentifier:MAIN_TOOLBAR_TABLE_RELATIONS]; [spHistoryControllerInstance updateHistoryEntries]; + + [prefs setInteger:SPRelationsViewMode forKey:SPLastViewMode]; } |