aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
Commit message (Collapse)AuthorAgeFilesLines
* - Address further Release/Distribution build warningsrowanbeentje2013-05-221-7/+7
|
* - Fix hangs when adding columns to large tables after the table has beeen ↵rowanbeentje2013-05-091-1/+5
| | | | viewed already, addressing Issue #1710
* Fix remaining 10.6/7 build warnings.stuconnolly2013-02-171-2/+3
|
* Fix more warnings.stuconnolly2013-02-171-1/+1
|
* Fix more wanrings by creating a protocol that delegates of the copy table ↵stuconnolly2013-02-161-14/+8
| | | | should conform to.
* Changing SP_REFACTOR macro to SP_CODAsqlprodev2013-02-141-26/+26
|
* Changes required to merge Sequel Pro r4011 into Codasqlprodev2013-02-141-2/+2
|
* Fix more warnings.stuconnolly2013-01-251-37/+38
|
* - Rearrange some menu shortcuts: ⌘F is now used on the Content tab to set ↵rowanbeentje2012-12-171-7/+0
| | | | the focus to the Filter Content tab bar. ⇧⌘F is used to show the advanced content filter table. This allows ^⌘F to be used for the standard OS X fullscreen window command, addressing Issue #1513.
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-13/+23
|
* Move the BASH command code from the string additions category to remove the ↵stuconnolly2012-05-071-9/+10
| | | | dependency on SP specific code and all the tests to build successfully.
* #ifdef'ing out references to frameworks that are not used in SP_REFACTOR buildssqlprodev2012-03-291-0/+4
|
* - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-4/+0
| | | | | | | fix nightly builds - Fix warnings
* tweaks to compile on Xcode 4 / 10.6 SDK for SP_REFACTORsqlprodev2012-03-271-0/+34
|
* - Fix incorrect Copy as SQL INSERT processing leaving out commas; this ↵rowanbeentje2012-03-191-16/+13
| | | | | | | addresses Issue #1300 - Improve Copy as SQL INSERT logic to correctly calculate maximum line lengths
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-20/+16
| | | | | | | | | | | | 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
* - Cleanup: improve compatibility with 10.7 SDK to reduce compiler warningsrowanbeentje2012-02-081-21/+21
|
* - Expicitly cast parameters before passing into NSString formatters ↵rowanbeentje2012-01-091-1/+1
| | | | assuming 64-bit lengths; this addresses exceptions and hangs viewing table contents on 32-bit machines, many thanks to stuart02 for identifying and tracking down this issue
* - Update code to use NSStrings for NSTableColumn identifiers, as per 10.7 SDKrowanbeentje2011-10-171-9/+9
| | | | | - Update localizable strings
* - Rework table data saving to ensure that cells that should be edited via ↵rowanbeentje2011-10-051-0/+39
| | | | | | | the edit sheet aren't then overwritten by the cell value, potentially causing data truncation in 10.5. This addresses Issue 1196. - Consolidate field editing in sheet logic
* Rework linebreak handling in content and custom query result views, as ↵rowanbeentje2011-09-211-4/+31
| | | | | | | | | | | triggered by Issue #1184: - Display table cells on a single line for preview purposes - Display gray pilcrow/reverse pilcrow placeholders instead of linebreaks - If a cell contains linebreaks, automatically trigger sheet editing mode - Handle newly displayed linebreaks in column width detection - If using the up/down arrow keys in a field editor, allow them to select the previous/next line within an editor if appropriat (instead of always moving to the previous/next row)
* Small tidy up.stuconnolly2011-07-311-77/+66
|
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-10/+0
| | | | postNotificationOnMainThread: which also exists in TCMPortMapper.framework; NSUserDefaults access now permitted in SP_REFACTOR blocks for a few prefs keys
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-15/+56
| | | | UI code from functional code
* - Fix more compiler warningsrowanbeentje2011-03-151-18/+18
| | | | | - Tweak README
* Fix more compiler warnings.stuconnolly2011-03-141-0/+1
|
* fixed compiler warningssqlprodev2011-03-011-0/+1
|
* fixed compiler warningssqlprodev2011-03-011-3/+3
|
* fixed compiler warningssqlprodev2011-03-011-1/+0
|
* • bound showFilterTable to main menu's Edit > Find > Find… menu itemBibiko2011-01-191-0/+11
|
* • improved error handling while writing SP_BUNDLE_TABLE_META_DATA esp. ↵Bibiko2011-01-111-20/+22
| | | | while switching databases
* • disabled in [SPTextView boundsDidChangeNotification] the view update to ↵Bibiko2011-01-101-0/+1
| | | | | | avoid incorrect line number rendering while scrolling until the problem is found why it causes some crashes • fixed missing free() in [SPCopyTable executeBundleItemForDataTable]
* • fixed bug for setting SP_BUNDLE_INPUT_TABLE_METADATA if user changed ↵Bibiko2011-01-091-2/+13
| | | | column order in Content and Query Editor table
* Improve column autosizing:rowanbeentje2011-01-081-2/+6
| | | | | | - Use the parent scrollview width rather than the table width to calculate available space; fixes issues with the table width reflecting the previous selected table - Take account of cell spacing and scrollbar width to avoid horizontal scrolling where possible
* • fixed issue form redirecting output actions via exit codes if Bundle's ↵Bibiko2010-12-211-3/+4
| | | | | | default output action was None • renamed constants to avoid confusing
* • in HTML output window hyperlink references which begin with file:// will ↵Bibiko2010-12-161-1/+1
| | | | | | reveal that file in Finder • in SPCopyTable for tab-delimited row data replace \t by ⇥ and \n by ↵ if they occur in data cells for convenience
* - When saving rows in the table content view, only include those fields ↵rowanbeentje2010-12-131-12/+12
| | | | | | | | which have altered values in the UPDATE query, improving speed and reducing the chance of issues when copying queries or altering rapidly changing tables. This addresses Issue #527; thanks to Tobias Mollstam for contributing a patch which prompted this update. - Rename SPTableContent's "addRowToDB" to "saveRowToTable" for clarity, and clean up the code for speed and clarity - Correctly save numeric fields as NULL if the value is blanked
* • made usage of more constants to avoid double-storing stringsBibiko2010-12-121-1/+1
| | | | • fixed JavaScript alert and confirm window in HTML output window
* • HTML output window's JavaScript supportBibiko2010-12-121-1/+1
| | | | | | - changed the approach to make the HTML output window the key window; now it could be done directly via a JavaScript command: window.system.makeHTMLOutputWindowKeyWindow() - added the chance to ask Sequel Pro via JavaScript for run-time shell variables via window.system.getShellEnvironmentForName('shell_var_name') • more usage of constants
* • Bundle CommandsBibiko2010-12-091-1/+3
| | | | | | - added shell vars SP_CURRENT_EDITED_COLUMN_NAME, SP_CURRENT_EDITED_TABLE for Input Field scoped commands if invoked from a table cell field editor - added shell var SP_TABLE_DATA_SOURCE (content or query) - fixed table row change trigger for custom query tableView
* • Bundle commandsBibiko2010-12-081-5/+44
| | | | | | | - reworked invocation via keyboard short-cut to allow to fall back to General scope - added chance to redirect the output action via command exit codes; useful if the normal output is an HTML window but an error occurred, now one can display the error as tooltip for instance - unified file hand-shake file names by one uuid - made usage of more constants and renamed some shell vars
* • Bundle command supportBibiko2010-12-071-169/+216
| | | | | - fixed issue for commands without assigning a key equivalent - output table meta data about type, type grouping, length, auto_inc, PRI key etc. for Data Table scope commands and sequelpro url scheme command ExecuteQuery
* • Bundle CommandBibiko2010-12-021-23/+145
| | | | - for Data Table scope added the chance to specify the handling of BLOB fields (if underlying data are kind of NSData or GEOMETRY) as 'Exclude', 'Include', 'save as image file - the data will be saved as tif file and the path will appear in the table', 'save as file - the data will be saved as raw dat file and the path will appear in the table'; for GEOMETRY fields if set to 'save as {image} file' the representation will be saved as PDF file otherwise the WKT string appears
* • Bundle CommandsBibiko2010-12-011-0/+1
| | | | | - make sure that each HTML output window will be released - if a triggered command will outputs its result in an HTML window invoke it only if the HTML output window is already open; this enables the user to "switch on/off" such a trigger
* • added chance to cancel an activity - up to now a running Bundle command ↵Bibiko2010-12-011-1/+8
| | | | | | - from the Activities pane (toggable via double-clicking at Table Information header); it's still tentative and the correct cancel icon will follow asap • added notification system for updating the activities pane (SPActivitiesUpdateNotification)
* • Bundle commandsBibiko2010-11-301-1/+1
| | | | | | - before closing a db doc window kill all commands associated to this doc - suppress an error message if a bash command was killed via code 9 - added a temporary and preliminary table view to display command activities (double-click at TABLE INFO header to toggle and refresh it - only for testing purposes - it shows all commands started from that db doc and a General command names)
* • Bundle commandsBibiko2010-11-291-1/+1
| | | | | - register running commands for each SPDatabaseDocument or if the command runs via 'General' for NSApp delegate - kill all running commands before SP will be terminated
* • Bundle Command supportBibiko2010-11-261-2/+15
| | | | | | - added shell var SP_ICON_FILE - a bundle command which outputs its result as HTML window will write the data in the same window, ie it won't be create each time a new window; the window will be identified by the bundle's uuid - fixed issue while saving a short-cut in keybinding.dict format, now it ignores possible diacritics - maybe bug in ShortcutRecorder for method [aRecorder keyCharsIgnoringModifiers] since in the objectValue it's set correctly
* • Bundle EditorBibiko2010-11-231-2/+33
| | | | | | | - fixed gui arragement - suppress error message if no ouptut key found in command.plist • added sequelpro://ID@/passToDoc/SelectTableRows/1/3/4/.. scheme command which selects given rows in current table if a SPCopyTable is the first responder; not valid given rows are ignored • added SP_SELECTED_ROW_INDICES as passed shell variable for Data Table scope
* • Bundle EditorBibiko2010-11-231-101/+101
| | | | | | | - bailed out from approach to assign more than one scope to Bundle commands; now there're three scopes available: Input Field (incl. Query Editor since it only differs in current_query and insert_as_snippet which falls back to current_line and tooltip message), Data Table, and General (which means that these commands are available app-wide) - moved "Disable Command" to scope popup menu since it's related - Input Field and Data Table commands will be shown as submenus in the Bundles main menu; all General commands will be added without creating a special submenu (only Category submenus will be generated) - fixed and simplified several issues