1 /*****************************************************************************
2 * sfilter.h: MacOS X Subpicture filters dialogue
3 *****************************************************************************
4 * Copyright (C) 2005 the VideoLAN team
7 * Authors: Felix K
\9fhne <fkuehne@users.sf.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
27 @interface VLCsFilters : NSObject
30 IBOutlet id o_sfilter_tabView;
31 IBOutlet id o_sfilter_win;
34 IBOutlet id o_logo_enabled_ckb;
35 IBOutlet id o_logo_image_btn;
36 IBOutlet id o_logo_image_fld;
37 IBOutlet id o_logo_image_lbl;
38 IBOutlet id o_logo_opaque_lbl;
39 IBOutlet id o_logo_opaque_sld;
40 IBOutlet id o_logo_pos_fix_btn;
41 IBOutlet id o_logo_pos_fix_X_fld;
42 IBOutlet id o_logo_pos_fix_X_lbl;
43 IBOutlet id o_logo_pos_fix_Y_fld;
44 IBOutlet id o_logo_pos_fix_Y_lbl;
45 IBOutlet id o_logo_pos_lbl;
46 IBOutlet id o_logo_pos_rel_btn;
47 IBOutlet id o_logo_pos_rel_pop;
48 IBOutlet id o_logo_pos_matrix;
51 IBOutlet id o_marq_enabled_ckb;
52 IBOutlet id o_marq_color_lbl;
53 IBOutlet id o_marq_color_pop;
54 IBOutlet id o_marq_marq_fld;
55 IBOutlet id o_marq_marq_lbl;
56 IBOutlet id o_marq_opaque_lbl;
57 IBOutlet id o_marq_opaque_sld;
58 IBOutlet id o_marq_pos_fix_btn;
59 IBOutlet id o_marq_pos_fix_X_fld;
60 IBOutlet id o_marq_pos_fix_X_lbl;
61 IBOutlet id o_marq_pos_fix_Y_fld;
62 IBOutlet id o_marq_pos_fix_Y_lbl;
63 IBOutlet id o_marq_pos_lbl;
64 IBOutlet id o_marq_pos_rel_btn;
65 IBOutlet id o_marq_pos_rel_pop;
66 IBOutlet id o_marq_size_inPx_lbl;
67 IBOutlet id o_marq_size_lbl;
68 IBOutlet id o_marq_size_pop;
69 IBOutlet id o_marq_tmOut_fld;
70 IBOutlet id o_marq_tmOut_lbl;
71 IBOutlet id o_marq_tmOut_ms_lbl;
72 IBOutlet id o_marq_pos_matrix;
75 IBOutlet id o_time_enabled_ckb;
76 IBOutlet id o_time_color_lbl;
77 IBOutlet id o_time_color_pop;
78 IBOutlet id o_time_opaque_lbl;
79 IBOutlet id o_time_opaque_sld;
80 IBOutlet id o_time_pos_fix_btn;
81 IBOutlet id o_time_pos_fix_X_fld;
82 IBOutlet id o_time_pos_fix_X_lbl;
83 IBOutlet id o_time_pos_fix_Y_fld;
84 IBOutlet id o_time_pos_fix_Y_lbl;
85 IBOutlet id o_time_pos_lbl;
86 IBOutlet id o_time_pos_rel_btn;
87 IBOutlet id o_time_pos_rel_pop;
88 IBOutlet id o_time_size_inPx_lbl;
89 IBOutlet id o_time_size_lbl;
90 IBOutlet id o_time_size_pop;
91 IBOutlet id o_time_stamp_fld;
92 IBOutlet id o_time_stamp_lbl;
93 IBOutlet id o_time_pos_matrix;
95 BOOL o_config_changed;
101 + (VLCsFilters *)sharedInstance;
102 - (IBAction)logo_selectFile:(id)sender;
103 - (IBAction)propertyChanged:(id)sender;
104 - (IBAction)enableFilter:(id)sender;
105 - (IBAction)otherPositionForLogo:(id)sender;
106 - (IBAction)otherPositionForMarq:(id)sender;
107 - (IBAction)otherPositionForTime:(id)sender;
111 - (void)changeFiltersString: (char *)psz_name onOrOff: (vlc_bool_t )b_add;