aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPHistoryController.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-02-09 01:20:24 +0000
committerrowanbeentje <rowan@beent.je>2010-02-09 01:20:24 +0000
commitda88e1ea6bac13e52b14e3510db56a18162b2c73 (patch)
tree9b83abbbe4ff7b6e1d185519782fb8e9b3b2f8d8 /Source/SPHistoryController.h
parenta947c6e6c97a31fe18ee168e5c02294706fba164 (diff)
downloadsequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.tar.gz
sequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.tar.bz2
sequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.zip
- Save and restore content table sorting, filter criteria, scroll position and selection when switching tables and databases. This implements Issue #469.
- Fix history bug causing column sorts to always be restored ascending
Diffstat (limited to 'Source/SPHistoryController.h')
-rw-r--r--Source/SPHistoryController.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPHistoryController.h b/Source/SPHistoryController.h
index 4497c283..0b2d50d9 100644
--- a/Source/SPHistoryController.h
+++ b/Source/SPHistoryController.h
@@ -43,6 +43,7 @@ enum sphistory_view_types
TableContent *tableContentInstance;
TablesList *tablesListInstance;
NSMutableArray *history;
+ NSMutableDictionary *tableContentStates;
NSUInteger historyPosition;
BOOL modifyingHistoryState;
}
@@ -67,6 +68,9 @@ enum sphistory_view_types
- (void) abortEntryLoadWithPool:(NSAutoreleasePool *)pool;
- (void) loadEntryFromMenuItem:(id)theMenuItem;
+// Restoring view states
+- (void) restoreViewStates;
+
// History entry details and description
- (NSMenuItem *) menuEntryForHistoryEntryAtIndex:(NSInteger)theIndex;
- (NSString *) nameForHistoryEntryDetails:(NSDictionary *)theEntry;