aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/PSMTabBarControl.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-04-02 00:23:52 +0000
committerrowanbeentje <rowan@beent.je>2012-04-02 00:23:52 +0000
commit09ed4be7e668dc10e0c4ca9178f8e1c414997b57 (patch)
treebe27a884f60f33fe2eb6cabd1270983900d2ebe4 /Frameworks/PSMTabBar/PSMTabBarControl.h
parent389b86985d977f81f840112249da5e3e278921e2 (diff)
downloadsequelpro-09ed4be7e668dc10e0c4ca9178f8e1c414997b57.tar.gz
sequelpro-09ed4be7e668dc10e0c4ca9178f8e1c414997b57.tar.bz2
sequelpro-09ed4be7e668dc10e0c4ca9178f8e1c414997b57.zip
PSMTabBar improvements:
- 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
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarControl.h')
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarControl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.h b/Frameworks/PSMTabBar/PSMTabBarControl.h
index 481bb3b8..d2cbc534 100644
--- a/Frameworks/PSMTabBar/PSMTabBarControl.h
+++ b/Frameworks/PSMTabBar/PSMTabBarControl.h
@@ -16,6 +16,7 @@
#define PSMTabDragDidBeginNotification @"PSMTabDragDidBeginNotification"
#define kPSMTabBarControlHeight 22
+#define kPSMTabBarControlHeightCollapsed 1
// internal cell border
#define MARGIN_X 6
#define MARGIN_Y 3
@@ -205,6 +206,7 @@ enum {
- (void)hideTabBar:(BOOL)hide animate:(BOOL)animate;
- (BOOL)isTabBarHidden;
- (BOOL)isAnimating;
+- (void)destroyAnimations;
// internal bindings methods also used by the tab drag assistant
- (void)bindPropertiesForCell:(PSMTabBarCell *)cell andTabViewItem:(NSTabViewItem *)item;