aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDotExporterDelegate.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-12-02 01:54:11 +0000
committerrowanbeentje <rowan@beent.je>2010-12-02 01:54:11 +0000
commit85d4c823527236bca756dba3d430e840fd131454 (patch)
treeda3360e76192415ea0324ecb91bdf84833fc16f5 /Source/SPDotExporterDelegate.m
parent4801fedd91e3a6abb1ee6a7aa1174a089bf6e547 (diff)
downloadsequelpro-85d4c823527236bca756dba3d430e840fd131454.tar.gz
sequelpro-85d4c823527236bca756dba3d430e840fd131454.tar.bz2
sequelpro-85d4c823527236bca756dba3d430e840fd131454.zip
- Fix graph language/DOT export hanging - this addresses Issue #916.
- Fix graph language/DOT export progress bars and feedback - Fix graph language/DOT export of table relations to correctly link tables based on foreign keys/constraints
Diffstat (limited to 'Source/SPDotExporterDelegate.m')
-rw-r--r--Source/SPDotExporterDelegate.m20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/SPDotExporterDelegate.m b/Source/SPDotExporterDelegate.m
index ceb24354..2d1e4b46 100644
--- a/Source/SPDotExporterDelegate.m
+++ b/Source/SPDotExporterDelegate.m
@@ -39,6 +39,8 @@
[[exportProgressTitle onMainThread] displayIfNeeded];
[[exportProgressText onMainThread] displayIfNeeded];
+ [[exportProgressIndicator onMainThread] stopAnimation:self];
+ [[exportProgressIndicator onMainThread] setIndeterminate:NO];
}
/**
@@ -63,25 +65,20 @@
*/
- (void)dotExportProcessProgressUpdated:(SPDotExporter *)exporter
{
-
+ [exportProgressIndicator setDoubleValue:[exporter exportProgressValue]];
}
/**
*
*/
-- (void)dotExportProcessWillBeginFetchingData:(SPDotExporter *)exporter
+- (void)dotExportProcessWillBeginFetchingData:(SPDotExporter *)exporter forTableWithIndex:(NSUInteger)tableIndex
{
// Update the current table export index
- currentTableExportIndex = (exportTableCount - [exporters count]);
+ currentTableExportIndex = tableIndex;
- [[exportProgressText onMainThread] setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Fetching data...", @"export label showing that the app is fetching data for a specific table"), currentTableExportIndex, exportTableCount, [exporter dotExportCurrentTable]]];
+ [exportProgressText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Fetching data...", @"export label showing that the app is fetching data for a specific table"), currentTableExportIndex, exportTableCount, [exporter dotExportCurrentTable]]];
- [[exportProgressText onMainThread] displayIfNeeded];
-
- [[exportProgressIndicator onMainThread] stopAnimation:self];
- [[exportProgressIndicator onMainThread] setUsesThreadedAnimation:NO];
- [[exportProgressIndicator onMainThread] setIndeterminate:NO];
- [[exportProgressIndicator onMainThread] setDoubleValue:0];
+ [exportProgressText displayIfNeeded];
}
/**
@@ -92,6 +89,9 @@
[[exportProgressText onMainThread] setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Fetching relations data...", @"export label showing app is fetching relations data for a specific table"), currentTableExportIndex, exportTableCount, [exporter dotExportCurrentTable]]];
[[exportProgressText onMainThread] displayIfNeeded];
+ [[exportProgressIndicator onMainThread] setIndeterminate:YES];
+ [[exportProgressIndicator onMainThread] setUsesThreadedAnimation:YES];
+ [[exportProgressIndicator onMainThread] startAnimation:self];
}
@end