diff options
author | rowanbeentje <rowan@beent.je> | 2010-02-11 01:05:32 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-02-11 01:05:32 +0000 |
commit | 4f2b28e1691c5b64e1768ba7c4797623f61cf0a6 (patch) | |
tree | 88beecf73e0fd34d2abfe6c169926ac4b4598257 /Source/CustomQuery.h | |
parent | 9536bcce8067a3167fb369f9a38094e24633068f (diff) | |
download | sequelpro-4f2b28e1691c5b64e1768ba7c4797623f61cf0a6.tar.gz sequelpro-4f2b28e1691c5b64e1768ba7c4797623f61cf0a6.tar.bz2 sequelpro-4f2b28e1691c5b64e1768ba7c4797623f61cf0a6.zip |
- Implement result view saving in a more general way within CustomQuery; now when editing custom query results *and* sorting custom query results, scroll position and selection index are preserved
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r-- | Source/CustomQuery.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h index 15f0dba6..6650ee79 100644 --- a/Source/CustomQuery.h +++ b/Source/CustomQuery.h @@ -139,11 +139,15 @@ NSRect editedScrollViewRect; BOOL isWorking; - BOOL tableReloadAfterEditing; + BOOL tableRowsSelectable; + BOOL reloadingExistingResult; BOOL queryIsTableSorter; BOOL isDesc; NSNumber *sortField; + NSIndexSet *selectionIndexToRestore; + NSRect selectionViewportToRestore; + NSString *fieldIDQueryString; NSUInteger numberOfQueries; @@ -187,6 +191,14 @@ - (NSArray *)currentResult; - (void)processResultIntoDataStorage:(MCPStreamingResult *)theResult; +// Retrieving and setting table state +- (NSIndexSet *) resultSelectedRowIndexes; +- (NSRect) resultViewport; +- (void) setResultSelectedRowIndexesToRestore:(NSIndexSet *)theIndexSet; +- (void) setResultViewportToRestore:(NSRect)theViewport; +- (void) storeCurrentResultViewForRestoration; +- (void) clearResultViewDetailsToRestore; + // MySQL Help - (void)showAutoHelpForCurrentWord:(id)sender; - (NSString *)getHTMLformattedMySQLHelpFor:(NSString *)searchString calledByAutoHelp:(BOOL)autoHelp; |