aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
Commit message (Collapse)AuthorAgeFilesLines
* • added to TableContent.m:Bibiko2009-06-191-1/+1
| | | | | | | | - (NSArray * )currentDataResult -- like currentResult but returns "BLOB" for blob data and a base64 encoded string for images à la <IMG SRC="data:image/auto;base64,"> - (NSString * ) base64EncodingOfData:(NSData * )data withLineLength:(unsigned int)lineLength -- it returns a base64 encoded string of data • changed: currentDataResult is now called for printing from the Table Content Browser
* • added to SPArrayAdditions.h: NSArrayObjectAtIndex() inline functionBibiko2009-06-181-2/+3
| | | | | | | | | - id o = NSArrayObjectAtIndex(anArray, index) :== id o = [anArray objectAtIndex:index] - this speed up it ~3µs per call - replaced that inline function for such calls within loops to speed up them • used IMP function pointers for keepAlive calls within queryString: • set -O3 (Fastest) compiler option • allow in preference pane "Tables" to set the Limit up to 50000
* • some tiny improvements to speed up queryString:Bibiko2009-06-181-1/+7
| | | | | | | | | - cache the function pointer for delegate willPerformQuery: - if Console Log window is NOT visible suppress reloadData and scrolling to last line (this speeds it up remarkably); if user opens the Console log window it will be synchronized - timeIntervall for execution time will be divide by CLOCKS_PER_SEC in [NSString stringForTimeInterval] - removed for utf8 enc in cString the return UTF8String (no significant difference) • now execution time shows only the time for mysql_real_query
* Move the QuickLook interface to its own header file.stuconnolly2009-06-151-0/+1
|
* Add support for titlebar connection status images, and use for SSH tunnels.rowanbeentje2009-06-141-0/+38
| | | | | | | - Add view and code to support drawing a connection status icon at the left of the titlebar - Use for SSH tunnels; completes Issue #114. - Remove reference to an image resource "j" in the DBView - fixes console log errors.
* • moved code for de/increasing font and drag&drop feature (content or ↵Bibiko2009-06-131-1/+1
| | | | | | | | | | | | | | while holding ⌘ path) to SPTextViewAddition - two finger zooming gesture is disabled for NSTableView cells - i.e. all NSTextViews including NSTableView cells inherit these feature • simplified QuickLookFormat IBActions - added bin/text storing type to each action • QuickLook animation set to SP's window middle point • fixed issue that while having an image in editSheet an attribute change (font/size) in the editTextView destroyed the image data • fix to allow again drag&drop an image to editSheet • hide text/image/hex segment controll and QuickLook pull down button if user chose multipleLineEditingButton for non-blob fields • disabled NSLog of print result in TableDocument
* - Fix saving of SSH tunnel passwords entered in preferencesrowanbeentje2009-06-111-0/+1
| | | | | | - Select favourites added in preferences - Scroll to newly added or duplicated favourites in both preferences and connection sheet
* Add a very basic preference to disable all query logging. This can be ↵stuconnolly2009-06-111-1/+6
| | | | expanded upon to disable different types of queries.
* - Table Info pane now has fixed heightavenjamin2009-06-101-4/+48
| | | | | - Table Info pane is collapsable - Export Controller code cleanup
* small fix for WebView not printing background colorsmtvee2009-06-101-0/+3
|
* • reload table list, database pull-down menu according to user's ↵Bibiko2009-06-051-0/+41
| | | | | | | | | statements in the Custom Query editor if necessary - if statement begins with: use, create, alter, rename, drop • reload table list, database pull-down menu according to imported statements • sped up "Import MySQL Dump" • fixed some tiny issues of the last commit
* - Added toolbar icon for table relations.avenjamin2009-06-051-5/+31
| | | | - some TableDocument code cleanup
* • added: the "Show Create Syntax" window now follows the selection in the ↵Bibiko2009-06-041-2/+14
| | | | | | table list if it was already opened • commented out the NSLog "not parsed" in SPTableData.m
* • added: syntax highlighting to the HUD window "Show Create Syntax"Bibiko2009-06-041-1/+1
| | | | • fixed: context menu item validation for "Show MySQL Help": hide it when no connection to the customQueryInstance is found
* Added print accesory view with option to Print Backgroundsbamse162009-06-041-0/+15
|
* Further SSH tunnel improvements, password handling improvements, and minor ↵rowanbeentje2009-06-041-45/+73
| | | | | | | | | | | | | bugfixes: - SSH tunnels can now correctly show dialogs for ssh queries, eg host key mismatches - SSH tunnels are now correctly closed by the document for connection failures - Keychain password item name and account generation has been moved to within the keychain class, to centralise generation for consistency - Keychain item names and accounts now correctly deal with nil values, allowing more keychain items to be read - "Add to favorites" button and menu item now correctly store passwords and SSH tunnel settings - Duplicating favorites in preferences now selects the newly created favorite instead of deselecting everything - Fixes an occasional crasher sometimes encountered in keychain usage
* - SSH tunnel now correctly uses placeholder/default port numbersrowanbeentje2009-05-291-1/+1
|
* Add support for SSH tunnels, improve password security, and tweaks:rowanbeentje2009-05-281-137/+301
| | | | | | | | | | | | - Implementation of a new SPSSHTunnel class, designed to closely integrate SSH tunnels within Sequel Pro. - Integration of SPSSHTunnel - new connection methods using callbacks, and CMMCPConnection integration - Keychain class upgrade to include the new SPSSHTunnel keychain password helper on the trusted access list for new passwords - Keychain passwords are now held in memory/UI for only as long as necessary, increasing password security - Updated interface to enable/add SSH tunnel functionality - Remove old SSHTunnel class - Addition of new target for the SSH Tunnel password assistant, addition as a dependency of the main target, and addition to build script to copy into resources directory - Fix a keychain password deletion crash
* Change the name of the 'Table Status' toolbar item to 'Table Info' and ↵stuconnolly2009-05-271-8/+9
| | | | display it by default.
* Redesigned table information pane.stuconnolly2009-05-271-5/+13
|
* Issue #227 - bamse162009-05-251-1/+1
| | | | | | Added paper size option in the print panel. Will check if this is fine instead of enabling the page setup menu again.
* New preference to allow the displaying of vertical grid lines in table views.stuconnolly2009-05-191-9/+16
|
* More header updates for source files, including Subversion Id property.stuconnolly2009-05-191-0/+2
|
* close issue #9, connect window help button now points to Getting_Connected ↵abhibeckert2009-05-181-0/+5
| | | | in online wiki
* Minor enhancements to the server variables sheet, including:stuconnolly2009-05-171-0/+34
| | | | | | | | - Allow saving the variables to a file in MySQLs config format. - Truncate variable names and values instead of clipping them. Expect live filtering as future enhancements.
* More updates related to issue #192.stuconnolly2009-05-151-3/+4
|
* preliminary support for constraint editingmtvee2009-05-141-0/+22
|
* Issue 233: Option to copy field headings from result panelsbamse162009-05-141-18/+0
| | | | | | Implementation of copy with column names menu item Removal of copy column names
* Fixes issues #255 and #257avenjamin2009-05-131-7/+7
| | | | | - Favorites list in connection sheet was moving bottom grey border when scrolling. (#255) - Missing keys for a favorite item were return NULL values causing field values from previously selected favorite to remain. (#257)
* - added ability to view function and procedures and preliminary ability to ↵mtvee2009-05-131-7/+53
| | | | input same via the editor
* Issue 233: Option to copy field headings from result panelsbamse162009-05-051-7/+42
| | | | | | Also replaced some NSLog with DLog/ALog
* • added "MySQL Help" to the MainMenu > Help submenuBibiko2009-04-301-2/+16
| | | | | | - it shows the MySQL Help TOC of the front most tableDocument mysql connection, i.e. each tableDocument has its own Help window (due to the fact that the Help is version specific), and makes it the keyWindow - changed the way for getting the mySQLversion into the CustomQuery; now a new tableDocument set it via [customQueryInstance setMySQLversion:foo]; the other way was to unsafe regarding to get the version if MySQL Help was invoked via MainMenu • Help window and Create Table Syntax window will be released while closing the tableDocument
* • ADDED createViewSyntaxPrettifier method to a NSString to make the syntax ↵Bibiko2009-04-231-6/+13
| | | | | | a bit more readable - used for show/copy create view syntax as well as for a MySQL dump
* - Update delete table and database warning messages to be more user friendly ↵stuconnolly2009-04-171-6/+14
| | | | | | | | (issue #192). - Also make these messages have a style of critical to indicate the potential loss of data as a result of performing the operation. - Updated Localizable.strings to accommodate new dialog messages.
* - The connection sheet Edit button now opens the favourites list in ↵rowanbeentje2009-04-161-1/+8
| | | | | | | preferences and selects appropriately; this resolves the initially planned changes for Issue #232. - Move updateDefaultFavoritePopup in SPPreferenceController to a public method and set TableDocument to update it when adding favorites
* - Amend the connection sheet to add an "Add to favorites" button, remove ↵rowanbeentje2009-04-161-78/+36
| | | | | | | | the + and - buttons, and re-enable double-click to connect. This addresses the majority of Issue #232, although the "Edit" button is not yet functioning. - Fix a bug where if an autoconnection failed, connection was automatically reattempted - Add a name field to the connection sheet, and display the name in the window title in place of user@host if set
* - Update the connection sheet favourites view to bind to the preferences ↵rowanbeentje2009-04-151-48/+25
| | | | | | | directly to pick up updates more quickly - Improve favouritesAlreadyExists check to respond correctly if the connection database, host or user is blank
* - Add a unique ID to each favourite, which is also used when interacting ↵rowanbeentje2009-04-141-11/+15
| | | | | | | | ith the keychain. This resolves the last part of Issue #186 and associated problems (ie multiple connections via a tunnel with only the port differing - now can store different passwords). - Duplicate function in prefs now also duplicates the password - Fix a few places which created a blank keychain entry when no password was present
* Added printing support via WebKit WebViewbamse162009-04-111-9/+113
|
* - Make MainController the application delegate, and override standard ↵rowanbeentje2009-04-101-3/+9
| | | | automatic creation methods to only trigger automatic connection (if enabled in prefs) for automatically created windows
* - part 4 of merge from 'avenjamin' branch into trunk.avenjamin2009-04-101-12/+30
| | | | - committing Source
* Implementation of enhancement described in issue #75. You can now add the ↵stuconnolly2009-04-101-0/+48
| | | | current connection details to your favourites provided it doesn't already exist.
* That shouln't be there. Copy/paste error.stuconnolly2009-04-101-4/+3
|
* Fix for issue #190. As the connection sheet tableview uses bindings, ↵stuconnolly2009-04-091-1/+32
| | | | renaming a favourite wouldn't update the associated Keychain item. The item is now updated whenever the favourite name is changed.
* Make table operation messages more user friendly (issue #192) and display ↵stuconnolly2009-04-091-126/+251
| | | | them in sheets instead of modal dialogs. Also performed a general tidy up of TableDocument.[hm].
* - Select 'drop tables' option for MySQL export by default, to improve ↵rowanbeentje2009-04-061-4/+13
| | | | | | | backup-type process and more closely match mysqldump, and correctly drop views - Consistently set and restore the encoding appropriately for SQL import/export, and export to UTF8 files to correctly store all characters. Goes a good way towards addressing Issue #116.
* Fix an issue where by the show/hide console menu item was not being updated ↵stuconnolly2009-04-051-9/+24
| | | | when the toolbar item was used. Also add more interface validation by only enabling the 'Clear Console' menu and toolbar items when there is at least one message in the console.
* - Fix an invalid reference to a missing pulldown_arrow image causing ↵rowanbeentje2009-04-051-0/+3
| | | | | | | | invalid log entries - Set the focus to the custom query text field when appropriate when switching to the custom query tab - Add the ability to set the custom query editor font, save and load it from preferences, and no longer reset the font on queries
* Change the toggle console menu item's title to either 'Show' or 'Hide' console.stuconnolly2009-04-021-1/+8
|
* Fix 'Clear Console' menu item, which was disabled because of missing ↵stuconnolly2009-03-301-0/+8
| | | | 'clearConsole:' method in TableDocument.m.