aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-25 19:22:21 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-25 19:22:21 +0000
commit9163b4ff5779f2abc03855542448f5a01d5f23e4 (patch)
treef76a4ade049110ef239a7ade162f5acc894dacd0 /Source
parent9a4fe782c03bc0c42030b9344fd4f54e494d88b4 (diff)
downloadsequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.tar.gz
sequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.tar.bz2
sequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.zip
Add support for the triggers view in the history controller.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConstants.h6
-rw-r--r--Source/SPHistoryController.m7
2 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index f5828b96..64703381 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -31,7 +31,8 @@ typedef enum {
SPContentViewMode = 2,
SPRelationsViewMode = 3,
SPTableInfoViewMode = 4,
- SPQueryEditorViewMode = 5
+ SPQueryEditorViewMode = 5,
+ SPTriggersViewMode = 6
} SPViewMode;
// Query modes
@@ -80,7 +81,8 @@ typedef enum
SPHistoryViewContent = 1,
SPHistoryViewCustomQuery = 2,
SPHistoryViewStatus = 3,
- SPHistoryViewRelations = 4
+ SPHistoryViewRelations = 4,
+ SPHistoryViewTriggers = 5
} SPHistoryViewType;
// SSH tunnel password modes
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m
index dd302969..2fbf18b5 100644
--- a/Source/SPHistoryController.m
+++ b/Source/SPHistoryController.m
@@ -156,6 +156,7 @@
NSUInteger theView = NSNotFound;
NSString *viewName = [[[theDocument valueForKey:@"tableTabView"] selectedTabViewItem] identifier];
+
if ([viewName isEqualToString:@"source"]) {
theView = SPHistoryViewStructure;
} else if ([viewName isEqualToString:@"content"]) {
@@ -167,6 +168,9 @@
} else if ([viewName isEqualToString:@"relations"]) {
theView = SPHistoryViewRelations;
}
+ else if ([viewName isEqualToString:@"triggers"]) {
+ theView = SPHistoryViewTriggers;
+ }
return theView;
}
@@ -375,6 +379,9 @@
case SPHistoryViewRelations:
[theDocument viewRelations:self];
break;
+ case SPTriggersViewMode:
+ [theDocument viewTriggers:self];
+ break;
}
if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] integerValue]) {
return [self abortEntryLoadWithPool:loadPool];