aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
Commit message (Collapse)AuthorAgeFilesLines
* Fix more warnings.stuconnolly2013-01-241-4/+1
|
* - Correctly draw/update the selection highlight within the SPTextView used ↵rowanbeentje2012-12-231-0/+23
| | | | in the Custom Query Editor (among others) as the selection is changed with the mouse
* - Tweak SPTextView background drawing, moving custom drawing into a ↵rowanbeentje2012-12-191-4/+2
| | | | different function, to allow "Highlight current query" to function again
* - Fix position of the autocomplete popup when the popup is just before a ↵rowanbeentje2012-08-211-25/+29
| | | | | | | | linebreak - Tweak autocomplete poup to show the text positioned underneath the target word - Consolidate code
* - Fix custom selection colours using a translucent colour being blended ↵rowanbeentje2012-07-301-14/+53
| | | | | | | | through to black or the window background, addressing incorrect colours in the Custom Query view when using selection colours with alpha values and window backgrounds showing through CREATE SYNTAX sheets (Issue #1099) - Fix crashes when editing certain colours in editor preferences after a window had been closed, due to not unregistering all observers on SPTextView dealloc - Enable "Draws Background" on the main Custom Query view text view, as custom colours were no longer being drawn after a change in r3750
* - Remove the last BWToolKit view items from the main nib (DBView) by ↵rowanbeentje2012-07-291-3/+4
| | | | | | | | redesigning the advanced Content Filter window - Tweak SPTextView to support translucent views, or views which are set not to draw their background - Fix Lion compatibility for advanced content filter default operator (Issue #1255)
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-11/+21
|
* Merged SP r3710 with Codasqlprodev2012-07-051-1/+1
|
* Move the BASH command code from the string additions category to remove the ↵stuconnolly2012-05-071-2/+4
| | | | 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/+5
|
* Missing from previous commit.stuconnolly2012-03-171-3/+4
|
* Merge in the SPMySQL Framework. This new framework should provide much of ↵rowanbeentje2012-03-171-6/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the functionality required from MCPKit and is based around its interface for relatively easy integration. Externally visible changes as a result of this merge: - Speed improvements, particularly when loading large data sets - Stability improvements, particularly related to connection state after the connection is dropped (eg Issue #1256) - Improved support for new MySQL data types, which should address Issue #1052. - Database structure retrieval and query cancellation now use a single persistent helper connection instead of lots of connections on-demand. This should help Issue #1097. - More internal commands now use queries instead of MySQL functions; for example USE queries are now used to trigger database selection, improving transcripts. This addresses Issue #1247. - Improved internal encoding work; while this needs support within the UI, it lays the foundation for issues like Issue #1280. Code improvements: - Much improved class layouts including extensive category usage - Improved documentation across framework methods - Support for fast enumeration across result objects - Rewrite fixes use of a number of deprecate functions - Much less code duplication across result set types - Improved encapsultation within the framework, limiting the number of methods exposed, and also not exposing all the MySQL headers From the Readme file: The SPMySQL Framework is intended to provide a stable MySQL connection framework, with the ability to run text-based queries and rapidly retrieve result sets with conversion from MySQL data types to Cocoa objects. SPMySQL.framework has an interface loosely based around that provided by MCPKit by Serge Cohen and Bertrand Mansion (http://mysql-cocoa.sourceforge.net/), and in particular the heavily modified Sequel Pro version (http://www.sequelpro.com/). It is a full rewrite of the original framework, although it includes code from patches implementing the following Sequel Pro functionality, largely contributed by Hans-Jörg Bibiko, Stuart Connolly, Jakob Egger, and Rowan Beentje: - Connection locking (Jakob et al) - Ping & keepalive (Rowan et al) - Query cancellation (Rowan et al) - Delegate setup (Stuart et al) - SSL support (Rowan et al) - Connection checking (Rowan et al) - Version state (Stuart et al) - Maximum packet size control (Hans et al) - Result multithreading and streaming (Rowan et al) - Improved encoding support & switching (Rowan et al) - Database structure; moved to inside the app (Hans et al) - Query reattempts and error-handling approach (Rowan et al) - Geometry result class (Hans et al) - Connection proxy (Stuart et al)
| * Final feature work on the SPMySQL branch before merging:rowanbeentje2012-03-141-5/+6
| | | | | | | | | | | | | | | | - Add a ping keepalive managing object to prevent retain cycles from the NSTimer - Add -[SPMySQLConnection copy] support - Refactor Hans-Jörg Bibiko's database structure retrieval, moving it out of the MySQL framework and building it around a copy of the connection. This reduces the amount of connections-over-time used by Sequel Pro to two constant connections (addressing Issue #1097) and improves robustness. - Use the database structure retrieval connection for faster query cancellation without an extra connection required, if possible
| * Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | * Moves the background color code for SPTextView into the class. Fixes #1073dmoagx2012-03-161-2/+6
|/
* • removed for syntax hiliting "ensureLayoutForCharacterRange" since it can ↵Bibiko2012-01-081-4/+0
| | | | cause for some unknown reasons an exception
* • removed setting of textColor after syntax hilitingBibiko2012-01-051-11/+0
|
* • removed blocking of SPTextView textStorage while syntax hiliting Bibiko2012-01-051-2/+2
|
* • fixed issue for line numbering view if associated textView is scrolled ↵Bibiko2012-01-051-15/+36
| | | | | | from origin {0,0}; now it's synchronized • minor speed ups for custom query editor
* Tidy up console/query controller.stuconnolly2011-09-031-0/+1
|
* Small tidy up.stuconnolly2011-07-311-2/+2
|
* - Prevent error bell when using the enter key to initiate a connection when ↵rowanbeentje2011-07-271-0/+6
| | | | | | | | keyboard focus is on the favorites outline view (Issue #1072) - Don't initiate a connection when the currently selected favorite is clicked again slowly - Match compiler #ifdef around braces to imrpove Xcode 3 file parsing
* merging SP_REFACTOR branch with trunksqlprodev2011-05-191-3/+15
|
* Small tidy up, mainly the addition of constants.stuconnolly2011-05-051-2/+2
|
* Fixes source text encoding problems accidentally introduced in r3273sqlprodev2011-04-141-25/+25
|
* Fixes source text encoding problems accidentally introduced in r3273sqlprodev2011-04-141-28/+28
|
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-5/+5
| | | | postNotificationOnMainThread: which also exists in TCMPortMapper.framework; NSUserDefaults access now permitted in SP_REFACTOR blocks for a few prefs keys
* Make some minor changes after reviewing r3271:rowanbeentje2011-04-141-4/+4
| | | | | | - Fix a few encoding issues - Recode a few [NSApp keyWindow] uses back to [SPDatabaseDocument parentWindow] following discussion; possibly for later refactoring into use of an error method
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-15/+137
| | | | UI code from functional code
* - Fix more warningsrowanbeentje2011-03-141-45/+52
|
* Fix more warnings.stuconnolly2011-03-131-2/+4
|
* fixed compiler warningssqlprodev2011-03-011-1/+2
|
* fixed compiler warningssqlprodev2011-03-011-2/+0
|
* • further speed optimisations for SQL syntax highlightingBibiko2011-02-031-23/+21
|
* • forgotten to apply a change of a NoodleLineNumber methodBibiko2011-02-021-1/+1
|
* • removed keyboard short-cut ?\008^C for "Copy as RTF" since it's not a ↵Bibiko2011-02-021-8/+1
| | | | frequently used function
* • some minor code cleaning and improvementsBibiko2011-01-241-19/+35
|
* • removed temporary method getRangeForCurrentWordForCompletionBibiko2011-01-211-1/+1
|
* • sped up getRangeForCurrentWordBibiko2011-01-211-2/+2
| | | | | | | - fixes also the short interruption of the cursor blinking - for completion the old method is used, since it's fine-tuned to use it - fix will come soon - preparation for user-defined word symbols • fixed issue for soft indent if user uses deleteForward: selector (⇧⌫)
* • fixed completion issue via alias namesBibiko2011-01-211-1/+5
|
* • implemented user-definable Soft IndentionBibiko2011-01-211-22/+111
| | | | | - instead of using \t as indention string the user can choose how many spaces should be used instead - addresses issue 956
* • invoke auto-completion only if the length of the pending edits is 1 ↵Bibiko2011-01-191-1/+1
| | | | (user typed one character) to suppress it while pasting or inserting larger text chunks
* • improved caret positioning for ordering out any kind of tooltip windows ↵Bibiko2011-01-191-12/+7
| | | | | | esp. for first word after soft-wrapping • fixed tooltip positioning for SPTextView - do not take the mouse location instead take the caret position
* • fixed issue to highlight the correct current query after undoing, i.e. ↵Bibiko2011-01-141-0/+3
| | | | | | | do not using the cache • added SP_SELECTED_TEXT_RANGE shell variable for Bundle support of scope Input Text • added 'insertText', 'setText', 'setSelectedTextRange' JavaScript functions to window.system bridge
* • disabled in [SPTextView boundsDidChangeNotification] the view update to ↵Bibiko2011-01-101-2/+2
| | | | | | avoid incorrect line number rendering while scrolling until the problem is found why it causes some crashes • fixed missing free() in [SPCopyTable executeBundleItemForDataTable]
* • trial to fix boundsDidChangeNotification for logs 1894, 1900, 1901Bibiko2011-01-061-4/+4
|
* • some minor code cleaningBibiko2011-01-051-3/+1
|
* • enabled Bundle main menuBibiko2011-01-051-0/+2
| | | | • improved rendering of line number display in Query Editor and Bundle command text view after scrolling to avoid displaying them unreadable