diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-13 00:57:43 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-13 00:57:43 +0000 |
commit | 19d3956c14f63872981ab292e7498ac4505e1fae (patch) | |
tree | 98874e4ab50559fc360ea6874f6ee41c1f134f2d /Source/TableContent.h | |
parent | 3946e0c6c1e26af2b65590a1f0f50ab25c1c3bfb (diff) | |
download | sequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.tar.gz sequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.tar.bz2 sequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.zip |
- Rework TableContent row count fetching, loading it in the correct locations, and correcting the logic for fetching the count of rows so that the query is not used where not necessary.
- Update the Table Info pane and tab with a new row count if one is known - this addresses Issue #141
- This reverts r1090, and so needs to be discussed with stuart02 - the rest of the row logic changes may have fixed the 'larger issue' described there?
Diffstat (limited to 'Source/TableContent.h')
-rw-r--r-- | Source/TableContent.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/TableContent.h b/Source/TableContent.h index ea09a325..e389c8df 100644 --- a/Source/TableContent.h +++ b/Source/TableContent.h @@ -28,13 +28,14 @@ #import <Cocoa/Cocoa.h> #import <MCPKit/MCPKit.h> -@class CMCopyTable, SPTextAndLinkCell, SPHistoryController; +@class CMCopyTable, SPTextAndLinkCell, SPHistoryController, SPTableInfo; @interface TableContent : NSObject { IBOutlet id tableDocumentInstance; IBOutlet id tablesListInstance; IBOutlet id tableDataInstance; + IBOutlet SPTableInfo *tableInfoInstance; IBOutlet SPHistoryController *spHistoryControllerInstance; IBOutlet id tableWindow; @@ -59,9 +60,9 @@ NSString *compareType; NSNumber *sortCol; BOOL isEditingRow, isEditingNewRow, isSavingRow, isDesc, setLimit; - BOOL isFiltered, isLimited; + BOOL isFiltered, isLimited, maxNumRowsIsEstimate; NSUserDefaults *prefs; - int numRows, currentlyEditingRow, maxNumRowsOfCurrentTable; + int currentlyEditingRow, maxNumRows; BOOL sortColumnToRestoreIsAsc; NSString *sortColumnToRestore; @@ -105,7 +106,7 @@ - (BOOL)tableContainsBlobOrTextColumns; - (NSString *)fieldListForQuery; - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(NSString *)contextInfo; -- (int)getNumberOfRows; +- (void)updateNumberOfRows; - (int)fetchNumberOfRows; - (BOOL)saveRowOnDeselect; |