adium 4146:1e84ee0e55a9: Removed AIWindowDraggingView as it is n...

commits at adium.im commits at adium.im
Tue Aug 16 17:43:02 UTC 2011


details:	http://hg.adium.im/adium/rev/1e84ee0e55a9
revision:	4146:1e84ee0e55a9
branch:		(none)
author:		Patrick Steinhardt <steinhardt.p at me.com>
date:		Tue Aug 16 19:42:43 2011 +0200

Removed AIWindowDraggingView as it is not in use.

diffs (155 lines):

diff -r d57b92083508 -r 1e84ee0e55a9 Adium.xcodeproj/project.pbxproj
--- a/Adium.xcodeproj/project.pbxproj	Tue Aug 16 01:39:04 2011 +0200
+++ b/Adium.xcodeproj/project.pbxproj	Tue Aug 16 19:42:43 2011 +0200
@@ -624,7 +624,6 @@
 		34A9706F0C965F8E00F46006 /* AIAddBookmarkPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A9706D0C965F8E00F46006 /* AIAddBookmarkPlugin.m */; };
 		34A970740C965FC800F46006 /* AddBookmark.nib in Resources */ = {isa = PBXBuildFile; fileRef = 34A970730C965FC800F46006 /* AddBookmark.nib */; };
 		34A9707E0C96602300F46006 /* sidebarStatusAreaBackground.png in Resources */ = {isa = PBXBuildFile; fileRef = 34A9707D0C96602200F46006 /* sidebarStatusAreaBackground.png */; };
-		34AE249E09BCCFA900A35B51 /* AIWindowDraggingView.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AE249C09BCCFA900A35B51 /* AIWindowDraggingView.m */; };
 		34B1268E0B924E28003B0451 /* adiumPurpleDnsRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 34B1268C0B924E28003B0451 /* adiumPurpleDnsRequest.h */; };
 		34B1268F0B924E28003B0451 /* adiumPurpleDnsRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 34B1268D0B924E28003B0451 /* adiumPurpleDnsRequest.m */; };
 		34B3247A0CE4CCF400158D5F /* PurpleAccountViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 34B324780CE4CCF400158D5F /* PurpleAccountViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -3361,8 +3360,6 @@
 		34AC2FA609352C2400393D7A /* AIStatusGroup.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIStatusGroup.m; path = "Frameworks/Adium Framework/Source/AIStatusGroup.m"; sourceTree = "<group>"; };
 		34AC36B907B5C51400145239 /* AIStatus.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = AIStatus.h; path = "Frameworks/Adium Framework/Source/AIStatus.h"; sourceTree = "<group>"; };
 		34AC36BA07B5C51400145239 /* AIStatus.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = AIStatus.m; path = "Frameworks/Adium Framework/Source/AIStatus.m"; sourceTree = "<group>"; };
-		34AE249B09BCCFA900A35B51 /* AIWindowDraggingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIWindowDraggingView.h; path = Source/AIWindowDraggingView.h; sourceTree = "<group>"; };
-		34AE249C09BCCFA900A35B51 /* AIWindowDraggingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIWindowDraggingView.m; path = Source/AIWindowDraggingView.m; sourceTree = "<group>"; };
 		34AEE7DC08E3546F00AE1C78 /* ESPurpleFileReceiveRequestController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ESPurpleFileReceiveRequestController.h; path = "Plugins/Purple Service/ESPurpleFileReceiveRequestController.h"; sourceTree = "<group>"; };
 		34AEE7DD08E3546F00AE1C78 /* ESPurpleFileReceiveRequestController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ESPurpleFileReceiveRequestController.m; path = "Plugins/Purple Service/ESPurpleFileReceiveRequestController.m"; sourceTree = "<group>"; };
 		34AEE7E808E35A5800AE1C78 /* ESPurpleRequestAbstractWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ESPurpleRequestAbstractWindowController.h; path = "Plugins/Purple Service/ESPurpleRequestAbstractWindowController.h"; sourceTree = "<group>"; };
@@ -7391,8 +7388,6 @@
 				34607F0F09B2296A000DB3D2 /* AIHoveringPopUpButton.h */,
 				34607EE609B228FE000DB3D2 /* AIContactListNameButton.h */,
 				34607EE709B228FE000DB3D2 /* AIContactListNameButton.m */,
-				34AE249B09BCCFA900A35B51 /* AIWindowDraggingView.h */,
-				34AE249C09BCCFA900A35B51 /* AIWindowDraggingView.m */,
 				34891C120D4B75EE00AEF48C /* AIStandardListScrollView.h */,
 				34891C130D4B75EE00AEF48C /* AIStandardListScrollView.m */,
 			);
