diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-24 21:51:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-24 21:51:27 +0000 |
commit | 3b70bf3ed475602fac435b86ab564423ae1dfdb0 (patch) | |
tree | 2328be21dbfdaec7e07caad38c2b46d26c76fcd7 /Source/SPConstants.h | |
parent | 47f354070f1fa8dfeb46c4065075ee53de4c1626 (diff) | |
download | sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.gz sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.bz2 sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.zip |
General tidy up, with a focus on consolidating more constants in SPConstants.h/m.
Diffstat (limited to 'Source/SPConstants.h')
-rw-r--r-- | Source/SPConstants.h | 53 |
1 files changed, 48 insertions, 5 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h index ddc31be3..f5828b96 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -27,11 +27,11 @@ // View modes typedef enum { - SPStructureViewMode = 1, - SPContentViewMode = 2, - SPRelationsViewMode = 3, - SPTableInfoViewMode = 4, - SPQueryEditorViewMode = 5 + SPStructureViewMode = 1, + SPContentViewMode = 2, + SPRelationsViewMode = 3, + SPTableInfoViewMode = 4, + SPQueryEditorViewMode = 5 } SPViewMode; // Query modes @@ -55,6 +55,48 @@ typedef enum { SPRowCountFetchAlways = 2 } SPRowCountQueryUsageLevels; +// Export type +typedef enum { + SPExportingSQL = 0, + SPExportingCSV = 1, + SPExportingXML = 2, + SPExportingDOT = 3 +} SPExportMode; + +// Database object (table list) types +typedef enum +{ + SPTableTypeNone = -1, + SPTableTypeTable = 0, + SPTableTypeView = 1, + SPTableTypeProc = 2, + SPTableTypeFunc = 3 +} SPTableType; + +// History views +typedef enum +{ + SPHistoryViewStructure = 0, + SPHistoryViewContent = 1, + SPHistoryViewCustomQuery = 2, + SPHistoryViewStatus = 3, + SPHistoryViewRelations = 4 +} SPHistoryViewType; + +// SSH tunnel password modes +typedef enum +{ + SPSSHPasswordUsesKeychain = 0, + SPSSHPasswordAsksUI = 1, + SPSSHPasswordNone = 2 +} SPSSHTunnelPasswordMode; + +// Long running notification time for Growl messages +extern const CGFloat SPLongRunningNotificationTime; + +// Narrow down completion max rows +extern const NSUInteger SPNarrowDownCompletionMaxRows; + // Kill mode constants extern NSString *SPKillProcessQueryMode; extern NSString *SPKillProcessConnectionMode; @@ -192,6 +234,7 @@ extern NSString *SPFAQURL; extern NSString *SPDocumentationURL; extern NSString *SPContactURL; extern NSString *SPKeyboardShortcutsURL; +extern NSString *SPMySQLSearchURL; // Toolbar constants |