From: Derk-Jan Hartman Date: Thu, 13 Mar 2003 22:24:17 +0000 (+0000) Subject: * modules/gui/macosx/misc.? X-Git-Tag: 0.5.3~194 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4815c251f8863b61dfa9a7069880ff7fdba2e6b7;p=vlc * modules/gui/macosx/misc.? - added VLBrushedMetalImageView. This imageview does not respond to mousedrage, so we can still move our window by it's background. * extras/MacOSX/Resources/English.lproj/MainMenu.nib/* - Changed the container of our background image to the new VLBrushedMetalImageView. This fixes #390 --- diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib index 46fa025f1c..7f00cbfb6a 100644 --- a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib +++ b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib @@ -1,6 +1,7 @@ { IBClasses = ( {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, + {CLASS = VLBrushedMetalImageView; LANGUAGE = ObjC; SUPERCLASS = NSImageView; }, {CLASS = VLCApplication; LANGUAGE = ObjC; SUPERCLASS = NSApplication; }, { ACTIONS = { diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib index 4f7956f9be..9733b4b559 100644 --- a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib +++ b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib @@ -23,8 +23,8 @@ IBOpenObjects - 21 1194 + 21 29 IBSystem Version diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib index fadbaa1dac..633183bdc7 100644 Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h index 8fdd3e89b8..6c1ca21963 100644 --- a/modules/gui/macosx/misc.h +++ b/modules/gui/macosx/misc.h @@ -2,7 +2,7 @@ * misc.h: code not specific to vlc ***************************************************************************** * Copyright (C) 2003 VideoLAN - * $Id: misc.h,v 1.1 2003/01/21 00:47:43 jlj Exp $ + * $Id: misc.h,v 1.2 2003/03/13 22:24:17 hartman Exp $ * * Authors: Jon Lech Johansen * @@ -21,6 +21,18 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/ +/***************************************************************************** + * VLBrushedMetalImageView + *****************************************************************************/ + +@interface VLBrushedMetalImageView : NSImageView +{ + +} + +@end + + /***************************************************************************** * MPSlider *****************************************************************************/ diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m index 4bc23d6b9e..67196e9bb2 100644 --- a/modules/gui/macosx/misc.m +++ b/modules/gui/macosx/misc.m @@ -2,7 +2,7 @@ * misc.m: code not specific to vlc ***************************************************************************** * Copyright (C) 2003 VideoLAN - * $Id: misc.m,v 1.1 2003/01/21 00:47:43 jlj Exp $ + * $Id: misc.m,v 1.2 2003/03/13 22:24:17 hartman Exp $ * * Authors: Jon Lech Johansen * @@ -25,6 +25,20 @@ #include "misc.h" +/***************************************************************************** + * VLBrushedMetalImageView + *****************************************************************************/ + +@implementation VLBrushedMetalImageView + +- (BOOL)mouseDownCanMoveWindow +{ + return YES; +} + +@end + + /***************************************************************************** * MPSlider *****************************************************************************/