Changeset aa742bd48e7338574e1beaad5ac63fb078794dc0

Show
Ignore:
Timestamp:
14/09/06 20:47:59 (2 years ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1158259679 +0000
git-parent:

[7a57427bbc9487342e333ce2c63f237c55f4d66e]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1158259679 +0000
Message:

* fix a nasty handling bug and convert all comments to C-style

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/fspanel.m

    r6f54a53 raa742bd  
    2727 *****************************************************************************/ 
    2828#import "intf.h" 
     29#import "controls.h" 
     30#import "vout.h" 
    2931#import "fspanel.h" 
    3032 
     
    3537 *****************************************************************************/ 
    3638@implementation VLCFSPanel 
    37 // We override this initializer so we can set the NSBorderlessWindowMask styleMask, and set a few other important settings 
     39/* We override this initializer so we can set the NSBorderlessWindowMask styleMask, and set a few other important settings */ 
    3840- (id)initWithContentRect:(NSRect)contentRect  
    3941                styleMask:(unsigned int)aStyle  
     
    4547    [win setHasShadow: NO]; 
    4648    [win setBackgroundColor:[NSColor clearColor]]; 
    47     [win setLevel:NSFloatingWindowLevel]; // Let's make it sit on top of everything else 
    48     [win setAlphaValue:0.2]; // It'll start out mostly transparent 
     49    /* let the window sit on top of everything else and start out completely transparent */ 
     50    [win setLevel:NSFloatingWindowLevel]; 
     51    [win setAlphaValue:0.0]; 
    4952    return win; 
    5053} 
     
    6164} 
    6265 
    63 // Windows created with NSBorderlessWindowMask normally can't be key, but we want ours to be 
     66/* Windows created with NSBorderlessWindowMask normally can't be key, but we want ours to be */ 
    6467- (BOOL)canBecomeKeyWindow 
    6568{ 
     
    9598} 
    9699 
    97 // This routine is called repeatedly when the mouse enters the window from outside it. 
     100/* This routine is called repeatedly when the mouse enters the window from outside it. */ 
    98101- (void)focus:(NSTimer *)timer 
    99102{ 
     
    112115} 
    113116 
    114 // This routine is called repeatedly when the mouse exits the window from inside it. 
     117/* This routine is called repeatedly when the mouse exits the window from inside it */ 
    115118- (void)unfocus:(NSTimer *)timer 
    116119{ 
     
    134137} 
    135138 
    136 // If the mouse enters a window, go make sure we fade in 
     139/* If the mouse enters a window, go make sure we fade in */ 
    137140- (void)mouseEntered:(NSEvent *)theEvent 
    138141{ 
     
    140143} 
    141144 
    142 // If the mouse exits a window, go make sure we fade out 
     145/* If the mouse exits a window, go make sure we fade out */ 
    143146- (void)mouseExited:(NSEvent *)theEvent 
    144147{ 
     
    152155    } 
    153156 
     157    /* give up our focus, so the vout may show us again without letting the user clicking it */ 
     158    if( [[[[VLCMain sharedInstance] getControls] getVoutView] isFullscreen] ) 
     159        [[[[[VLCMain sharedInstance] getControls] getVoutView] window] makeKeyWindow]; 
     160 
    154161    [self fadeOut]; 
    155162} 
     
    169176- (void)fadeOut 
    170177{ 
    171     if(( [self alphaValue] > 0.0 ) && !NSPointInRect( [NSEvent mouseLocation], [self frame] ) ) 
     178    if( ( [self alphaValue] > 0.0 ) && !NSPointInRect( [NSEvent mouseLocation], [self frame] ) ) 
    172179    { 
    173180        if (![self fadeTimer]) 
     
    219226} 
    220227 
    221 // A getter and setter for our main timer that handles window fading 
     228/* A getter and setter for our main timer that handles window fading */ 
    222229- (NSTimer *)fadeTimer 
    223230{ 
     
    294301    addButton( o_next, @"FSGotoEndOff.tif"       , @"FSGotoEndOn.tif"      , 286, 37, next ); 
    295302    addButton( o_fullscreen, @"FSExitOff.tif", @"FSExitOn.tif", 382, 45, windowAction ); 
    296 //    addButton( o_button, @"FSVolumeThumbOff.tif"   , @"FSVolumeThumbOn.tif"  ,  38, 51, something ); 
     303/* 
     304    addButton( o_button, @"FSVolumeThumbOff.tif"   , @"FSVolumeThumbOn.tif"  ,  38, 51, something ); 
     305 */ 
    297306 
    298307    s_rc = [self frame]; 
     
    441450void drawFrameInRect(NSRect frameRect) 
    442451{ 
    443     // Draw frame 
     452    /* Draw frame */ 
    444453    NSBundle *bundle = [NSBundle mainBundle]; 
    445454    NSRect frame = frameRect; 
     
    453462- (void)drawRect:(NSRect)rect 
    454463{ 
    455     // Draw default to make sure the slider behaves correctly 
     464    /* Draw default to make sure the slider behaves correctly */ 
    456465    [[NSGraphicsContext currentContext] saveGraphicsState]; 
    457466    NSRectClip(NSZeroRect);