fspanel.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * fspanel.h: MacOS X full screen panel
00003  *****************************************************************************
00004  * Copyright (C) 2006-2007 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Jérôme Decoodt <djc at videolan dot org>
00008  *          Felix Kühne <fkuehne at videolan dot org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 @interface VLCFSPanel : NSWindow
00026 {
00027     NSTimer *fadeTimer,*hideAgainTimer;
00028     NSPoint mouseClic;
00029     BOOL b_fadeQueued;
00030     BOOL b_keptVisible;
00031     BOOL b_alreadyCounting;
00032     int i_timeToKeepVisibleInSec;
00033 
00034     BOOL b_nonActive;
00035     BOOL b_displayed;
00036     BOOL b_voutWasUpdated;
00037     int i_device;
00038 }
00039 - (id)initWithContentRect: (NSRect)contentRect
00040                 styleMask: (NSUInteger)aStyle
00041                   backing: (NSBackingStoreType)bufferingType
00042                     defer: (BOOL)flag;
00043 - (void)awakeFromNib;
00044 - (BOOL)canBecomeKeyWindow;
00045 - (void)dealloc;
00046 
00047 - (void)setPlay;
00048 - (void)setPause;
00049 - (void)setStreamTitle: (NSString *)o_title;
00050 - (void)setStreamPos: (float)f_pos andTime: (NSString *)o_time;
00051 - (void)setSeekable: (BOOL)b_seekable;
00052 - (void)setVolumeLevel: (float)f_volumeLevel;
00053 
00054 - (void)setNonActive: (id)noData;
00055 - (void)setActive: (id)noData;
00056 
00057 - (void)focus: (NSTimer *)timer;
00058 - (void)unfocus: (NSTimer *)timer;
00059 - (void)mouseExited: (NSEvent *)theEvent;
00060 
00061 - (void)fadeIn;
00062 - (void)fadeOut;
00063 
00064 - (NSTimer *)fadeTimer;
00065 - (void)setFadeTimer: (NSTimer *)timer;
00066 - (void)autoHide;
00067 - (void)keepVisible: (NSTimer *)timer;
00068 
00069 - (void)mouseDown: (NSEvent *)theEvent;
00070 - (void)mouseDragged: (NSEvent *)theEvent;
00071 
00072 - (BOOL)isDisplayed;
00073 - (void)setVoutWasUpdated: (int)i_screen;
00074 @end
00075 
00076 @interface VLCFSPanelView : NSView
00077 {
00078     NSColor *fillColor;
00079     NSButton *o_prev, *o_next, *o_bwd, *o_fwd, *o_play, *o_fullscreen;
00080     NSTextField *o_streamTitle_txt, *o_streamPosition_txt;
00081     NSSlider *o_fs_timeSlider, *o_fs_volumeSlider;
00082 }
00083 - (id)initWithFrame: (NSRect)frameRect;
00084 - (void)drawRect: (NSRect)rect;
00085 
00086 - (void)setPlay;
00087 - (void)setPause;
00088 - (void)setStreamTitle: (NSString *)o_title;
00089 - (void)setStreamPos: (float)f_pos andTime: (NSString *)o_time;
00090 - (void)setSeekable: (BOOL)b_seekable;
00091 - (void)setVolumeLevel: (float)f_volumeLevel;
00092 - (IBAction)play:(id)sender;
00093 - (IBAction)prev:(id)sender;
00094 - (IBAction)next:(id)sender;
00095 - (IBAction)forward:(id)sender;
00096 - (IBAction)backward:(id)sender;
00097 - (IBAction)fsTimeSliderUpdate: (id)sender;
00098 - (IBAction)fsVolumeSliderUpdate: (id)sender;
00099 
00100 @end
00101 
00102 @interface VLCFSTimeSlider : NSSlider
00103 {
00104 }
00105 - (void)drawKnobInRect: (NSRect)knobRect;
00106 - (void)drawRect: (NSRect)rect;
00107 
00108 @end
00109 
00110 @interface VLCFSVolumeSlider : NSSlider
00111 {
00112 }
00113 - (void)drawKnobInRect: (NSRect)knobRect;
00114 - (void)drawRect: (NSRect)rect;
00115 
00116 @end

Generated on Tue May 25 08:04:56 2010 for VLC by  doxygen 1.5.6