diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-16 13:24:04 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-16 13:24:04 +0000 |
commit | 1d5c422881b6ad63266bd5875c3472d6b5f84a5f (patch) | |
tree | c6930f7864b38b1b21f629b05ac0f7c8eabf5f2b /Source/SPFieldMapperController.m | |
parent | 22ae0fa8c302d22071116abca27d2add3a0af991 (diff) | |
download | sequelpro-1d5c422881b6ad63266bd5875c3472d6b5f84a5f.tar.gz sequelpro-1d5c422881b6ad63266bd5875c3472d6b5f84a5f.tar.bz2 sequelpro-1d5c422881b6ad63266bd5875c3472d6b5f84a5f.zip |
• field mapper controller
- fixed precocious releasing of mapper settings
- fixed boolean binding for displaying "1 of first 100 records"
- added further gui elements (not yet activated)
- sheet dimensions are now auto-saved
- bound keystroke ⇢ and ⇠ to row stepper
- renamed some stuff
- added clarification notes
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r-- | Source/SPFieldMapperController.m | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m index 8dc06d87..f7a2e068 100644 --- a/Source/SPFieldMapperController.m +++ b/Source/SPFieldMapperController.m @@ -119,10 +119,11 @@ [mySQLConnection retain]; } -- (void)setImportDataArray:(id)theFieldMappingImportArray hasHeader:(BOOL)hasHeader +- (void)setImportDataArray:(id)theFieldMappingImportArray hasHeader:(BOOL)hasHeader isPreview:(BOOL)isPreview { fieldMappingImportArray = theFieldMappingImportArray; importFieldNamesHeader = hasHeader; + fieldMappingImportArrayIsPreview = isPreview; } #pragma mark - @@ -327,8 +328,16 @@ && [fieldMappingTableColumnNames count]) { NSInteger i; NSNumber *globalValue = doImport; - if([fieldMappingOperatorArray objectAtIndex:0] == doImport) + if([fieldMappingOperatorArray objectAtIndex:0] == doImport) { globalValue = doNotImport; + // NSTextFieldCell *c = [[[NSTextFieldCell alloc] init] autorelease]; + // [c setStringValue:doNotImportString]; + // [aTableColumn setHeaderCell:c]; + } else { + // NSTextFieldCell *c = [[[NSTextFieldCell alloc] init] autorelease]; + // [c setStringValue:doImportString]; + // [aTableColumn setHeaderCell:c]; + } [fieldMappingOperatorArray removeAllObjects]; for(i=0; i < [fieldMappingTableColumnNames count]; i++) [fieldMappingOperatorArray addObject:globalValue]; |