]> git.sesse.net Git - vlc/blob - modules/gui/macosx/controls.h
String Review round one, Mac OS X interface.
[vlc] / modules / gui / macosx / controls.h
1 /*****************************************************************************
2  * controls.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2003 VideoLAN
5  * $Id: controls.h,v 1.9 2004/01/25 17:01:57 murray 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_btn_fullscreen;
35     IBOutlet id o_volumeslider;
36 }
37
38 - (IBAction)play:(id)sender;
39 - (IBAction)stop:(id)sender;
40 - (IBAction)faster:(id)sender;
41 - (IBAction)slower:(id)sender;
42
43 - (IBAction)prev:(id)sender;
44 - (IBAction)next:(id)sender;
45 - (IBAction)random:(id)sender;
46 - (IBAction)repeat:(id)sender;
47 - (IBAction)loop:(id)sender;
48
49 - (IBAction)forward:(id)sender;
50 - (IBAction)backward:(id)sender;
51
52 - (IBAction)volumeUp:(id)sender;
53 - (IBAction)volumeDown:(id)sender;
54 - (IBAction)mute:(id)sender;
55 - (IBAction)volumeSliderUpdated:(id)sender;
56 - (void)updateVolumeSlider;
57
58 - (IBAction)windowAction:(id)sender;
59
60 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
61                     target:(vlc_object_t *)p_object
62                     var:(const char *)psz_variable
63                     selector:(SEL)pf_callback;
64 - (void)setupVarMenu:(NSMenu *)o_menu
65                     forMenuItem: (NSMenuItem *)o_parent
66                     target:(vlc_object_t *)p_object
67                     var:(const char *)psz_variable
68                     selector:(SEL)pf_callback;
69 - (IBAction)toggleVar:(id)sender;
70 - (int)toggleVarThread:(id)_o_data;
71
72 @end
73
74 /*****************************************************************************
75  * VLCMenuExt interface 
76  *****************************************************************************
77  * This holds our data for autogenerated menus
78  *****************************************************************************/
79 @interface VLCMenuExt : NSObject
80 {
81     char *psz_name;
82     int i_object_id;
83     vlc_value_t value;
84     int i_type;
85 }
86
87 - (id)initWithVar: (const char *)_psz_name Object: (int)i_id
88         Value: (vlc_value_t)val ofType: (int)_i_type;
89 - (char *)name;
90 - (int)objectID;
91 - (vlc_value_t)value;
92 - (int)type;
93
94 @end