]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/fspanel.h
macosx: hide playmode buttons by default
[vlc] / modules / gui / macosx / fspanel.h
index 1a38d89b6fee174674548dec711914e8326a3052..56bd4b05a6ae00d62bdb12f94850b280c083e49c 100644 (file)
-/*****************************************************************************\r
- * fspanel.h: MacOS X full screen panel\r
- *****************************************************************************\r
- * Copyright (C) 2006-2007 the VideoLAN team\r
- * $Id$\r
- *\r
- * Authors: Jérôme Decoodt <djc at videolan dot org>\r
- *          Felix Kühne <fkuehne at videolan dot org>\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.\r
- *****************************************************************************/\r
-\r
-@interface VLCFSPanel : NSWindow\r
-{\r
-    NSTimer *fadeTimer,*hideAgainTimer;\r
-    NSPoint mouseClic;\r
-    BOOL b_fadeQueued;\r
-    BOOL b_keptVisible;\r
-    BOOL b_alreadyCounting;\r
-    int i_timeToKeepVisibleInSec;\r
-\r
-    BOOL b_nonActive;\r
-    BOOL b_displayed;\r
-    BOOL b_voutWasUpdated;\r
-    int i_device;\r
-}\r
-- (id)initWithContentRect: (NSRect)contentRect\r
-                styleMask: (unsigned int)aStyle\r
-                  backing: (NSBackingStoreType)bufferingType\r
-                    defer: (BOOL)flag;\r
-- (void)awakeFromNib;\r
-- (BOOL)canBecomeKeyWindow;\r
-- (void)dealloc;\r
-\r
-- (void)setPlay;\r
-- (void)setPause;\r
-- (void)setStreamTitle: (NSString *)o_title;\r
-- (void)setStreamPos: (float)f_pos andTime: (NSString *)o_time;\r
-- (void)setSeekable: (BOOL)b_seekable;\r
-- (void)setVolumeLevel: (float)f_volumeLevel;\r
-\r
-- (void)setNonActive: (id)noData;\r
-- (void)setActive: (id)noData;\r
-\r
-- (void)focus: (NSTimer *)timer;\r
-- (void)unfocus: (NSTimer *)timer;\r
-- (void)mouseExited: (NSEvent *)theEvent;\r
-\r
-- (void)fadeIn;\r
-- (void)fadeOut;\r
-\r
-- (NSTimer *)fadeTimer;\r
-- (void)setFadeTimer: (NSTimer *)timer;\r
-- (void)autoHide;\r
-- (void)keepVisible: (NSTimer *)timer;\r
-\r
-- (void)mouseDown: (NSEvent *)theEvent;\r
-- (void)mouseDragged: (NSEvent *)theEvent;\r
-\r
-- (BOOL)isDisplayed;\r
-- (void)setVoutWasUpdated: (int)i_screen;\r
-@end\r
-\r
-@interface VLCFSPanelView : NSView\r
-{\r
-    NSColor *fillColor;\r
-    NSButton *o_prev, *o_next, *o_bwd, *o_fwd, *o_play, *o_fullscreen;\r
-    NSTextField *o_streamTitle_txt, *o_streamPosition_txt;\r
-    NSSlider *o_fs_timeSlider, *o_fs_volumeSlider;\r
-}\r
-- (id)initWithFrame: (NSRect)frameRect;\r
-- (void)drawRect: (NSRect)rect;\r
-\r
-- (void)setPlay;\r
-- (void)setPause;\r
-- (void)setStreamTitle: (NSString *)o_title;\r
-- (void)setStreamPos: (float)f_pos andTime: (NSString *)o_time;\r
-- (void)setSeekable: (BOOL)b_seekable;\r
-- (void)setVolumeLevel: (float)f_volumeLevel;\r
-- (IBAction)play:(id)sender;\r
-- (IBAction)prev:(id)sender;\r
-- (IBAction)next:(id)sender;\r
-- (IBAction)forward:(id)sender;\r
-- (IBAction)backward:(id)sender;\r
-- (IBAction)fsTimeSliderUpdate: (id)sender;\r
-- (IBAction)fsVolumeSliderUpdate: (id)sender;\r
-\r
-@end\r
-\r
-@interface VLCFSTimeSlider : NSSlider\r
-{\r
-}\r
-- (void)drawKnobInRect: (NSRect)knobRect;\r
-- (void)drawRect: (NSRect)rect;\r
-\r
-@end\r
-\r
-@interface VLCFSVolumeSlider : NSSlider\r
-{\r
-}\r
-- (void)drawKnobInRect: (NSRect)knobRect;\r
-- (void)drawRect: (NSRect)rect;\r
-\r
-@end\r
+/*****************************************************************************
+ * fspanel.h: MacOS X full screen panel
+ *****************************************************************************
+ * Copyright (C) 2006-2013 VLC authors and VideoLAN
+ * $Id$
+ *
+ * Authors: Jérôme Decoodt <djc at videolan dot org>
+ *          Felix Paul Kühne <fkuehne at videolan dot org>
+ *          David Fuhrmann <david dot fuhrmann at googlemail dot com>
+ *
+ * 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+@class VLCWindow;
+
+@interface VLCFSPanel : NSWindow
+{
+    NSTimer *fadeTimer,*hideAgainTimer;
+    NSPoint mouseClic;
+    BOOL b_fadeQueued;
+    BOOL b_keptVisible;
+    BOOL b_alreadyCounting;
+    int i_timeToKeepVisibleInSec;
+
+    BOOL b_nonActive;
+    BOOL b_displayed;
+    BOOL b_voutWasUpdated;
+    int i_device;
+
+    VLCWindow *o_vout_window;
+}
+- (id)initWithContentRect: (NSRect)contentRect
+                styleMask: (NSUInteger)aStyle
+                  backing: (NSBackingStoreType)bufferingType
+                    defer: (BOOL)flag;
+- (void)awakeFromNib;
+- (BOOL)canBecomeKeyWindow;
+- (void)dealloc;
+
+- (void)setPlay;
+- (void)setPause;
+- (void)setStreamTitle: (NSString *)o_title;
+- (void)updatePositionAndTime;
+- (void)setSeekable: (BOOL)b_seekable;
+- (void)setVolumeLevel: (int)i_volumeLevel;
+
+- (void)setNonActive: (id)noData;
+- (void)setActive: (id)noData;
+
+- (void)focus: (NSTimer *)timer;
+- (void)unfocus: (NSTimer *)timer;
+- (void)mouseExited: (NSEvent *)theEvent;
+
+- (void)fadeIn;
+- (void)fadeOut;
+
+- (NSTimer *)fadeTimer;
+- (void)setFadeTimer: (NSTimer *)timer;
+- (void)autoHide;
+- (void)keepVisible: (NSTimer *)timer;
+
+- (void)mouseDown: (NSEvent *)theEvent;
+- (void)mouseDragged: (NSEvent *)theEvent;
+
+- (void)setVoutWasUpdated: (VLCWindow *)o_window;
+@end
+
+@class VLCProgressView;
+
+@interface VLCFSPanelView : NSView
+{
+    NSColor *fillColor;
+    NSButton *o_prev, *o_next, *o_bwd, *o_fwd, *o_play, *o_fullscreen;
+    NSTextField *o_streamTitle_txt;
+    VLCTimeField *o_streamPosition_txt, *o_streamLength_txt;
+    NSSlider *o_fs_timeSlider, *o_fs_volumeSlider;
+    VLCProgressView *o_progress_view;
+    NSImage *o_background_img, *o_vol_sld_img, *o_vol_mute_img, *o_vol_max_img, *o_time_sld_img;
+    NSTimeInterval last_fwd_event;
+    NSTimeInterval last_bwd_event;
+}
+- (id)initWithFrame: (NSRect)frameRect;
+- (void)drawRect: (NSRect)rect;
+
+- (void)setPlay;
+- (void)setPause;
+- (void)setStreamTitle: (NSString *)o_title;
+- (void)updatePositionAndTime;
+- (void)setSeekable: (BOOL)b_seekable;
+- (void)setVolumeLevel: (int)i_volumeLevel;
+- (IBAction)play:(id)sender;
+- (IBAction)prev:(id)sender;
+- (IBAction)next:(id)sender;
+- (IBAction)forward:(id)sender;
+- (IBAction)backward:(id)sender;
+- (IBAction)fsTimeSliderUpdate: (id)sender;
+- (IBAction)fsVolumeSliderUpdate: (id)sender;
+
+@end
+
+@interface VLCFSTimeSlider : NSSlider
+{
+}
+- (void)drawKnobInRect: (NSRect)knobRect;
+- (void)drawRect: (NSRect)rect;
+
+@end
+
+@interface VLCFSVolumeSlider : VLCVolumeSliderCommon
+{
+}
+- (void)drawKnobInRect: (NSRect)knobRect;
+- (void)drawRect: (NSRect)rect;
+
+@end