aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
Commit message (Collapse)AuthorAgeFilesLines
* - Fix saving of files or images added to the SPFieldEditorrowanbeentje2009-12-041-2/+2
| | | | | | - Fix a couple of memory leaks in the SPFieldEditor - Fix a crash caused by attempted reselection of databases after disconnection if no database was selected
* • remember the spell checker status in the blob field editorBibiko2009-11-191-1/+6
| | | | | | - status can be toggled by right-click in the text view and go to submenu "Spelling and Grammar" > "Check Spelling while Typing" Note: up to now "Check Spelling while Typing" wont' be checked in the GUI if it's enabled → TODO (maybe related to the "sheet issue")
* Updates to the 'use monospaced font' preference, making it a lot more ↵stuconnolly2009-11-141-12/+9
| | | | consistent across all table views. Also includes live updating when the preference is changed as well as its implementation in the query console, process list and variables table views.
* Tidy up.stuconnolly2009-11-071-2/+0
|
* Replace the use of hard coded preference keys with constants to prevent ↵stuconnolly2009-10-171-8/+9
| | | | issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
* • fixed three further typos for: objectForKey:@"NullValue"Bibiko2009-10-161-4/+6
| | | | • allow to enter the NULL value string even if the cell/field's maximal length is set to less then the actual NULL value string length (eg varchar(3) and NULL value string is @"NULL")
* • marked 'sequel-pro-print-template.html' as localizableBibiko2009-09-271-6/+31
| | | | | | | | | | | | • outsourced default QuickLook types into a localizable plist - prepared SP preferences and SP code to allow the user to add own QL types • prepared a localizable 'ContentFilter.plist' [not yet implemented fully] - this plist will held the default filter operators - this approach will give the user the chance to add own filters • removed three tiny memory leaks Note: In MCPResult.m variable 'MCPYear0000' was stored retained. Why? I removed it and couldn't encounter any problems.
* • re-enabled field editor's QuickLook for 10.6Bibiko2009-09-251-79/+182
| | | | | | | | | - This is up to now a kind of a 'hack' since SP will be compiled against SDK10.5 but if SP runs on 10.6 it'll use code from a 10.6 framework. - Under 10.6 full screen mode is available and QL does run in its own run loop ie now it's non-modal - Changed the way of removing temp files; now all files will be deleted while closing the sheet to fix issues if the user double-click at the QL item and the called app was too slow - this ended up in getting the message 'File not found' - Changed default container extension for images since 'pict' isn't support under 64bit 10.6; now SP makes usage of 'icns' • outsourced QuickLook types (show as pull down menu) to SP's preference plist. (up to now only 'power users' can change that type list via a Property List editor) • enhanced the caching behaviour of the sheet editor in terms of triggering a refresh if the text content was changed (this fixes the issue that it could happen that binary data were interpreted as text data)
* • fixed bug for exporting tables as XML: now the very last row will be ↵Bibiko2009-09-111-3/+7
| | | | | | written to file [ this fixes issue 404 ] • FieldEditorSheet: if string cell content is "NULL" select the entire string for convenience
* • SPFieldEditorSheetBibiko2009-08-271-2/+2
| | | | | | - ESC and ENTER will close a non-editable sheet * SPTooltip - first check if tooltip should be closed and then forward the current event (this fixes an issue if a tooltip is shown while a modal window appears which could block the closing of the tooltip
* • fixed in FieldEditorSheet:Bibiko2009-08-201-0/+4
| | | | - ensure that all changes made in editTextView are returned (eg for the case one enters as last character a 'ü' which was typed via ⌥uu and presses OK - the last typed u was ignored)
* • further improvement to SPFieldEditor's undo managerBibiko2009-08-141-23/+31
| | | | - try to trap the speed of typing better to create larger undo groups
* • minor changes to SPTooltipBibiko2009-08-141-22/+31
| | | | • some work on the SPFieldEditor's undo manager (has to be continued)
* • added to the SPFieldEditorController's text editor view its own ↵Bibiko2009-08-141-5/+56
| | | | | | | | | undoManager which runs in the same modal run loop - RETURN or a ' ' forms a undo group - undo groups will be formed after 5 run loops (to form longer block while writing quickly) Note: Has to be tested and fine-tuned if necessary
* • SPFieldEditor sheet now runs in a NSModalSession run loop to allow the ↵Bibiko2009-08-121-14/+32
| | | | | | | | | | | execution of code in NSDefaultRunLoopMode (including showing Tooltips) - improved max text length checking while inserting a text chunk if a selection is given (now it truncates it correctly) - instead of using NSBeep() while text length checking a Tooltip will be shown • fine-tuned SPTooltip: • max text validation in TableContent (cell editing) shows now a tooltip if text too long Note: Tooltip messages are tentative so far
* • in Table Content the button status of "edit spreadsheet or sheet-like" ↵Bibiko2009-08-111-16/+55
| | | | | | | | | will be saved in the Prefs • font settings in the Field Editor Sheet will be saved in the Prefs • improved max text length checking while using other InputManager (eg Japanese etc.) - still a bit under construction Note: each Beep() wil be replaced by a tooltip soon.
* • added to Custom Query table editing max text length validationBibiko2009-08-101-2/+12
| | | | | • SPFieldEditorController: - improved textViewDidChangeSelection: to eg saves to correct rendered glyph after inserting a non-base char + base char if this combination was typed as last glyph before pressing the OK button (otherwise foo¨ will be saved instead of fooü)
* • added to the FieldEditorSheet a max text length validationBibiko2009-08-101-1/+47
| | | | | | • added the max text length validation for the TableContent while editing in the FieldEditorSheet • reinvoked the validation of the max text length for TableContent editing while editing in a cell • fixed in TableContent: prevent the editing of data cells in gray if the cell displays the gray NULL value
* • added field name to Field Editor SheetBibiko2009-08-081-1/+2
| | | | | | - initial support (not yet finished) Note: maybe add information about field type, max length as attributed string
* Rename MainController to SPAppController.stuconnolly2009-08-081-1/+1
|
* • corrected SVN propertiesBibiko2009-08-061-1/+1
|
* In addition to fn+return give the OK button in the content edit sheet the ↵stuconnolly2009-08-051-2/+3
| | | | key equivalent cmd+return. Implements #321.
* In the field editor sheet:stuconnolly2009-08-031-68/+87
| | | | | | - Make some of the QuickLook format menuitem name's uppercase. - Run both the save and open panels as sheets to prevent blocking the entire app.
* Merge framework integration branch back to trunk. Summary of changes:stuconnolly2009-07-211-1/+0
| | | | | | | | | | | | | | | - Includes all custom code from subclasses CMMCPConnection and CMMCPResult, meaning they have subsequently been removed from the project. - All previous Sequel Pro specific code in the above subclasses has been removed in favour of the delegate (currently set to TableDocumet) informing the framework of such information. - All references to CMMCPConnection and CMMCPResult have subsequently been changed to MCPConnection and MCPResult. - Framework includes MySQL 5.1.36 client libraries and source headers. - Framework is now built as a 4-way (32/64 bit, i386/PPC arch) binary. - All import references to <MCPKit_bundled/MCPKit_bundled.h> have been changed to <MCPKit/MCPKit.h>. - New script 'build-mysql-client.sh' can be used to build the MySQL client libraries from the MySQL source. See the script's header for a list of available options or run it with no arguments to display it's usage. Note that there are still a few changes to be made to the framework with regard to removing Sequel Pro specific calls to the delegate. These however can be made later on as they have no effect on functionality and are merely design changes. Also, note that any future development done on the framework should be made to be as 'generic' as possible, with no Sequel Pro specific references. This should allow the framework to be integrated into another project without the need for SP specific code.
* • changed in Custom Query:Bibiko2009-07-171-6/+7
| | | | | - make usage of SPFieldEditor for displaying result data field (incl. blob data) - set to non-editable yet
* • Field Editor Sheet classBibiko2009-07-171-2/+22
| | | | | | - added the feature to set "isEditable"; according to "isEditable" GUI elements will be hidden or renamed - if no blob data reduce the minimal sheet size since no segment or quicklook control is needed
* • fixed: caching of QuickLook preview in Field Editor sheet is suppressed ↵Bibiko2009-07-171-17/+25
| | | | by alternating the temporary file name
* • fixed inField Editor Sheet:Bibiko2009-07-171-2/+6
| | | | - if textView was changed update hexView (if demanded) according to the correct data type
* • applied the new class SPFieldEditorController to TableContentBibiko2009-07-171-41/+61
| | | | • deleted in DBVview.xib Field Editor Sheet (out-sourced)
* • some further progress on outsourcing the Field Editor sheet for Content ↵Bibiko2009-07-161-0/+569
and Custom Query Tab