diff options
author | rowanbeentje <rowan@beent.je> | 2009-07-18 16:02:04 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-07-18 16:02:04 +0000 |
commit | 11e10321f97577204b74f84b528029490e64ef47 (patch) | |
tree | 624f2897d1937f02996471b681a485d6358a8535 /Source/TableContent.h | |
parent | 4aa27ac121818e97bb70f28943d11590226a64ce (diff) | |
download | sequelpro-11e10321f97577204b74f84b528029490e64ef47.tar.gz sequelpro-11e10321f97577204b74f84b528029490e64ef47.tar.bz2 sequelpro-11e10321f97577204b74f84b528029490e64ef47.zip |
Add the ability to navigate between tables via foreign key relationships, addressing the first part of #209:
- For the first column linked by each foreign key, display a link arrow within the table cell
- When clicking on the link arrow, select the reference table and set the table filters to select the clicked value
- Also uses the table cell subclass to allow the entire cell to be editable, not just the contained text (addresses #250)
Diffstat (limited to 'Source/TableContent.h')
-rw-r--r-- | Source/TableContent.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/TableContent.h b/Source/TableContent.h index e2bc5730..3053db1b 100644 --- a/Source/TableContent.h +++ b/Source/TableContent.h @@ -28,7 +28,7 @@ #import <Cocoa/Cocoa.h> #import <MCPKit_bundled/MCPKit_bundled.h> -@class CMMCPConnection, CMMCPResult, CMCopyTable; +@class CMMCPConnection, CMMCPResult, CMCopyTable, SPTextAndLinkCell; @interface TableContent : NSObject { @@ -55,8 +55,9 @@ CMMCPConnection *mySQLConnection; NSString *selectedTable, *usedQuery; - NSMutableArray *fullResult, *filteredResult, *keys, *oldRow; + NSMutableArray *fullResult, *filteredResult, *dataColumns, *keys, *oldRow; NSString *compareType, *lastField; + NSString *targetFilterColumn, *targetFilterValue; NSNumber *sortCol; BOOL isEditingRow, isEditingNewRow, isSavingRow, isDesc, setLimit; NSUserDefaults *prefs; @@ -87,6 +88,7 @@ //additional methods - (void)setConnection:(CMMCPConnection *)theConnection; +- (void)clickLinkArrow:(SPTextAndLinkCell *)theArrowCell; - (IBAction)setCompareTypes:(id)sender; - (IBAction)stepLimitRows:(id)sender; - (NSArray *)fetchResultAsArray:(CMMCPResult *)theResult; |