aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-27 09:25:46 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-27 09:25:46 +0000
commitfa2b337d82047f8ec3474dc67b125f34f7a49bfc (patch)
tree88a6262f8deb53b336ac2f7da57970417cf0081a /Source/SPTableContent.h
parentadf5d76a879d7e5474cf18843381f1dc553948a2 (diff)
downloadsequelpro-fa2b337d82047f8ec3474dc67b125f34f7a49bfc.tar.gz
sequelpro-fa2b337d82047f8ec3474dc67b125f34f7a49bfc.tar.bz2
sequelpro-fa2b337d82047f8ec3474dc67b125f34f7a49bfc.zip
• initial sketch approach to allow to write complex WHERE clauses by using a table approach
- not yet activated
Diffstat (limited to 'Source/SPTableContent.h')
-rw-r--r--Source/SPTableContent.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h
index f88d6fe9..13ca3d92 100644
--- a/Source/SPTableContent.h
+++ b/Source/SPTableContent.h
@@ -28,7 +28,7 @@
#import <Cocoa/Cocoa.h>
#import <MCPKit/MCPKit.h>
-@class SPCopyTable, SPTextAndLinkCell, SPHistoryController, SPTableInfo, SPDataStorage;
+@class SPCopyTable, SPTextAndLinkCell, SPHistoryController, SPTableInfo, SPDataStorage, SPTextView;
@interface SPTableContent : NSObject
{
@@ -65,7 +65,13 @@
IBOutlet NSView *paginationView;
IBOutlet NSTextField *paginationPageField;
IBOutlet NSStepper *paginationPageStepper;
-
+
+ IBOutlet SPCopyTable *filterTableView;
+ IBOutlet NSPanel *filterTableWindow;
+ IBOutlet NSButton *filterTableFilterButton;
+ IBOutlet NSButton *filterTableClearButton;
+ IBOutlet SPTextView *filterTableWhereClause;
+
MCPConnection *mySQLConnection;
BOOL _mainNibLoaded;
@@ -76,6 +82,7 @@
NSString *selectedTable, *usedQuery;
SPDataStorage *tableValues;
NSMutableArray *dataColumns, *keys, *oldRow;
+ NSMutableDictionary *filterTableData;
NSUInteger tableRowsCount, previousTableRowsCount;
NSString *compareType;
NSNumber *sortCol;
@@ -143,6 +150,11 @@
- (IBAction)copyRow:(id)sender;
- (IBAction)removeRow:(id)sender;
+// Filter Table
+- (IBAction)tableFilterExecute:(id)sender;
+- (IBAction)tableFilterClear:(id)sender;
+- (IBAction)showTableFilter:(id)sender;
+
// Getter methods
- (NSArray *)currentResult;
- (NSArray *)currentDataResult;
@@ -191,4 +203,6 @@
- (NSArray*)fieldEditStatusForRow:(NSInteger)rowIndex andColumn:(NSInteger)columnIndex;
+- (void)updateFilterTableClause;
+
@end