@@ -10400,7 +10395,6 @@
 				34607EE909B228FE000DB3D2 /* AIContactListNameButton.m in Sources */,
 				34607F1009B2296A000DB3D2 /* AIHoveringPopUpButtonCell.m in Sources */,
 				34607F1209B2296A000DB3D2 /* AIHoveringPopUpButton.m in Sources */,
-				34AE249E09BCCFA900A35B51 /* AIWindowDraggingView.m in Sources */,
 				342353D709D45726009FF634 /* AILogViewerWindowController.m in Sources */,
 				34107B4C09E9923D001CC042 /* AIGuestAccountWindowController.m in Sources */,
 				9ECB03E709F2A9D900996F44 /* AIDictionaryDebug.m in Sources */,
diff -r d57b92083508 -r 1e84ee0e55a9 Source/AIWindowDraggingView.h
--- a/Source/AIWindowDraggingView.h	Tue Aug 16 01:39:04 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-/* 
- * Adium is the legal property of its developers, whose names are listed in the copyright file included
- * with this source distribution.
- * 
- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
- * General Public License as published by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
- * Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License along with this program; if not,
- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
- at interface AIWindowDraggingView : NSView {
-    NSPoint originalMouseLocation;
-	NSRect	windowFrame;
-	BOOL	inLeftMouseEvent;	
-}
-
- at end
diff -r d57b92083508 -r 1e84ee0e55a9 Source/AIWindowDraggingView.m
--- a/Source/AIWindowDraggingView.m	Tue Aug 16 01:39:04 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-/* 
- * Adium is the legal property of its developers, whose names are listed in the copyright file included
- * with this source distribution.
- * 
- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
- * General Public License as published by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
- * Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License along with this program; if not,
- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
-#import "AIWindowDraggingView.h"
-
-/*!
- * @class AIWindowDraggingView
- * @brief This NSView subclass makes the window move when it is dragged by the view itself (but not by subviews).
- *
- * The code is, for reference, a stripped down version of the code powering AIBorderlessWindow's dragging movements.
- *
- * On mouse down, the window's frame is noted; deltas as the mouse moves are used to determine the window's
- * own movements.
- */
- at implementation AIWindowDraggingView
-/*!
- * @brief Mouse dragged
- */
-- (void)mouseDragged:(NSEvent *)theEvent
-{
-	NSWindow	*window = [self window];
-	NSPoint		currentLocation, newOrigin;
-	NSRect		newWindowFrame;
-	
-	/* If we get here and aren't yet in a left mouse event, which can happen if the user began dragging while
-	 * a contextual menu is showing, start off from the right position by getting our originalMouseLocation.
-	 */		
-	if (!inLeftMouseEvent) {
-		//Grab the mouse location in global coordinates
-		originalMouseLocation = [window convertBaseToScreen:[theEvent locationInWindow]];
-		windowFrame = [window frame];
-		inLeftMouseEvent = YES;		
-	}
-	
-	newOrigin = windowFrame.origin;
-	newWindowFrame = windowFrame;
-	
-	//Grab the current mouse location to compare with the location of the mouse when the drag started (stored in mouseDown:)
-	currentLocation = [NSEvent mouseLocation];
-	newOrigin.x += (currentLocation.x - originalMouseLocation.x);
-	newOrigin.y += currentLocation.y - originalMouseLocation.y;
-	
-	newWindowFrame.origin = newOrigin;
-	
-	[[NSNotificationCenter defaultCenter] postNotificationName:NSWindowWillMoveNotification object:window];
-	[window setFrameOrigin:newWindowFrame.origin];
-	[[NSNotificationCenter defaultCenter] postNotificationName:NSWindowDidMoveNotification object:window];		
-}
-
-/*!
- * @brief Mouse down
- *
- * We start tracking the a drag operation here when the user first clicks the mouse without command presed
- * to establish the initial location.
- */
-- (void)mouseDown:(NSEvent *)theEvent
-{
-	NSWindow	*window = [self window];
-	
-	//grab the mouse location in global coordinates
-	originalMouseLocation = [window convertBaseToScreen:[theEvent locationInWindow]];
-	windowFrame = [window frame];
-	inLeftMouseEvent = YES;
-}
-
-/*!
- * @brief Mouse up
- */
-- (void)mouseUp:(NSEvent *)theEvent
-{
-	inLeftMouseEvent = NO;
-}
-
- at end




More information about the commits mailing list