diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-23 02:15:45 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-23 02:15:45 +0000 |
commit | 1064dfa5438d493f996d52fd9b1554d121b93214 (patch) | |
tree | b41093f58a98ff63607ea6268e1d8bee13ad07a4 /Source/TableDocument.m | |
parent | 3c52d5ea78847330f86bad7548a8d1a9bd2f0df6 (diff) | |
download | sequelpro-1064dfa5438d493f996d52fd9b1554d121b93214.tar.gz sequelpro-1064dfa5438d493f996d52fd9b1554d121b93214.tar.bz2 sequelpro-1064dfa5438d493f996d52fd9b1554d121b93214.zip |
- Replace the LIMIT interface on the content view with a pagination control at the bottom. This addresses the last of Issue #49 and implements Issue #133; jump-to and two prefs affecting loading are available in a popup when clicking the pagination interface.
- Format row counts at the bottom of the content pane
- Increase the MCPStreamingResult buffer for a stronger workaround for #463
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index d35e4684..53d4474a 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -551,8 +551,8 @@ // Set table content details for restore if([spfSession objectForKey:@"contentSortCol"]) [tableContentInstance setSortColumnNameToRestore:[spfSession objectForKey:@"contentSortCol"] isAscending:[[spfSession objectForKey:@"contentSortCol"] boolValue]]; - if([spfSession objectForKey:@"contentLimitStartPosition"]) - [tableContentInstance setLimitStartToRestore:[[spfSession objectForKey:@"contentLimitStartPosition"] intValue]]; + if([spfSession objectForKey:@"contentPageNumber"]) + [tableContentInstance setPageToRestore:[[spfSession objectForKey:@"pageNumber"] intValue]]; if([spfSession objectForKey:@"contentViewport"]) [tableContentInstance setViewportToRestore:NSRectFromString([spfSession objectForKey:@"contentViewport"])]; if([spfSession objectForKey:@"contentFilter"]) @@ -2696,7 +2696,7 @@ [session setObject:[self connectionEncoding] forKey:@"connectionEncoding"]; [session setObject:[NSNumber numberWithBool:[tableContentInstance sortColumnIsAscending]] forKey:@"contentSortColIsAsc"]; - [session setObject:[NSNumber numberWithInt:[tableContentInstance limitStart]] forKey:@"contentLimitStartPosition"]; + [session setObject:[NSNumber numberWithInt:[tableContentInstance pageNumber]] forKey:@"contentPageNumber"]; [session setObject:NSStringFromRect([tableContentInstance viewport]) forKey:@"contentViewport"]; if([tableContentInstance filterSettings]) [session setObject:[tableContentInstance filterSettings] forKey:@"contentFilter"]; |