aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-28 12:43:26 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-28 12:43:26 +0000
commit30a49adb59f7770c9fc7739c145389447da8bc39 (patch)
treec6e8c18cceb9a5adc66e5a138f6970e6d4d171a8 /Source/SPConstants.h
parentffff0ddc015d77b4e38894b7e823d81854f90491 (diff)
downloadsequelpro-30a49adb59f7770c9fc7739c145389447da8bc39.tar.gz
sequelpro-30a49adb59f7770c9fc7739c145389447da8bc39.tar.bz2
sequelpro-30a49adb59f7770c9fc7739c145389447da8bc39.zip
Replace the multiple occurrences of hard coded toolbar identifiers for the main toolbar with constants.
Diffstat (limited to 'Source/SPConstants.h')
-rw-r--r--Source/SPConstants.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 4830351c..1a56e000 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -42,6 +42,19 @@
#define SEQUEL_PRO_DOCS_URL @"http://www.sequelpro.com/docs"
#define SEQUEL_PRO_CONTACT_URL @"http://www.sequelpro.com/docs/Contact_the_developers"
+// Main toolbar constants
+#define MAIN_TOOLBAR_DATABASE_SELECTION @"DatabaseSelectToolbarItemIdentifier"
+#define MAIN_TOOLBAR_HISTORY_NAVIGATION @"HistoryNavigationToolbarItemIdentifier"
+#define MAIN_TOOLBAR_SHOW_CONSOLE @"ShowConsoleIdentifier"
+#define MAIN_TOOLBAR_CLEAR_CONSOLE @"ClearConsoleIdentifier"
+#define MAIN_TOOLBAR_FLUSH_PRIVILEGES @"FlushPrivilegesIdentifier"
+#define MAIN_TOOLBAR_TABLE_STRUCTURE @"SwitchToTableStructureToolbarItemIdentifier"
+#define MAIN_TOOLBAR_TABLE_CONTENT @"SwitchToTableContentToolbarItemIdentifier"
+#define MAIN_TOOLBAR_CUSTOM_QUERY @"SwitchToRunQueryToolbarItemIdentifier"
+#define MAIN_TOOLBAR_TABLE_INFO @"SwitchToTableInfoToolbarItemIdentifier"
+#define MAIN_TOOLBAR_TABLE_RELATIONS @"SwitchToTableRelationsToolbarItemIdentifier"
+#define MAIN_TOOLBAR_USER_MANAGER @"SwitchToUserManagerToolbarItemIdentifier"
+
// Preference key constants
extern NSString *SPDefaultEncoding;
extern NSString *SPUseMonospacedFonts;