X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fmacosx%2Fcontrols.h;h=17044d395e590d1d58cf631eb36b144a616c1f60;hb=c67627c63b23033eccbf1251151b324c6e0d5c62;hp=a95d5067fdb3e67bca738a5b8bec7239ab36a0eb;hpb=0b66060b624b9987ac79993099754c1b0d87d0cf;p=vlc diff --git a/modules/gui/macosx/controls.h b/modules/gui/macosx/controls.h index a95d5067fd..17044d395e 100644 --- a/modules/gui/macosx/controls.h +++ b/modules/gui/macosx/controls.h @@ -1,18 +1,19 @@ /***************************************************************************** * controls.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2002-2006 the VideoLAN team + * Copyright (C) 2002-2007 the VideoLAN team * $Id$ * * Authors: Jon Lech Johansen * Christophe Massiot * Derk-Jan Hartman + * Felix Kühne * * 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 @@ -26,18 +27,21 @@ #import "fspanel.h" /***************************************************************************** - * VLCControls interface + * VLCControls interface *****************************************************************************/ @interface VLCControls : NSObject { IBOutlet id o_main; - IBOutlet id o_btn_fullscreen; IBOutlet id o_volumeslider; - + IBOutlet id o_btn_shuffle; IBOutlet id o_btn_addNode; IBOutlet id o_btn_repeat; + + NSImage * o_repeat_single; + NSImage * o_repeat_all; + NSImage * o_repeat_off; IBOutlet id o_specificTime_cancel_btn; IBOutlet id o_specificTime_enter_fld; @@ -47,9 +51,10 @@ IBOutlet id o_specificTime_sec_lbl; IBOutlet id o_specificTime_stepper; IBOutlet id o_specificTime_mi; - + VLCFSPanel *o_fs_panel; } +- (void)controlTintChanged; - (IBAction)play:(id)sender; - (IBAction)stop:(id)sender; @@ -77,18 +82,22 @@ - (IBAction)mute:(id)sender; - (IBAction)volumeSliderUpdated:(id)sender; +- (IBAction)showPosition: (id)sender; +- (IBAction)toogleFullscreen:(id)sender; +- (BOOL) isFullscreen; - (IBAction)windowAction:(id)sender; - (BOOL)keyEvent:(NSEvent *)o_event; +- (void)scrollWheel: (NSEvent *)theEvent; - (void)setupVarMenuItem:(NSMenuItem *)o_mi - target:(vlc_object_t *)p_object - var:(const char *)psz_variable - selector:(SEL)pf_callback; + target:(vlc_object_t *)p_object + var:(const char *)psz_variable + selector:(SEL)pf_callback; - (void)setupVarMenu:(NSMenu *)o_menu - forMenuItem: (NSMenuItem *)o_parent - target:(vlc_object_t *)p_object - var:(const char *)psz_variable - selector:(SEL)pf_callback; + forMenuItem: (NSMenuItem *)o_parent + target:(vlc_object_t *)p_object + var:(const char *)psz_variable + selector:(SEL)pf_callback; - (IBAction)toggleVar:(id)sender; - (int)toggleVarThread:(id)_o_data; @@ -99,7 +108,7 @@ @end /***************************************************************************** - * VLCMenuExt interface + * VLCMenuExt interface ***************************************************************************** * This holds our data for autogenerated menus *****************************************************************************/ @@ -111,8 +120,10 @@ int i_type; } -- (id)initWithVar: (const char *)_psz_name Object: (int)i_id - Value: (vlc_value_t)val ofType: (int)_i_type; +- (id)initWithVar: (const char *)_psz_name + Object: (int)i_id + Value: (vlc_value_t)val + ofType: (int)_i_type; - (char *)name; - (int)objectID; - (vlc_value_t)value; @@ -121,7 +132,7 @@ @end /***************************************************************************** - * VLCTimeField interface + * VLCTimeField interface ***************************************************************************** * we need the implementation to catch our click-event in the controller window *****************************************************************************/