]> git.sesse.net Git - vlc/blob - modules/gui/macosx/controls.h
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / macosx / controls.h
1 /*****************************************************************************
2  * controls.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2006 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  *          Felix Kühne <fkuehne at videolan org>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25  *****************************************************************************/
26
27 #import "fspanel.h"
28
29 /*****************************************************************************
30  * VLCControls interface
31  *****************************************************************************/
32 @interface VLCControls : NSObject
33 {
34     IBOutlet id o_main;
35
36     IBOutlet id o_btn_fullscreen;
37     IBOutlet id o_volumeslider;
38  
39     IBOutlet id o_btn_shuffle;
40     IBOutlet id o_btn_addNode;
41     IBOutlet id o_btn_repeat;
42
43     IBOutlet id o_specificTime_cancel_btn;
44     IBOutlet id o_specificTime_enter_fld;
45     IBOutlet id o_specificTime_goTo_lbl;
46     IBOutlet id o_specificTime_ok_btn;
47     IBOutlet id o_specificTime_win;
48     IBOutlet id o_specificTime_sec_lbl;
49     IBOutlet id o_specificTime_stepper;
50     IBOutlet id o_specificTime_mi;
51  
52     VLCFSPanel *o_fs_panel;
53 }
54
55 - (IBAction)play:(id)sender;
56 - (IBAction)stop:(id)sender;
57 - (IBAction)faster:(id)sender;
58 - (IBAction)slower:(id)sender;
59
60 - (IBAction)prev:(id)sender;
61 - (IBAction)next:(id)sender;
62 - (IBAction)random:(id)sender;
63 - (IBAction)repeat:(id)sender;
64 - (IBAction)loop:(id)sender;
65 - (IBAction)repeatButtonAction:(id)sender;
66
67 /* the three ugly helpers again */
68 - (void)repeatOne;
69 - (void)repeatAll;
70 - (void)repeatOff;
71 - (void)shuffle;
72
73 - (IBAction)forward:(id)sender;
74 - (IBAction)backward:(id)sender;
75
76 - (IBAction)volumeUp:(id)sender;
77 - (IBAction)volumeDown:(id)sender;
78 - (IBAction)mute:(id)sender;
79 - (IBAction)volumeSliderUpdated:(id)sender;
80
81 - (IBAction)showPosition: (id)sender;
82 - (IBAction)toogleFullscreen:(id)sender;
83 - (BOOL) isFullscreen;
84 - (IBAction)windowAction:(id)sender;
85 - (BOOL)keyEvent:(NSEvent *)o_event;
86 - (void)scrollWheel:(NSEvent *)theEvent;
87
88 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
89                     target:(vlc_object_t *)p_object
90                     var:(const char *)psz_variable
91                     selector:(SEL)pf_callback;
92 - (void)setupVarMenu:(NSMenu *)o_menu
93                     forMenuItem: (NSMenuItem *)o_parent
94                     target:(vlc_object_t *)p_object
95                     var:(const char *)psz_variable
96                     selector:(SEL)pf_callback;
97 - (IBAction)toggleVar:(id)sender;
98 - (int)toggleVarThread:(id)_o_data;
99
100 - (IBAction)goToSpecificTime:(id)sender;
101
102 - (id)getFSPanel;
103
104 @end
105
106 /*****************************************************************************
107  * VLCMenuExt interface
108  *****************************************************************************
109  * This holds our data for autogenerated menus
110  *****************************************************************************/
111 @interface VLCMenuExt : NSObject
112 {
113     char *psz_name;
114     int i_object_id;
115     vlc_value_t value;
116     int i_type;
117 }
118
119 - (id)initWithVar: (const char *)_psz_name Object: (int)i_id
120         Value: (vlc_value_t)val ofType: (int)_i_type;
121 - (char *)name;
122 - (int)objectID;
123 - (vlc_value_t)value;
124 - (int)type;
125
126 @end
127
128 /*****************************************************************************
129  * VLCTimeField interface
130  *****************************************************************************
131  * we need the implementation to catch our click-event in the controller window
132  *****************************************************************************/
133
134 @interface VLCTimeField : NSTextField
135 {
136 }
137 @end
138