aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-07-25 09:16:20 +0000
committerstuconnolly <stuart02@gmail.com>2010-07-25 09:16:20 +0000
commitf578b247bed73fe2b8a7f0fc2efbe0b191890df9 (patch)
treea774c78f431eac291bb329d358c18cf112445de2 /Source/SPExportController.h
parentc073e11612e36a7f9b8d7033faf08d663dd40c1f (diff)
downloadsequelpro-f578b247bed73fe2b8a7f0fc2efbe0b191890df9.tar.gz
sequelpro-f578b247bed73fe2b8a7f0fc2efbe0b191890df9.tar.bz2
sequelpro-f578b247bed73fe2b8a7f0fc2efbe0b191890df9.zip
Make the export dialog a little smarter with regard to the current context. For example:
If either the table content or custom query editor views are active and there is data available, these options will be selected as the export source ('Filtered' or 'Query Result'). If either of these views are not active then the default source are the currently selected tables. If no tables are currently selected then all tables are checked. Note that in this instance the default export type is SQL where as in the case of filtered or query result export the default type is CSV. Also remove some old export methods. Related to issue #610.
Diffstat (limited to 'Source/SPExportController.h')
-rw-r--r--Source/SPExportController.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPExportController.h b/Source/SPExportController.h
index b63f7c73..1868ec00 100644
--- a/Source/SPExportController.h
+++ b/Source/SPExportController.h
@@ -237,6 +237,8 @@
*/
@property(readwrite, assign) MCPConnection *connection;
+- (IBAction)export:(id)sender;
+
- (void)exportTables:(NSArray *)table asFormat:(SPExportType)format usingSource:(SPExportSource)source;
- (void)openExportErrorsSheetWithString:(NSString *)errors;
- (void)displayExportFinishedGrowlNotification;