aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPHistoryController.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-09-12 16:19:51 +0000
committerstuconnolly <stuart02@gmail.com>2009-09-12 16:19:51 +0000
commitf4bede9def108d8fd25334871ca00971687c4e51 (patch)
tree9e744ffcceb07993d5865181c9df7a5ae0d4f407 /Source/SPHistoryController.h
parent9a0951a7dc44f93226e096423b76de48df2d50a0 (diff)
downloadsequelpro-f4bede9def108d8fd25334871ca00971687c4e51.tar.gz
sequelpro-f4bede9def108d8fd25334871ca00971687c4e51.tar.bz2
sequelpro-f4bede9def108d8fd25334871ca00971687c4e51.zip
Add back/forward history menu items to the view menu with the assigned shortcuts of cmd+[ and cmd+].
Diffstat (limited to 'Source/SPHistoryController.h')
-rw-r--r--Source/SPHistoryController.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/SPHistoryController.h b/Source/SPHistoryController.h
index 5829dce7..58f66352 100644
--- a/Source/SPHistoryController.h
+++ b/Source/SPHistoryController.h
@@ -35,20 +35,25 @@ enum sphistory_view_types
SP_VIEW_RELATIONS = 4
};
-@interface SPHistoryController : NSObject {
+@interface SPHistoryController : NSObject
+{
IBOutlet TableDocument *theDocument;
IBOutlet NSSegmentedControl *historyControl;
TableContent *tableContentInstance;
NSMutableArray *history;
- unsigned int historyPosition;
+ NSUInteger historyPosition;
BOOL modifyingHistoryState;
}
+@property (readonly) NSUInteger historyPosition;
+@property (readonly) NSMutableArray *history;
@property (readwrite, assign) BOOL modifyingHistoryState;
// Interface interaction
- (void) updateToolbarItem;
+- (void)goBackwardInHistory;
+- (void)goForwardInHistory;
- (IBAction) historyControlClicked:(NSSegmentedControl *)theControl;
- (unsigned int) currentlySelectedView;