aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-16 23:11:38 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-16 23:11:38 +0000
commit72c4522db57b9699e1dc324f62dbeb036405f2c6 (patch)
treedb10818cac8e148a91137b1258241f34da6bf184 /Source/SPFieldMapperController.h
parent429e77d0512d3d36a4ca8e9aa994be48906c1445 (diff)
downloadsequelpro-72c4522db57b9699e1dc324f62dbeb036405f2c6.tar.gz
sequelpro-72c4522db57b9699e1dc324f62dbeb036405f2c6.tar.bz2
sequelpro-72c4522db57b9699e1dc324f62dbeb036405f2c6.zip
• csv field mapper
- added chance to align the csv field and table field names via 'matching names' which uses the Levenshtein distance [first approach] if csv file's first line is an header
Diffstat (limited to 'Source/SPFieldMapperController.h')
-rw-r--r--Source/SPFieldMapperController.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPFieldMapperController.h b/Source/SPFieldMapperController.h
index 62139b7d..4b9a3178 100644
--- a/Source/SPFieldMapperController.h
+++ b/Source/SPFieldMapperController.h
@@ -37,10 +37,11 @@
IBOutlet id importFieldNamesHeaderSwitch;
IBOutlet id importButton;
IBOutlet NSPopUpButton *alignByPopup;
-
+ IBOutlet NSMenuItem *matchingNameMenuItem;
+
id theDelegate;
id fieldMappingImportArray;
-
+
NSInteger fieldMappingCurrentRow;
NSMutableArray *fieldMappingArray;
NSMutableArray *fieldMappingTableColumnNames;
@@ -49,7 +50,7 @@
NSMutableArray *fieldMappingButtonOptions;
NSMutableArray *fieldMappingOperatorOptions;
NSMutableArray *fieldMappingOperatorArray;
-
+
NSNumber *doImport;
NSNumber *doNotImport;
NSNumber *isEqual;
@@ -87,10 +88,13 @@
- (IBAction)changeTableTarget:(id)sender;
- (IBAction)changeImportMethod:(id)sender;
- (IBAction)changeFieldAlignment:(id)sender;
+- (IBAction)changeHasHeaderCheckbox:(id)sender;
- (IBAction)stepRow:(id)sender;
+- (IBAction)addGlobalSourceVariable:(id)sender;
- (IBAction)closeSheet:(id)sender;
// Others
+- (void)matchHeaderNames;
- (void)setupFieldMappingArray;
- (void)updateFieldMappingButtonCell;
- (void)updateFieldMappingOperatorOptions;