aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2009-11-02 06:40:16 +0000
committeravenjamin <avenjamin@gmail.com>2009-11-02 06:40:16 +0000
commit87099cc81ddec5c695f4a62fa3c69de228523c82 (patch)
tree29645406508c3da180007990131dcf57ebdbba9b /Source/SPConstants.m
parent7db6c4e18fb52c2e5ada02ad108ab6415a49843d (diff)
downloadsequelpro-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/SPConstants.m')
-rw-r--r--Source/SPConstants.m93
1 files changed, 57 insertions, 36 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index cec83d44..5e88ab0d 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -26,9 +26,19 @@
#import "SPConstants.h"
// Preference key constants
+// General Prefpane
+NSString *SPDefaultFavorite = @"DefaultFavorite";
+NSString *SPSelectLastFavoriteUsed = @"SelectLastFavoriteUsed";
+NSString *SPLastFavoriteIndex = @"LastFavoriteIndex";
+NSString *SPAutoConnectToDefault = @"AutoConnectToDefault";
+NSString *SPDefaultViewMode = @"DefaultViewMode";
+NSString *SPLastViewMode = @"LastViewMode";
NSString *SPDefaultEncoding = @"DefaultEncoding";
NSString *SPUseMonospacedFonts = @"UseMonospacedFonts";
NSString *SPDisplayTableViewVerticalGridlines = @"DisplayTableViewVerticalGridlines";
+NSString *SPCustomQueryMaxHistoryItems = @"CustomQueryMaxHistoryItems";
+
+// Tables Prefpane
NSString *SPReloadAfterAddingRow = @"ReloadAfterAddingRow";
NSString *SPReloadAfterEditingRow = @"ReloadAfterEditingRow";
NSString *SPReloadAfterRemovingRow = @"ReloadAfterRemovingRow";
@@ -38,61 +48,72 @@ NSString *SPNewFieldsAllowNulls = @"NewFieldsAllowNulls";
NSString *SPLimitResults = @"LimitResults";
NSString *SPLimitResultsValue = @"LimitResultsValue";
NSString *SPNullValue = @"NullValue";
-NSString *SPShowNoAffectedRowsError = @"ShowNoAffectedRowsError";
+
+// Favorites Prefpane
+NSString *SPFavorites = @"favorites";
+
+// Notifications Prefpane
NSString *SPGrowlEnabled = @"GrowlEnabled";
+NSString *SPShowNoAffectedRowsError = @"ShowNoAffectedRowsError";
+NSString *SPConsoleEnableLogging = @"ConsoleEnableLogging";
+NSString *SPConsoleEnableInterfaceLogging = @"ConsoleEnableInterfaceLogging";
+NSString *SPConsoleEnableCustomQueryLogging = @"ConsoleEnableCustomQueryLogging";
+NSString *SPConsoleEnableImportExportLogging = @"ConsoleEnableImportExportLogging";
+NSString *SPConsoleEnableErrorLogging = @"ConsoleEnableErrorLogging";
+
+// Network Prefpane
NSString *SPConnectionTimeoutValue = @"ConnectionTimeoutValue";
NSString *SPUseKeepAlive = @"UseKeepAlive";
NSString *SPKeepAliveInterval = @"KeepAliveInterval";
-NSString *SPEditInSheetEnabled = @"EditInSheetEnabled";
-NSString *SPAutoConnectToDefault = @"AutoConnectToDefault";
-NSString *SPQueryFavoriteReplacesContent = @"QueryFavoriteReplacesContent";
-NSString *SPQueryHistoryReplacesContent = @"QueryHistoryReplacesContent";
+
+// Editor Prefpane
NSString *SPCustomQueryEditorFont = @"CustomQueryEditorFont";
+NSString *SPCustomQueryEditorTextColor = @"CustomQueryEditorTextColor";
NSString *SPCustomQueryEditorBackgroundColor = @"CustomQueryEditorBackgroundColor";
-NSString *SPCustomQueryEditorBacktickColor = @"CustomQueryEditorBacktickColor";
+NSString *SPCustomQueryEditorCaretColor = @"CustomQueryEditorCaretColor";
NSString *SPCustomQueryEditorCommentColor = @"CustomQueryEditorCommentColor";
+NSString *SPCustomQueryEditorSQLKeywordColor = @"CustomQueryEditorSQLKeywordColor";
NSString *SPCustomQueryEditorNumericColor = @"CustomQueryEditorNumericColor";
NSString *SPCustomQueryEditorQuoteColor = @"CustomQueryEditorQuoteColor";
-NSString *SPCustomQueryEditorSQLKeywordColor = @"CustomQueryEditorSQLKeywordColor";
-NSString *SPCustomQueryEditorTextColor = @"CustomQueryEditorTextColor";
-NSString *SPCustomQueryEditorHighlightQueryColor = @"CustomQueryEditorHighlightQueryColor";
-NSString *SPCustomQueryEditorCaretColor = @"CustomQueryEditorCaretColor";
+NSString *SPCustomQueryEditorBacktickColor = @"CustomQueryEditorBacktickColor";
NSString *SPCustomQueryEditorVariableColor = @"CustomQueryEditorVariableColor";
-NSString *SPCustomQueryHighlightCurrentQuery = @"CustomQueryHighlightCurrentQuery";
+NSString *SPCustomQueryEditorHighlightQueryColor = @"CustomQueryEditorHighlightQueryColor";
NSString *SPCustomQueryAutoIndent = @"CustomQueryAutoIndent";
NSString *SPCustomQueryAutoPairCharacters = @"CustomQueryAutoPairCharacters";
NSString *SPCustomQueryAutoUppercaseKeywords = @"CustomQueryAutoUppercaseKeywords";
NSString *SPCustomQueryUpdateAutoHelp = @"CustomQueryUpdateAutoHelp";
NSString *SPCustomQueryAutoHelpDelay = @"CustomQueryAutoHelpDelay";
-NSString *SPCustomQueryMaxHistoryItems = @"CustomQueryMaxHistoryItems";
-NSString *SPLastSQLFileEncoding = @"lastSqlFileEncoding";
-NSString *SPSelectLastFavoriteUsed = @"SelectLastFavoriteUsed";
-NSString *SPLastFavoriteIndex = @"LastFavoriteIndex";
-NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollapsed";
-NSString *SPConsoleEnableLogging = @"ConsoleEnableLogging";
-NSString *SPConsoleEnableInterfaceLogging = @"ConsoleEnableInterfaceLogging";
-NSString *SPConsoleEnableCustomQueryLogging = @"ConsoleEnableCustomQueryLogging";
-NSString *SPConsoleEnableImportExportLogging = @"ConsoleEnableImportExportLogging";
-NSString *SPConsoleEnableErrorLogging = @"ConsoleEnableErrorLogging";
-NSString *SPConsoleShowTimestamps = @"ConsoleShowTimestamps";
-NSString *SPConsoleShowSelectsAndShows = @"ConsoleShowSelectsAndShows";
+NSString *SPCustomQueryHighlightCurrentQuery = @"CustomQueryHighlightCurrentQuery";
+
+// AutoUpdate Prefpane
+NSString *SPLastUsedVersion = @"LastUsedVersion";
+
+// GUI Prefs
NSString *SPConsoleShowHelps = @"ConsoleShowHelps";
-NSString *SPPrintBackground = @"PrintBackground";
-NSString *SPPrintImagePreviews = @"PrintImagePreviews";
-NSString *SPContentFilters = @"ContentFilters";
-NSString *SPCSVImportFieldTerminator = @"CSVImportFieldTerminator";
-NSString *SPCSVImportLineTerminator = @"CSVImportLineTerminator";
+NSString *SPConsoleShowSelectsAndShows = @"ConsoleShowSelectsAndShows";
+NSString *SPConsoleShowTimestamps = @"ConsoleShowTimestamps";
+NSString *SPEditInSheetEnabled = @"EditInSheetEnabled";
+NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollapsed";
+NSString *SPTableColumnWidths = @"tableColumnWidths";
+
+// Import
NSString *SPCSVImportFieldEnclosedBy = @"CSVImportFieldEnclosedBy";
NSString *SPCSVImportFieldEscapeCharacter = @"CSVImportFieldEscapeCharacter";
+NSString *SPCSVImportFieldTerminator = @"CSVImportFieldTerminator";
NSString *SPCSVImportFirstLineIsHeader = @"CSVImportFirstLineIsHeader";
-NSString *SPLastUsedVersion = @"LastUsedVersion";
+NSString *SPCSVImportLineTerminator = @"CSVImportLineTerminator";
+
+// Misc
+NSString *SPContentFilters = @"ContentFilters";
+NSString *SPDocumentTaskEndNotification = @"DocumentTaskEnded";
+NSString *SPDocumentTaskStartNotification = @"DocumentTaskStarted";
NSString *SPFieldEditorSheetFont = @"FieldEditorSheetFont";
-NSString *SPQuickLookTypes = @"QuickLookTypes";
+NSString *SPLastSQLFileEncoding = @"lastSqlFileEncoding";
+NSString *SPNoBOMforSQLdumpFile = @"NoBOMforSQLdumpFile";
+NSString *SPPrintBackground = @"PrintBackground";
+NSString *SPPrintImagePreviews = @"PrintImagePreviews";
NSString *SPQueryFavorites = @"queryFavorites";
-NSString *SPFavorites = @"favorites";
-NSString *SPTableColumnWidths = @"tableColumnWidths";
+NSString *SPQueryFavoriteReplacesContent = @"QueryFavoriteReplacesContent";
NSString *SPQueryHistory = @"queryHistory";
-NSString *SPDocumentTaskStartNotification = @"DocumentTaskStarted";
-NSString *SPDocumentTaskEndNotification = @"DocumentTaskEnded";
-NSString *SPDefaultFavorite = @"DefaultFavorite";
-NSString *SPNoBOMforSQLdumpFile = @"NoBOMforSQLdumpFile";
+NSString *SPQueryHistoryReplacesContent = @"QueryHistoryReplacesContent";
+NSString *SPQuickLookTypes = @"QuickLookTypes";