aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];