aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-18 22:46:02 +0000
committerrowanbeentje <rowan@beent.je>2010-04-18 22:46:02 +0000
commitd432919237a6ed22798851a112e8c49e5086b9ed (patch)
treeda254dda343dad711c6d1056cf4ea2a62734c4b5 /Source/SPConstants.m
parent932fdc78e4c6739371edf3629a11a0659beb5c1e (diff)
downloadsequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.tar.gz
sequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.tar.bz2
sequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.zip
- Add a new couldCommitCurrentViewActions method to TableDocument, and standardise current view-commit-checks to use that
- Add checking of that status to history navigation (fixing http://spbug.com/l/127 ) and window closing (fixing http://spbug.com/lr/263 ) - Improve thread safety/deferred actions in TableContent
Diffstat (limited to 'Source/SPConstants.m')
-rw-r--r--Source/SPConstants.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index da9e6b10..11d3a5fe 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -189,6 +189,7 @@ NSString *SPMainToolbarTableInfo = @"SwitchToTableInfoToolbarIte
NSString *SPMainToolbarTableRelations = @"SwitchToTableRelationsToolbarItemIdentifier";
NSString *SPMainToolbarTableTriggers = @"SwitchToTableTriggersToolbarItemIdentifier";
NSString *SPMainToolbarUserManager = @"SwitchToUserManagerToolbarItemIdentifier";
+NSString **SPViewModeToMainToolbarMap[] = {nil, &SPMainToolbarTableStructure, &SPMainToolbarTableContent, &SPMainToolbarCustomQuery, &SPMainToolbarTableInfo, &SPMainToolbarTableRelations, &SPMainToolbarTableTriggers};
// Preferences toolbar
NSString *SPPreferenceToolbarGeneral = @"SPPreferenceToolbarGeneral";