aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
Commit message (Collapse)AuthorAgeFilesLines
* • 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