]> git.sesse.net Git - vlc/blob - modules/gui/macosx/controls.h
8e767a54a30529746b291acdab59c70ff60e5876
[vlc] / modules / gui / macosx / controls.h
1 /*****************************************************************************
2  * controls.h: MacOS X interface plugin
3  *****************************************************************************
4  * Copyright (C) 2002-2003 VideoLAN
5  * $Id: controls.h,v 1.7 2003/09/20 19:37:53 hartman Exp $
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8  *          Christophe Massiot <massiot@via.ecp.fr>
9  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
10  *
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.
15  * 
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.
20  *
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  *****************************************************************************/
25
26 /*****************************************************************************
27  * VLCControls interface 
28  *****************************************************************************/
29 @interface VLCControls : NSObject
30 {
31     IBOutlet id o_open;
32     IBOutlet id o_main;
33
34     IBOutlet id o_volumeslider;
35 }
36
37 - (IBAction)play:(id)sender;
38 - (IBAction)stop:(id)sender;
39 - (IBAction)faster:(id)sender;
40 - (IBAction)slower:(id)sender;
41
42 - (IBAction)prev:(id)sender;
43 - (IBAction)next:(id)sender;
44 - (IBAction)random:(id)sender;
45 - (IBAction)repeat:(id)sender;
46 - (IBAction)loop:(id)sender;
47
48 - (IBAction)forward:(id)sender;
49 - (IBAction)backward:(id)sender;
50
51 - (IBAction)volumeUp:(id)sender;
52 - (IBAction)volumeDown:(id)sender;
53 - (IBAction)mute:(id)sender;
54 - (IBAction)volumeSliderUpdated:(id)sender;
55 - (void)updateVolumeSlider;
56
57 - (IBAction)windowAction:(id)sender;
58
59 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
60                     target:(vlc_object_t *)p_object
61                     var:(const char *)psz_variable
62                     selector:(SEL)pf_callback;
63 - (void)setupVarMenu:(NSMenu *)o_menu
64                     forMenuItem: (NSMenuItem *)o_parent
65                     target:(vlc_object_t *)p_object
66                     var:(const char *)psz_variable
67                     selector:(SEL)pf_callback;
68 - (IBAction)toggleVar:(id)sender;
69 - (int)toggleVarThread:(id)_o_data;
70
71 @end
72
73 /*****************************************************************************
74  * VLCMenuExt interface 
75  *****************************************************************************
76  * This holds our data for autogenerated menus
77  *****************************************************************************/
78 @interface VLCMenuExt : NSObject
79 {
80     char *psz_name;
81     int i_object_id;
82     vlc_value_t value;
83     int i_type;
84 }
85
86 - (id)initWithVar: (const char *)_psz_name Object: (int)i_id
87         Value: (vlc_value_t)val ofType: (int)_i_type;
88 - (char *)name;
89 - (int)objectID;
90 - (vlc_value_t)value;
91 - (int)type;
92
93 @end