1 /*****************************************************************************
2 * controls.h: MacOS X interface plugin
3 *****************************************************************************
4 * Copyright (C) 2002-2003 VideoLAN
5 * $Id: controls.h,v 1.6 2003/06/03 22:21:46 hartman Exp $
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8 * Christophe Massiot <massiot@via.ecp.fr>
9 * Derk-Jan Hartman <thedj@users.sourceforge.net>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
26 /*****************************************************************************
27 * VLCControls interface
28 *****************************************************************************/
29 @interface VLCControls : NSObject
34 IBOutlet id o_volumeslider;
37 - (IBAction)play:(id)sender;
38 - (IBAction)stop:(id)sender;
39 - (IBAction)faster:(id)sender;
40 - (IBAction)slower:(id)sender;
42 - (IBAction)prev:(id)sender;
43 - (IBAction)next:(id)sender;
44 - (IBAction)loop:(id)sender;
46 - (IBAction)forward:(id)sender;
47 - (IBAction)backward:(id)sender;
49 - (IBAction)volumeUp:(id)sender;
50 - (IBAction)volumeDown:(id)sender;
51 - (IBAction)mute:(id)sender;
52 - (IBAction)volumeSliderUpdated:(id)sender;
53 - (void)updateVolumeSlider;
55 - (IBAction)windowAction:(id)sender;
57 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
58 target:(vlc_object_t *)p_object
59 var:(const char *)psz_variable
60 selector:(SEL)pf_callback;
61 - (void)setupVarMenu:(NSMenu *)o_menu
62 forMenuItem: (NSMenuItem *)o_parent
63 target:(vlc_object_t *)p_object
64 var:(const char *)psz_variable
65 selector:(SEL)pf_callback;
66 - (IBAction)toggleVar:(id)sender;
67 - (int)toggleVarThread:(id)_o_data;
71 /*****************************************************************************
72 * VLCMenuExt interface
73 *****************************************************************************
74 * This holds our data for autogenerated menus
75 *****************************************************************************/
76 @interface VLCMenuExt : NSObject
84 - (id)initWithVar: (const char *)_psz_name Object: (int)i_id
85 Value: (vlc_value_t)val ofType: (int)_i_type;