diff options
author | Max <dmoagx@users.noreply.github.com> | 2017-12-30 00:36:10 +0100 |
---|---|---|
committer | Max <dmoagx@users.noreply.github.com> | 2018-01-20 02:42:36 +0100 |
commit | db2bdd8b53cede1bddde85e1527246d8e52f0fa2 (patch) | |
tree | 72c27e2eea096d226bfc0d60e0f4fe8a8ec11c3a /Source/SPDotExporterDelegate.m | |
parent | e00786ad1ddc53ce66247124b94280a441eacf3e (diff) | |
download | sequelpro-db2bdd8b53cede1bddde85e1527246d8e52f0fa2.tar.gz sequelpro-db2bdd8b53cede1bddde85e1527246d8e52f0fa2.tar.bz2 sequelpro-db2bdd8b53cede1bddde85e1527246d8e52f0fa2.zip |
merge SPExportController (part of #2789)
Diffstat (limited to 'Source/SPDotExporterDelegate.m')
-rw-r--r-- | Source/SPDotExporterDelegate.m | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/Source/SPDotExporterDelegate.m b/Source/SPDotExporterDelegate.m deleted file mode 100644 index 47054a1e..00000000 --- a/Source/SPDotExporterDelegate.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// SPDotExporterDelegate.m -// sequel-pro -// -// Created by Stuart Connolly (stuconnolly.com) on April 17, 2010. -// Copyright (c) 2010 Stuart Connolly. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person -// obtaining a copy of this software and associated documentation -// files (the "Software"), to deal in the Software without -// restriction, including without limitation the rights to use, -// copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following -// conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -// More info at <https://github.com/sequelpro/sequelpro> - -#import "SPDotExporterDelegate.h" -#import "SPDotExporter.h" -#import "SPExportInitializer.h" - -@implementation SPExportController (SPDotExporterDelegate) - -- (void)dotExportProcessWillBegin:(SPDotExporter *)exporter -{ - [exportProgressTitle setStringValue:NSLocalizedString(@"Exporting Dot File", @"text showing that the application is exporting a Dot file")]; - [exportProgressText setStringValue:NSLocalizedString(@"Dumping...", @"text showing that app is writing dump")]; - - [exportProgressTitle displayIfNeeded]; - [exportProgressText displayIfNeeded]; - [exportProgressIndicator stopAnimation:self]; - [exportProgressIndicator setIndeterminate:NO]; -} - -- (void)dotExportProcessComplete:(SPDotExporter *)exporter -{ - [self exportEnded]; -} - -- (void)dotExportProcessProgressUpdated:(SPDotExporter *)exporter -{ - [exportProgressIndicator setDoubleValue:[exporter exportProgressValue]]; -} - -- (void)dotExportProcessWillBeginFetchingData:(SPDotExporter *)exporter forTableWithIndex:(NSUInteger)tableIndex -{ - // Update the current table export index - currentTableExportIndex = tableIndex; - - [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 displayIfNeeded]; -} - -- (void)dotExportProcessWillBeginFetchingRelationsData:(SPDotExporter *)exporter -{ - [exportProgressText 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 displayIfNeeded]; - [exportProgressIndicator setIndeterminate:YES]; - [exportProgressIndicator setUsesThreadedAnimation:YES]; - [exportProgressIndicator startAnimation:self]; -} - -@end |