aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar
Commit message (Collapse)AuthorAgeFilesLines
* Replace some NSDictionaries with literalsMax2014-12-132-4/+4
| | | | | | * [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).
* Add cast for [NSApp delegate]Max2014-12-131-1/+1
| | | | | * (Also changed some outdated URLs) * Replaced [NSApplication sharedApplication] with NSApp
* Reformatting code for modern ObjCMax2014-12-131-1/+1
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Remove a private API in PSMTabBarCellXu Jie2014-12-019-49/+50
| | | | | | Directly assigning to _controlView of a NSActionCell is private and not allowed by Mac App Store. An _customControlView is used to replace _controlView in PSMTabBarCell to avoid direct assigning to _controlView. This should be the last private API to remove before going to Mac App Store.
* Fix a drawing issue with the tab bar (HiDPI only)Max2014-11-301-5/+5
|
* Fix Tab bar colors in 10.10Max2014-11-212-9/+62
|
* Fix run-time warnings due to use of deprecated [NSImage ↵rowanbeentje2014-02-109-76/+35
| | | | compositeToPoint:...] operations
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-262-2/+2
|
* Fix remaining warning.Stuart Connolly2014-01-171-1/+1
|
* Formatting.Stuart Connolly2013-11-301-6/+3
|
* * This change adds basic tab coloring support for favorites - ** POC / NEEDS ↵dmoagx2013-10-234-8/+73
| | | | | | | | | REVIEW ** Known issues: * There might be additional colors be shown when dragging tabs between windows * The color set might need fine tuning * Coloring of items in the favorite outline view is not yet handled
* - Fix window update notification action within PSMTabBar, only redrawing ↵rowanbeentje2013-06-132-6/+25
| | | | the tab bar if the window state has changed. This significantly reduces CPU usage when mousing around the window by avoiding needless draws, and also addresses graphics corruption/artefacts when drawing above a blurred background, addressing Issue #1678
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-213-15/+14
| | | | enable some more
* Fix warnings due to not conforming to 10.6 protocols.stuconnolly2013-01-241-1/+2
|
* - Call the NSWindow super implementation of validateMenuItem: in SPWindow, ↵rowanbeentje2013-01-051-2/+8
| | | | | | | | fixing Show Toolbar/Hide Toolbar menu item title not being updated correctly - addresses Issue #1521 - When the toolbar is hidden, draw a line in the window to cover up the bottom border of the window's title bar, improving appearance - Improve tab appearance when toolbar is hidden
* - Add Retina versions of the tab close buttonsrowanbeentje2012-12-1339-10/+14
| | | | | | - Recompress other PSMTabBar images where necessary - Improve drawing of the tab bar in response to window state change, allowing better colour display in edge cases and particularly when sheets are open
* - Fix a number of small memory leaksrowanbeentje2012-04-142-15/+6
|
* - Improve mouse tracking logic in PSMTabBar, fixing dragging issues (Issue ↵rowanbeentje2012-04-021-1/+8
| | | | #1003)
* PSMTabBar improvements:rowanbeentje2012-04-023-56/+44
| | | | | | | - Add a new -destroyAnimations method to the tab bar and call it when tearing down the parent SPWindowController; this prevents animations redrawing the document after window close, fixing a number of crashes. - Improve the logic for collapsing and uncollapsing the tab bar as tabs are added and removed, fixing height calculation errors leading to Issue #1082 - Improve tab bar draw when animating in the Sequel Pro tab style
* - Lion compatibility improvement: add support for fullscreen windows, on ↵rowanbeentje2011-08-163-4/+13
| | | | | | | | | | | the main window only; hide SSH/SSL status when entering fullscreen mode, to prevent drawing issues - Lion compatibility improvement: update tab colours under 10.7 to match system styles - Lion compatibility improvement: fix issues dragging tabs out of windows and into other tab bars - Lion compatibility improvement: fix QuickLook issues under 10.7, including windows which couldn't be closed, fullscreened, or crashes - Fix exceptions in the bundle controller when using tab switching keys - Lion compatibility improvement: use overlay scrollers where possible
* Add the ability to double click a tab to duplicate the connection in a new ↵stuconnolly2011-05-092-32/+60
| | | | tab (equivalent to the 'Open Database in New Tab' menu item). Implements issue #1040.
* - Fix more compiler warningsrowanbeentje2011-03-152-2/+4
| | | | | - Tweak README
* - Fix all warnings in the PSMTabBar framework, including a fix for a 10.5 ↵rowanbeentje2011-03-0315-204/+244
| | | | dragging issue and implementing Safari-style fadeout of previous window shell when dragging the last miniwindow out of a tab bar
* Fix compiler warnings.stuconnolly2011-03-012-2/+2
|
* • fixed several memory leaks in PSMTabBar for NSMutableParagraphStyle ↵Bibiko2011-01-206-15/+23
| | | | (thanks to report i957) and NSShadows
* - Change window change notifications from key change notifications to main ↵rowanbeentje2011-01-161-2/+2
| | | | change notifications - fixes issues with tab bars showing incorrect colours when displaying sheets
* - Tweak tab bar background colour when the window is in the background to ↵rowanbeentje2011-01-051-3/+3
| | | | decrease contrast
* More work on tab creation target and actionavenjamin2010-09-152-6/+40
|
* Add ability to double click the empty area of the tab bar to create a new tab.avenjamin2010-09-152-40/+60
| | | | - Slightly limited in that the addTabButton's target and action must be set for it to work.
* Improve tab dragging:rowanbeentje2010-08-031-5/+3
| | | | | | - Fix toolbar issues when the last tab is dragged "out of" a window (eg a window is moved via the only tab left inside it) - Fix window positioning flicker when dragging a tab out of its window
* Tab tweaks:rowanbeentje2010-07-201-3/+3
| | | | | | | | - Sheets now appear positioned underneath the tab bar if visible - Tweak bottom corner drawing for a clearer outline, without highlight overlay - Frontmost tab no longer displays server name in the tab Also fix exception when right-clicking on an index to reset auto-increment.
* Finalise Sequel Pro tab style:rowanbeentje2010-07-128-48/+45
| | | | | | | | - Add custom Safari-style tab close buttons - Tweak margins, especially on the right when a progress indicator is active to avoid doubled margins - Fix tab bar rendering when using font/help etc windows Also update the .strings files to match latest changes
* Tab tweaks:rowanbeentje2010-07-052-2/+7
| | | | | | - Improve hideForSingleTab: settings changes to only update the tab bar if only one tab exists; fixes tab sizing on drag start caused by placeholder cell/update tab bar display conflict - Improve tab drag location detection, particularly when dragging tabs into a new tab bar; drags into new tab bars now respond quickly and correctly
* - Fix tab bars in windows with only one tab not disappearing after dragging ↵rowanbeentje2010-07-031-4/+4
| | | | | | | a tab past/through them, by using PSMTabBar notifications instead of our own notifications; also fix PSMTabBar notification ordering. - When a tab drag starts, reorder all windows in front of other applications
* - Further improve casting for dist buildsrowanbeentje2010-07-011-1/+1
|
* - Update localisable stringsrowanbeentje2010-06-302-3/+1
| | | | | | - Fix a casting issue preventing release/dist builds - Remove a line of old debug
* Improve tab functionality, behaviour and interaction.rowanbeentje2010-06-3010-153/+380
| | | | | | | | | | | | | | | | | | | | | PSMTabBar general improvements: - Fix a phantom tab appearing in windows a tab was just dragged out of - Add support for a new control usersSafariStyleDragging property; this causes tabs being dragged inside a tab bar to snap to the tab bar, be drawn at full transparency (also no longer darkening the placeholder position), and alters tab ordering within the tab bar to be based on the tab position rather than the mouse position, for a more Mac-like reordering feel. - Add support for dragging items onto the menubar to cancel the drag - Alter the image of the dragged tab to use a tab drawn onto a transparent background instead of snapshotting a rectangle around the tab, improving drag appearance - Allow tabs to be dragged partially off screen and keep their position instead of snapping back fully onto the screen - Improve behaviour when dragging tabs out of and back into tab bars, or into new windows, resizing the tabs in the target tab bar to improve display and no longer intermittently showing close buttons while dragging - Pull windows to the front as tabs are dragged onto their tab bars - Abstract Custom Query Editor text snippet code, adding a delegate method so code could be moved to the SP window manager. Sequel Pro tab styling improvements: - Improve and clean up tab drawing code - Draw background tabs with shadows as appropriate - Improve logic for how background tab edges are drawn, handling edges cases better (active tab in overflow menu etc) and vastly improving drawing when a tab is being dragged (respect placeholder position when stacking tabs, draw edges on either side) Sequel Pro tab behaviour improvements: - Improve show/hide tab bar interaction - Improve window positioning after creating new windows via a drag - Alter tab dragging out of the tab bar to use an image based on the full window appearance - looks better, and fixes issues like the tab bar background not being drawn while dragging
* • made SP more robust against fast closing of tabs and windowsBibiko2010-06-291-2/+2
| | | | • setHideForSingleTab:YES after opening spfs session
* • simplified and unified tab tooltipsBibiko2010-06-181-1/+2
| | | | • added tooltips for tab's overflow menu
* Enable the "Sequel Pro" tab style by default, and include the following fixes:rowanbeentje2010-06-182-39/+36
| | | | | | | | - Fix display of the overflow menu - Improve tab spacing and internal layout - Improve tab names for documents to correctly show the database for background documents in additional cases - Update strings files
* • forgotten to remove debug logs for r2337Bibiko2010-06-171-1/+0
|
* • if a text string is dragged on tab this tab will be selected and the ↵Bibiko2010-06-171-1/+7
| | | | corresponding db doc switches to Custom Query editor to be able eg to drag a query from one tab to another one
* - Further improve appearance of Sequel Pro tab style (still hidden): fixed ↵rowanbeentje2010-06-172-33/+49
| | | | | | | drawing glitches, improved spacing, improved edge drawing - Enable tab switch commands even when documents are working
* - Add tab bar shadow and active tab shadows to the Sequel Pro tab style ↵rowanbeentje2010-06-151-47/+77
| | | | (still hidden)
* Initial stage of re styling the tab bar to actually look half decent.avenjamin2010-06-146-15/+760
| | | | | - Change line 373 of PSMTabBarControl to "SequelPro" to see new tabs. - The drawing of the tab edges needs to be redone on the very edge of each tab instead of being inset by a number pixels to resolve a few issues.
* - Replace the precompiled PSMTabBar framework with a build-from-source ↵rowanbeentje2010-06-0763-0/+9409
dependency, in preparation for future code and style changes