summaryrefslogtreecommitdiff
path: root/cocoa/PSMTabBarControl/PSMTabDragWindow.m
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-05-05 22:28:51 +0100
committerVincent Sanders <vince@kyllikki.org>2016-05-15 13:44:34 +0100
commitd21447d096a320a08b3efb2b8768fad0dcdcfd64 (patch)
tree1a83814b7c9e94b2f13c473261f23dd3a17dee64 /cocoa/PSMTabBarControl/PSMTabDragWindow.m
parent2cbb337756d9af5bda4d594964d446439f602551 (diff)
downloadnetsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.gz
netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.bz2
move frontends into sub directory
Diffstat (limited to 'cocoa/PSMTabBarControl/PSMTabDragWindow.m')
-rw-r--r--cocoa/PSMTabBarControl/PSMTabDragWindow.m48
1 files changed, 0 insertions, 48 deletions
diff --git a/cocoa/PSMTabBarControl/PSMTabDragWindow.m b/cocoa/PSMTabBarControl/PSMTabDragWindow.m
deleted file mode 100644
index d6fcc95a3..000000000
--- a/cocoa/PSMTabBarControl/PSMTabDragWindow.m
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// PSMTabDragWindow.m
-// PSMTabBarControl
-//
-// Created by Kent Sutherland on 6/1/06.
-// Copyright 2006 Kent Sutherland. All rights reserved.
-//
-
-#import "PSMTabDragWindow.h"
-#import "PSMTabDragView.h"
-
-@implementation PSMTabDragWindow
-
-+ (PSMTabDragWindow *)dragWindowWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask {
- return [[[PSMTabDragWindow alloc] initWithImage:image styleMask:styleMask] autorelease];
-}
-
-- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask {
- NSSize size = [image size];
-
- if((self = [super initWithContentRect:NSMakeRect(0, 0, size.width, size.height) styleMask:styleMask backing:NSBackingStoreBuffered defer:NO])) {
- _dragView = [[[PSMTabDragView alloc] initWithFrame:NSMakeRect(0, 0, size.width, size.height)] autorelease];
- [self setContentView:_dragView];
- [self setLevel:NSStatusWindowLevel];
- [self setIgnoresMouseEvents:YES];
- [self setOpaque:NO];
-
- [_dragView setImage:image];
-
- //Set the size of the window to be the exact size of the drag image
- NSRect windowFrame = [self frame];
- windowFrame.origin.y += windowFrame.size.height - size.height;
- windowFrame.size = size;
-
- if(styleMask | NSBorderlessWindowMask) {
- windowFrame.size.height += 22;
- }
-
- [self setFrame:windowFrame display:YES];
- }
- return self;
-}
-
-- (PSMTabDragView *)dragView {
- return _dragView;
-}
-
-@end