aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
Commit message (Collapse)AuthorAgeFilesLines
* Update source code compatibilityMax2017-03-311-6/+0
| | | | | | * Remove forward SDK declaration for 10.8 and below (since that is the minimum required development SDK) * Fix one case where a method unconditionally required a 10.9+ runtime * Move all of the forward/backward hacks into their own file
* Add a "tooltip" when picking a column type in structure view, explaining ↵Max2015-11-101-10/+1
| | | | | | basic properties of the type (part of #1090) This is mostly to help users understand what "Length" actually does for *INT types.
* Adapt background color of custom tooltips for 10.10Max2015-06-061-2/+3
| | | | (note: the shadow is still off)
* Fix an issue with certain tooltips being placed on the wrong screen in ↵Max2015-03-251-2/+5
| | | | | | certain multi screen configurations This did affect users with a vertical multi monitor setup using the classical (single Space) multi monitor mode.
* Addition to commit 2735e15bMax2015-01-041-3/+3
|
* Replace some NSDictionaries with literalsMax2014-12-131-1/+1
| | | | | | * [NSDictionary dictionary] → @{} * [NSDictionary dictionaryWithObject:forKey:] can safely be replaced. object==nil would have already thrown a NPE in the past. * Also replaced some (hopefully safe) NSArray initializers (ie. their objects should always exist).
* 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
|
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-16/+20
|
* - Fix more warningsrowanbeentje2011-03-141-11/+11
|
* Fix more compiler warnings, including a few bugsrowanbeentje2011-03-081-1/+1
|
* fixed compiler warningssqlprodev2011-03-011-4/+3
|
* • improved caret positioning for ordering out any kind of tooltip windows ↵Bibiko2011-01-191-2/+2
| | | | | | esp. for first word after soft-wrapping • fixed tooltip positioning for SPTextView - do not take the mouse location instead take the caret position
* • improved Default Bundle management for installation, updating, undeletionBibiko2011-01-051-8/+4
| | | | • if current NSTextView is not set to NSLeftTextAlignment show a SPTooltip at mouse location until we found a way the calculate the caret position correctly since [NSLayoutManager glyphRangeForCharacterRange:] returns a wrong NSRect
* • Bundle EditorBibiko2010-11-191-3/+8
| | | | | | | | | | | | - fixed saving and duplicating Bundles if Bundle contains other files/folder - fixed adding a new Bundle - added gui tooltips • SPTooltip - if no location was passed and first responder isn't a textView show the tooltip at the mouse location • CopyTable - show tooltip invoked by a Bundle command always at mouse location • Content / Custom Query Table - suppress tooltip of cell content if another tooltip (mainly displayed by a Bundle) is visible [shoudl be improved since iterating through the window list isn't so good]
* - Split out all of SPExportController's delegate methods to their own category.stuconnolly2010-10-241-1/+0
| | | | | | | | - 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.
* Review usage of notifications, afterDelay: and waitUntilDone:NO calls:rowanbeentje2010-04-121-0/+1
| | | | | | | - Add more calls to deregister watchers to fix crashes to closing threads or objects - Fix a couple of memory leaks - Alter a few calls to be performed on main thread (afterDelay: operates on the thread is is called on) - this fixed database reloading after import and field/index deletion error sheets
* Tidy up imports and fix 'Reverse Sort Order' when sorting connection ↵stuconnolly2010-03-311-0/+1
| | | | favorites (Thanks Hans).
* Fix a number of memory leaks, and over-releases, as both a result of manual ↵rowanbeentje2010-02-101-1/+1
| | | | inspection of leaks and Clang static analysis.
* - Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for ↵rowanbeentje2010-01-091-14/+15
| | | | | | | release builds, including a large number of 64bit compatibility upgrades and tweaks - Upgrade RegexKitLite to 3.3
* Updates to the 'use monospaced font' preference, making it a lot more ↵stuconnolly2009-11-141-1/+1
| | | | 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/+6
|
* - When a SPTooltip is showing, ensure that events are always passed on to ↵rowanbeentje2009-09-141-1/+4
| | | | the app - this fixes keyboard shortcuts not working when a tooltip is visible
* • SPFieldEditorSheetBibiko2009-08-271-1/+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
* • SPTooltip: added type "image"Bibiko2009-08-181-9/+57
| | | | | - show images directly as a NSImage in a NSImageView (this decreases the memory usage enormously) • applied new tooltip invocation for image blob data in Content Pane and Custom Query table
* • added SPTooltips for cell content in Content TableBibiko2009-08-141-1/+1
| | | | | | | | | - text strings are display with line breaks and tabs - if cell content represents image data display that image as transparent thumbnail (by using base64 encoded HTML img tag) Notes: - SPTooltip implementation to show an image via a NSImageView will be implemented soon (the HTML way needs too much memory due to base64 encoded string) - to discuss: Should we add a preference setting to display these tooltips?
* • improved SPTooltipBibiko2009-08-141-2/+4
| | | | - type "text" now displays \n and \t correctly
* • improved the closing behaviour of the SPTooltipBibiko2009-08-141-3/+7
|
* • minor changes to SPTooltipBibiko2009-08-141-2/+9
| | | | • some work on the SPFieldEditor's undo manager (has to be continued)
* • SPFieldEditor sheet now runs in a NSModalSession run loop to allow the ↵Bibiko2009-08-121-8/+8
| | | | | | | | | | | 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
* • finished implementation of SPTooltipBibiko2009-08-121-65/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: #import "SPTooltip.h" [SPTooltip showWithObject:@"<h1>Hello</h1>I am a <b>tooltip</b>" ofType:@"html" displayOptions:[NSDictionary dictionaryWithObjectsAndKeys: @"Monaco", @"fontname", @"#EEEEEE", @"backgroundcolor", @"20", @"fontsize", @"transparent", @"transparent", nil]]; [SPTooltip showWithObject:(id)content atLocation:(NSPoint)point ofType:(NSString *)type displayOptions:(NSDictionary *)displayOptions] content: a NSString with the actual content point: n NSPoint where the tooltip should be shown if not given it will be shown under the current caret position or if no caret could be found in the upper left corner of the current window type: a NSString of: "text", or "html"; no type - 'text' is default displayOptions: a NSDictionary with the following keys (all values must be of type NSString): fontname, fontsize, backgroundcolor (as #RRGGBB), transparent (any value) if no displayOptions are passed or if a key doesn't exist the following default are taken: "Lucida Grande", "10", "#F9FBC5", NO See more possible syntaxa in SPTooltip to init a tooltip
* • implemented the first working copy of SPTooltipBibiko2009-08-111-0/+280
| | | | | - not yet finished • added svn property "Id"
* • added SPTooltip classBibiko2009-08-111-0/+34
- initial setup - display a text or HTML tooltip for general messages under the caret position or located somewhere via initializing • fixed naming issue in SPNarrowDownCompletion