aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/PSMTabDragWindowController.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-30 23:44:55 +0000
committerrowanbeentje <rowan@beent.je>2010-06-30 23:44:55 +0000
commit219afc56c02b508fbb6d706dfed4e1a1ccc949d4 (patch)
treede4e473de2a5fd1063c671733a5f7552e6080ba0 /Frameworks/PSMTabBar/PSMTabDragWindowController.h
parentba332e64c29622e0b69412cb2fea639182ac1d1c (diff)
downloadsequelpro-219afc56c02b508fbb6d706dfed4e1a1ccc949d4.tar.gz
sequelpro-219afc56c02b508fbb6d706dfed4e1a1ccc949d4.tar.bz2
sequelpro-219afc56c02b508fbb6d706dfed4e1a1ccc949d4.zip
Improve tab functionality, behaviour and interaction.
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
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabDragWindowController.h')
-rw-r--r--Frameworks/PSMTabBar/PSMTabDragWindowController.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabDragWindowController.h b/Frameworks/PSMTabBar/PSMTabDragWindowController.h
index 1727d8b8..babfb1a7 100644
--- a/Frameworks/PSMTabBar/PSMTabDragWindowController.h
+++ b/Frameworks/PSMTabBar/PSMTabDragWindowController.h
@@ -23,7 +23,7 @@
BOOL _showingAlternate;
NSRect _originalWindowFrame;
}
-- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask tearOffStyle:(PSMTabBarTearOffStyle)tearOffStyle;
+- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask tearOffStyle:(PSMTabBarTearOffStyle)tearOffStyle initialAlpha:(CGFloat)initialAlpha;
- (NSImage *)image;
- (NSImage *)alternateImage;