aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
commit3b70bf3ed475602fac435b86ab564423ae1dfdb0 (patch)
tree2328be21dbfdaec7e07caad38c2b46d26c76fcd7 /Source/SPConstants.h
parent47f354070f1fa8dfeb46c4065075ee53de4c1626 (diff)
downloadsequelpro-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.h53
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