1 /*****************************************************************************
2 * controls.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2002-2009 the VideoLAN team
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 Paul Kühne <fkuehne at videolan org>
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.
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.
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 *****************************************************************************/
29 /*****************************************************************************
30 * VLCControls interface
31 *****************************************************************************/
32 @interface VLCControls : NSObject
36 IBOutlet id o_volumeslider;
38 IBOutlet id o_btn_shuffle;
39 IBOutlet id o_btn_addNode;
40 IBOutlet id o_btn_repeat;
42 NSImage * o_repeat_single;
43 NSImage * o_repeat_all;
44 NSImage * o_repeat_off;
46 IBOutlet id o_specificTime_cancel_btn;
47 IBOutlet id o_specificTime_enter_fld;
48 IBOutlet id o_specificTime_goTo_lbl;
49 IBOutlet id o_specificTime_ok_btn;
50 IBOutlet id o_specificTime_win;
51 IBOutlet id o_specificTime_sec_lbl;
52 IBOutlet id o_specificTime_stepper;
53 IBOutlet id o_specificTime_mi;
55 VLCFSPanel *o_fs_panel;
56 BOOL b_lockAspectRatio;
58 - (void)controlTintChanged;
61 - (BOOL)aspectRatioIsLocked;
63 - (IBAction)play:(id)sender;
64 - (IBAction)stop:(id)sender;
65 - (IBAction)faster:(id)sender;
66 - (IBAction)slower:(id)sender;
68 - (IBAction)prev:(id)sender;
69 - (IBAction)next:(id)sender;
70 - (IBAction)random:(id)sender;
71 - (IBAction)repeat:(id)sender;
72 - (IBAction)loop:(id)sender;
73 - (IBAction)repeatButtonAction:(id)sender;
75 /* the three ugly helpers again */
81 - (IBAction)forward:(id)sender;
82 - (IBAction)backward:(id)sender;
84 - (IBAction)volumeUp:(id)sender;
85 - (IBAction)volumeDown:(id)sender;
86 - (IBAction)mute:(id)sender;
87 - (IBAction)volumeSliderUpdated:(id)sender;
89 - (IBAction)showPosition: (id)sender;
90 - (IBAction)toogleFullscreen:(id)sender;
92 - (IBAction)windowAction:(id)sender;
94 - (IBAction)telxTransparent:(id)sender;
95 - (IBAction)telxNavLink:(id)sender;
96 - (IBAction)lockVideosAspectRatio:(id)sender;
97 - (IBAction)addSubtitleFile:(id)sender;
99 - (BOOL)keyEvent:(NSEvent *)o_event;
100 - (void)scrollWheel: (NSEvent *)theEvent;
102 - (void)setupVarMenuItem:(NSMenuItem *)o_mi
103 target:(vlc_object_t *)p_object
104 var:(const char *)psz_variable
105 selector:(SEL)pf_callback;
106 - (void)setupVarMenu:(NSMenu *)o_menu
107 forMenuItem: (NSMenuItem *)o_parent
108 target:(vlc_object_t *)p_object
109 var:(const char *)psz_variable
110 selector:(SEL)pf_callback;
111 - (IBAction)toggleVar:(id)sender;
112 - (int)toggleVarThread:(id)_o_data;
114 - (IBAction)goToSpecificTime:(id)sender;
120 /*****************************************************************************
121 * VLCTimeField interface
122 *****************************************************************************
123 * we need the implementation to catch our click-event in the controller window
124 *****************************************************************************/
126 @interface VLCTimeField : NSTextField