From da88e1ea6bac13e52b14e3510db56a18162b2c73 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 9 Feb 2010 01:20:24 +0000 Subject: - 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 --- Source/SPHistoryController.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/SPHistoryController.h') 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; -- cgit v1.2.3