aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/PSMTabBarControl.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-05-14 17:26:18 +0000
committerstuconnolly <stuart02@gmail.com>2011-05-14 17:26:18 +0000
commit2dbae24c7735ead0524bd9847af6ea99d8654ec6 (patch)
tree87dbed4317214da2aa9e2aed493fd7b798b3e2bc /Frameworks/PSMTabBar/PSMTabBarControl.m
parent160728cd29519794b47b3a09b139ce9d604883f0 (diff)
downloadsequelpro-2dbae24c7735ead0524bd9847af6ea99d8654ec6.tar.gz
sequelpro-2dbae24c7735ead0524bd9847af6ea99d8654ec6.tar.bz2
sequelpro-2dbae24c7735ead0524bd9847af6ea99d8654ec6.zip
Bring outline view branch up to date with trunk (r3279:r3306).
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarControl.m')
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarControl.m25
1 files changed, 23 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m
index 028dc84b..a38c50b0 100644
--- a/Frameworks/PSMTabBar/PSMTabBarControl.m
+++ b/Frameworks/PSMTabBar/PSMTabBarControl.m
@@ -471,8 +471,6 @@
[self update];
}
-
-
- (id)createNewTabTarget
{
return _createNewTabTarget;
@@ -495,7 +493,25 @@
[[self addTabButton] setAction:selector];
}
+- (id)doubleClickTarget
+{
+ return _doubleClickTarget;
+}
+
+- (void)setDoubleClickTarget:(id)object
+{
+ _doubleClickTarget = object;
+}
+
+- (SEL)doubleClickAction
+{
+ return _doubleClickAction;
+}
+- (void)setDoubleClickAction:(SEL)selector
+{
+ _doubleClickAction = selector;
+}
- (NSInteger)cellMinWidth
{
@@ -1327,6 +1343,11 @@
[cell setCloseButtonOver:NO];
[cell setCloseButtonPressed:YES];
_closeClicked = YES;
+ }
+ else if ([theEvent clickCount] == 2) {
+ [cell setCloseButtonOver:NO];
+
+ [_doubleClickTarget performSelector:_doubleClickAction withObject:cell];
} else {
[cell setCloseButtonPressed:NO];
if (_selectsTabsOnMouseDown) {