]> git.sesse.net Git - vlc/blob - modules/gui/macosx/TrackSynchronization.h
macosx: fixes a memory leak.
[vlc] / modules / gui / macosx / TrackSynchronization.h
1 /*****************************************************************************
2  * TrackSynchronization.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2011 VLC authors and VideoLAN
5  * Copyright (C) 2011 Felix Paul Kühne
6  * $Id$
7  *
8  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #import <Cocoa/Cocoa.h>
26
27
28 @interface VLCTrackSynchronization : NSObject {
29     /* generic */
30     IBOutlet id o_window;
31     intf_thread_t *p_intf;
32     IBOutlet id o_reset_btn;
33
34     /* Audio / Video */
35     IBOutlet id o_av_lbl;
36     IBOutlet id o_av_advance_lbl;
37     IBOutlet id o_av_minus_btn;
38     IBOutlet id o_av_plus_btn;
39     IBOutlet id o_av_value_fld;
40
41     /* Subtitles / Video */
42     IBOutlet id o_sv_lbl;
43     IBOutlet id o_sv_advance_lbl;
44     IBOutlet id o_sv_advance_minus_btn;
45     IBOutlet id o_sv_advance_plus_btn;
46     IBOutlet id o_sv_advance_value_fld;
47     IBOutlet id o_sv_speed_lbl;
48     IBOutlet id o_sv_speed_minus_btn;
49     IBOutlet id o_sv_speed_plus_btn;
50     IBOutlet id o_sv_speed_value_fld;
51 }
52
53 /* generic */
54 + (VLCTrackSynchronization *)sharedInstance;
55 - (IBAction)toggleWindow:(id)sender;
56 - (IBAction)resetValues:(id)sender;
57 - (void)updateValues;
58
59 /* Audio / Video */
60 - (IBAction)avValueChanged:(id)sender;
61
62 /* Subtitles / Video */
63 - (IBAction)svAdvanceValueChanged:(id)sender;
64 - (IBAction)svSpeedValueChanged:(id)sender;
65 @end