fspanel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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