]> git.sesse.net Git - vlc/blob - modules/gui/macosx/controls.h
311645a9d1391a82e00e090126c620f5b33b918b
[vlc] / modules / gui / macosx / controls.h
1 /*****************************************************************************
2  * controls.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2005 the VideoLAN team
5  * $Id$
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #import "fspanel.h"
27
28 /*****************************************************************************
29  * VLCControls interface 
30  *****************************************************************************/
31 @interface VLCControls : NSObject
32 {
33     IBOutlet id o_main;
34
35     IBOutlet id o_btn_fullscreen;
36     IBOutlet id o_volumeslider;
37
38     IBOutlet id o_specificTime_cancel_btn;
39     IBOutlet id o_specificTime_enter_fld;
40     IBOutlet id o_specificTime_goTo_lbl;
41     IBOutlet id o_specificTime_ok_btn;
42     IBOutlet id o_specificTime_win;
43     IBOutlet id o_specificTime_sec_lbl;
44     IBOutlet id o_specificTime_stepper;
45     IBOutlet id o_specificTime_mi;
46     
47     VLCFSPanel *o_fs_panel;
48 }
49
50 - (IBAction)play:(id)sender;
51 - (IBAction)stop:(id)sender;
52 - (IBAction)faster:(id)sender;
53 - (IBAction)slower:(id)sender;
54
55 - (IBAction)prev:(id)sender;
56 - (IBAction)next:(id)sender;
57 - (IBAction)random:(id)sender;
58 - (IBAction)repeat:(id)sender;
59 - (IBAction)loop:(id)sender;
60
61 - (IBAction)forward:(id)sender;
62 - (IBAction)backward:(id)sender;
63
64 - (IBAction)volumeUp:(id)sender;
65 - (IBAction)volumeDown:(id)sender;
66 - (IBAction)mute:(id)sender;
67 - (IBAction)volumeSliderUpdated:(id)sender;
68
69 - (IBAction)windowAction:(id)sender;
70 - (BOOL)keyEvent:(NSEvent *)o_event;
71
72 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
73                     target:(vlc_object_t *)p_object
74                     var:(const char *)psz_variable
75                     selector:(SEL)pf_callback;
76 - (void)setupVarMenu:(NSMenu *)o_menu
77                     forMenuItem: (NSMenuItem *)o_parent
78                     target:(vlc_object_t *)p_object
79                     var:(const char *)psz_variable
80                     selector:(SEL)pf_callback;
81 - (IBAction)toggleVar:(id)sender;
82 - (int)toggleVarThread:(id)_o_data;
83
84 - (IBAction)goToSpecificTime:(id)sender;
85
86 - (id)getFSPanel;
87
88 @end
89
90 /*****************************************************************************
91  * VLCMenuExt interface 
92  *****************************************************************************
93  * This holds our data for autogenerated menus
94  *****************************************************************************/
95 @interface VLCMenuExt : NSObject
96 {
97     char *psz_name;
98     int i_object_id;
99     vlc_value_t value;
100     int i_type;
101 }
102
103 - (id)initWithVar: (const char *)_psz_name Object: (int)i_id
104         Value: (vlc_value_t)val ofType: (int)_i_type;
105 - (char *)name;
106 - (int)objectID;
107 - (vlc_value_t)value;
108 - (int)type;
109
110 @end
111
112 /*****************************************************************************
113  * VLCTimeField interface 
114  *****************************************************************************
115  * we need the implementation to catch our click-event in the controller window
116  *****************************************************************************/
117
118 @interface VLCTimeField : NSTextField
119 {
120 }
121 @end
122