aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporterDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-05-25 08:20:29 +0000
committerstuconnolly <stuart02@gmail.com>2012-05-25 08:20:29 +0000
commiteb65e7845ea93a0200b304bd63f88415762fa29a (patch)
tree60d5d9a5d213b7ed42c58142a6e08fc062a2c4f5 /Source/SPSQLExporterDelegate.m
parent687d564c85cefca3d378fed7be6c40f30b6b55b6 (diff)
downloadsequelpro-eb65e7845ea93a0200b304bd63f88415762fa29a.tar.gz
sequelpro-eb65e7845ea93a0200b304bd63f88415762fa29a.tar.bz2
sequelpro-eb65e7845ea93a0200b304bd63f88415762fa29a.zip
Export tidy up.
Diffstat (limited to 'Source/SPSQLExporterDelegate.m')
-rw-r--r--Source/SPSQLExporterDelegate.m18
1 files changed, 2 insertions, 16 deletions
diff --git a/Source/SPSQLExporterDelegate.m b/Source/SPSQLExporterDelegate.m
index 89bc9b89..669d2563 100644
--- a/Source/SPSQLExporterDelegate.m
+++ b/Source/SPSQLExporterDelegate.m
@@ -29,9 +29,6 @@
@implementation SPExportController (SPSQLExporterDelegate)
-/**
- *
- */
- (void)sqlExportProcessWillBegin:(SPSQLExporter *)exporter
{
[[exportProgressTitle onMainThread] setStringValue:NSLocalizedString(@"Exporting SQL", @"text showing that the application is exporting SQL")];
@@ -41,9 +38,6 @@
[[exportProgressText onMainThread] displayIfNeeded];
}
-/**
- *
- */
- (void)sqlExportProcessComplete:(SPSQLExporter *)exporter
{
[exportProgressIndicator stopAnimation:self];
@@ -53,7 +47,7 @@
[tableDocumentInstance setQueryMode:SPInterfaceQueryMode];
// Restore the connection encoding to it's pre-export value
- [tableDocumentInstance setConnectionEncoding:[NSString stringWithFormat:@"%@%@", sqlPreviousConnectionEncoding, (sqlPreviousConnectionEncodingViaLatin1) ? @"-" : @""] reloadingViews:NO];
+ [tableDocumentInstance setConnectionEncoding:[NSString stringWithFormat:@"%@%@", previousConnectionEncoding, (previousConnectionEncodingViaLatin1) ? @"-" : @""] reloadingViews:NO];
// Display Growl notification
[self displayExportFinishedGrowlNotification];
@@ -64,21 +58,16 @@
}
}
-/**
- *
- */
- (void)sqlExportProcessProgressUpdated:(SPSQLExporter *)exporter
{
if ([exportProgressIndicator doubleValue] == 0) {
[exportProgressIndicator stopAnimation:self];
[exportProgressIndicator setIndeterminate:NO];
}
+
[exportProgressIndicator setDoubleValue:[exporter exportProgressValue]];
}
-/**
- *
- */
- (void)sqlExportProcessWillBeginFetchingData:(SPSQLExporter *)exporter
{
[exportProgressText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Fetching data...", @"export label showing that the app is fetching data for a specific table"), [exporter sqlCurrentTableExportIndex], exportTableCount, [exporter sqlExportCurrentTable]]];
@@ -89,9 +78,6 @@
[exportProgressIndicator setDoubleValue:0];
}
-/**
- *
- */
- (void)sqlExportProcessWillBeginWritingData:(SPSQLExporter *)exporter
{
[exportProgressText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Writing data...", @"export label showing app if writing data for a specific table"), [exporter sqlCurrentTableExportIndex], exportTableCount, [exporter sqlExportCurrentTable]]];