aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
Commit message (Collapse)AuthorAgeFilesLines
* merge SPExportController (part of #2789)Max2018-01-201-5/+2692
|
* Add a 24-hour-format export filename token.Michael Rog2017-08-071-9/+10
|
* * move some duplicate code into it's own methodMax2015-11-201-14/+22
| | | | | * remove some duplicate onMainThread calls * if an exporter needs a certain charset it'll have to set that itself now
* Hand ServerSupport instance to exportersMax2015-11-201-0/+2
|
* Store the last export settings using the new "export settings" formatMax2015-11-151-55/+28
|
* Allow import of saved export settings (in export dialog)Max2015-11-071-29/+44
|
* Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()Max2015-10-201-1/+1
| | | | This should also eliminate a few use-after-free crashes
* Change how the custom filename pattern in export dialog is handledMax2015-10-121-8/+21
| | | | | | | | Namely: * They were previously stored in the users locale. Now they are stored using a language independent id * Just typing a token in your language will no longer work. If you want to manually type a token use: {host}, {database}, and so on… (all in English) * Copy & Paste of tokens will use the new form, too (so a user running SP in English can simply share a custom pattern with a user running SP in German) * The localized token names can now contain spaces
* Add some debug code for an exception I haven't seen beforeMax2015-10-011-2/+8
|
* Fix a crash that could occur when cancelling an export (fixes #2192)Max2015-08-021-2/+17
|
* Add some info which might help a bit with debugging threading issuesMax2015-07-021-1/+1
|
* Fix some minor compiler warningsMax2015-02-031-0/+1
|
* Change some code formattingMax2015-01-061-33/+38
|
* Formalize [x release], x = nil; conventionMax2015-01-041-6/+6
| | | | | Take this commit as a proposal to formalize our existing "[x release], x = nil;" convention by introducing a macro for it. Feel free to revert this commit if you see issues with the approch or implementation.
* Reformatting code for modern ObjCMax2014-12-131-15/+15
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* Updated Change Export Directory panel sheet to 10.6+ SDKMarius Ursache2013-11-111-18/+8
|
* Cleaned up Sending 'const NSString *' to parameter of type 'NSString *' ↵Marius Ursache2013-11-091-3/+3
| | | | discards qualifiers
* Issue #1717: Custom query export validation only needs to know the number of ↵stuconnolly2013-05-111-1/+2
| | | | rows of the current result, so don't return the actual result.
* Remove useless init and dealloc method comments and perform general tidy up.stuconnolly2013-01-221-19/+16
|
* Issue #1495: Fix crash on export after the table list is refreshed due to ↵stuconnolly2012-12-171-1/+2
| | | | the selection not being preserved correctly.
* - Add names for most threads created by Sequel Pro for easier debugrowanbeentje2012-10-141-2/+3
|
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-13/+21
|
* Export tidy up.stuconnolly2012-05-251-2/+2
|
* Remove unused method.stuconnolly2012-04-011-22/+0
|
* Improve the availability of the table name token on the custom export ↵stuconnolly2012-04-011-113/+21
| | | | | | | | | | filename selection. It's now no longer available during the following situations: - Exporting more than one table during an SQL export - Exporting more than one table during a CSV or XML, but only if the export to multiple files is not checked
* - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-1/+1
| | | | | | | fix nightly builds - Fix warnings
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-9/+8
| | | | | | | | | | | | exceptions as database structure retrieval is currently missing! Further work on SPMySQLFramework integration: - Improve SPMySQL framework build settings including correct ppc builds and a Distribution configuration for the build distributions to match - Add new convenience querying and result methods to the framework - Amend Sequel Pro source to use the new SPMySQL.framework methods everywhere, replacing MCPKit methods where they differ and improving some functions - Remove MCPKit from the source - Fix a number of warnings on Release-style builds
* When exporting a query result as CSV ensure that we're allowing the exporter ↵stuconnolly2012-01-141-0/+1
| | | | decide how to deal with NULLs rather than passing them already converted to the user's placeholder prefernce which results in them being quoted. Fixes issue #1281. Also, general tidy up.
* Set the previously used export filename and path when the export dialog is ↵stuconnolly2011-09-291-23/+43
| | | | opened not in awakeFromNib. Fixes issue #1198.
* Improve custom query result export menu item validation to prevent ↵stuconnolly2011-09-131-1/+1
| | | | triggering an export whilst a query is being performed.
* - Prevent export and indexes controller awakeFromNib: routines from being ↵rowanbeentje2011-08-251-2/+9
| | | | | | | run multiple times - Fix crashes and exceptions when using "Use monospaced fonts" or "Display vertical grid lines" preferences after closing at least one window
* Tidy up.stuconnolly2011-08-241-2/+7
|
* During an SQL export, if the structure is disabled also uncheck the include ↵stuconnolly2011-08-171-0/+5
| | | | DROP sytax option.
* SQL export: Disable the 'include drop syntax option' when the structure ↵stuconnolly2011-07-261-0/+2
| | | | option is not enabled.
* Add Sparkle to credits.stuconnolly2011-07-101-2/+2
|
* Add the option to the SQL export view as to whether or not the ↵stuconnolly2011-07-101-0/+2
| | | | AUTO_INCREMENT value on a table's structure is included. Defaults to not included. Implements issue #1064.
* * Fixes a spacing issue in Duplicate DB Sheetdmoagx2011-07-061-1/+1
| | | | | * Fixes a case were for string == NULL was checked instead of [string length] == 0 (fixes #1103) * Fixes a logic error while copying databases and adds ability to copy InnoDB tables with foreign key checks (fixes #1111)
* When refreshing the export dialog's table list, preserve the user's current ↵stuconnolly2011-05-071-2/+38
| | | | selection. Fixes issue #1000.
* Implement a large number of minor fixes and improvements to export ↵rowanbeentje2011-05-071-19/+108
| | | | | | | | | | | | | | | | | | | | | | functionality, including an overhaul of filename NSTokenField functionality: - Improve the NSTokenField used for export filenames: only tokenise reserved tokens, don't tokenise reserved words which are parts of other words, allow the comma to be used, update tokenisation during typing, and prevent whitespace triming. - Save the last selected export path, and make the path selection button open a dialog to the selected directory - Save the export filename and restore on future uses of the export dialog (only if the name contains placeholder tokens, so one-off export names aren't saved) - If the advanced options are collapsed, display a summary of the selected options next to the disclosure triangle - Display a small warning in the corner of the window if the export file cannot be imported into Sequel Pro, to warn those people attempting to back up their databases in XML - Clarify and improve the export warning dialog if files already exist or could not be created; make the simpler file-exists cases reflect OS-style dialogs, alter wording based on the number of files that failed and how they failed, and only show the "replace" or "skip" type buttons if it makes sense to do so. - Fix a mutation-during-enumeration error when skipping files - If "Cancel" is chosen in the export file creation replace/error dialog, redisplay the export sheet with the previous selection still active - Add support for year, month and day tokens in the filename token list - Don't allow blank custom filenames, before or after tokenisation, as this can cause problems - instead fall back to default filenames in those cases - Only append the extension if one hasn't been set - on all export formats, extending r3284 - If exporting to multiple files option is enabled but only one table is selected, supply that table name for filename table tokens - Update the progress bar to reflect update progress when exporting CSV data - Fix a bug causing exports to hang if the low-memory advanced option was set and content was selected to export and any empty tables were encountered - Save memory use and compression advanced export settings across sessions - Update localisable strings
* Add some constants.stuconnolly2011-04-291-6/+10
|
* - Fix more warningsrowanbeentje2011-03-141-11/+11
|
* fixed compiler warningssqlprodev2011-03-011-2/+2
|
* - Fix issues restoring the filename or advanced views in the export ↵rowanbeentje2011-01-241-0/+2
| | | | interface when they have been automatically collapsed when the sheet closed
* Apply a tweaked version of a patch by Aaron Linville ↵rowanbeentje2010-12-051-2/+16
| | | | | | | | | | (http://www.linville.org/) to handle table linking in .dot exports on case-insensitive servers: - Adds a new checkbox on the .dot export interface controlling the case sensitivty of link handling - Improve .dot export to use lowercase link references when the option is enabled, fixing .dot exports of table relations of table names with uppercase characters on case-insensitive servers - Check the server's case-sensitivity setting and use that to control the checkbox when using the export interface to select .dot export This addresses Issue #920.
* Complete the implementation of supporting MySQL's XML schema format when ↵stuconnolly2010-11-051-0/+17
| | | | exporting. Also, restore our old format and give the user the choice during export (defaults to MySQL schema). Completes the implementation of issue #840.
* - Split out all of SPExportController's delegate methods to their own category.stuconnolly2010-10-241-67/+47
| | | | | | | | - Prepare for the implementation of PDF and HTML export by hiding the export options box for export types that don't need it. - Fix some spacing issues on the export dialog. - Create a new SPCategoryAdditions header that is included in the apps precompiled header, making all additions available to all classes. - Update strings files.
* Minor export controller init change.stuconnolly2010-10-211-1/+1
|
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-1/+0
|