diff options
author | stuconnolly <stuart02@gmail.com> | 2010-11-05 21:15:18 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-11-05 21:15:18 +0000 |
commit | a9be9780875d249019bd0cdf55eba960fb6f44be (patch) | |
tree | af7477b3e9c964dedf67ff40385f5724713ccc03 /Source/SPExportController.m | |
parent | f683094590e4a95eb047893584493ed7b32e2a02 (diff) | |
download | sequelpro-a9be9780875d249019bd0cdf55eba960fb6f44be.tar.gz sequelpro-a9be9780875d249019bd0cdf55eba960fb6f44be.tar.bz2 sequelpro-a9be9780875d249019bd0cdf55eba960fb6f44be.zip |
Complete the implementation of supporting MySQL's XML schema format when exporting. Also, restore our old format and give the user the choice during export (defaults to MySQL schema). Completes the implementation of issue #840.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r-- | Source/SPExportController.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 3ca2c996..755a4f74 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -493,6 +493,23 @@ static const NSString *SPTableViewDropColumnID = @"drop"; } /** + * Toggles the options available depending on the selected XML output format. + */ +- (IBAction)toggleXMLOutputFormat:(id)sender +{ + if ([sender indexOfSelectedItem] == SPXMLExportMySQLFormat) { + [exportXMLIncludeStructure setEnabled:YES]; + [exportXMLIncludeContent setEnabled:YES]; + [exportXMLNULLValuesAsTextField setEnabled:NO]; + } + else if ([sender indexOfSelectedItem] == SPXMLExportPlainFormat) { + [exportXMLIncludeStructure setEnabled:NO]; + [exportXMLIncludeContent setEnabled:NO]; + [exportXMLNULLValuesAsTextField setEnabled:YES]; + } +} + +/** * Toggles the display of the advanced options box. */ - (IBAction)toggleAdvancedExportOptionsView:(id)sender |