MacOS X: fix preferences for ModulesConfig
[vlc.git] / modules / gui / macosx / VideoEffects.h
blobbfb9df9c5fb46b17c3dc85970c8a64695a90962b
1 /*****************************************************************************
2 * VideoEffects.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2011 Felix Paul Kühne
5 * $Id$
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
27 @interface VLCVideoEffects : NSObject {
28 /* generic */
29 intf_thread_t *p_intf;
30 IBOutlet id o_window;
31 IBOutlet id o_tableView;
33 /* basic */
34 IBOutlet id o_adjust_ckb;
35 IBOutlet id o_adjust_hue_lbl;
36 IBOutlet id o_adjust_hue_sld;
37 IBOutlet id o_adjust_contrast_lbl;
38 IBOutlet id o_adjust_contrast_sld;
39 IBOutlet id o_adjust_brightness_lbl;
40 IBOutlet id o_adjust_brightness_sld;
41 IBOutlet id o_adjust_brightness_ckb;
42 IBOutlet id o_adjust_saturation_lbl;
43 IBOutlet id o_adjust_saturation_sld;
44 IBOutlet id o_adjust_gamma_lbl;
45 IBOutlet id o_adjust_gamma_sld;
46 IBOutlet id o_adjust_opaque_lbl;
47 IBOutlet id o_adjust_opaque_sld;
48 IBOutlet id o_sharpen_ckb;
49 IBOutlet id o_sharpen_lbl;
50 IBOutlet id o_sharpen_sld;
51 IBOutlet id o_banding_ckb;
52 IBOutlet id o_banding_lbl;
53 IBOutlet id o_banding_sld;
54 IBOutlet id o_grain_ckb;
55 IBOutlet id o_grain_sld;
56 IBOutlet id o_grain_lbl;
58 /* crop */
59 IBOutlet id o_crop_top_lbl;
60 IBOutlet id o_crop_top_fld;
61 IBOutlet id o_crop_left_lbl;
62 IBOutlet id o_crop_left_fld;
63 IBOutlet id o_crop_right_lbl;
64 IBOutlet id o_crop_right_fld;
65 IBOutlet id o_crop_bottom_lbl;
66 IBOutlet id o_crop_bottom_fld;
67 IBOutlet id o_crop_sync_top_bottom_ckb;
68 IBOutlet id o_crop_sync_left_right_ckb;
70 /* geometry */
71 IBOutlet id o_transform_ckb;
72 IBOutlet id o_transform_pop;
73 IBOutlet id o_zoom_ckb;
74 IBOutlet id o_puzzle_ckb;
75 IBOutlet id o_puzzle_rows_lbl;
76 IBOutlet id o_puzzle_rows_fld;
77 IBOutlet id o_puzzle_columns_lbl;
78 IBOutlet id o_puzzle_columns_fld;
79 IBOutlet id o_puzzle_blackslot_ckb;
81 /* color */
82 IBOutlet id o_threshold_ckb;
83 IBOutlet id o_threshold_color_lbl;
84 IBOutlet id o_threshold_color_fld;
85 IBOutlet id o_threshold_saturation_lbl;
86 IBOutlet id o_threshold_saturation_sld;
87 IBOutlet id o_threshold_similarity_lbl;
88 IBOutlet id o_threshold_similarity_sld;
89 IBOutlet id o_sepia_ckb;
90 IBOutlet id o_sepia_lbl;
91 IBOutlet id o_sepia_fld;
92 IBOutlet id o_noise_ckb;
93 IBOutlet id o_gradient_ckb;
94 IBOutlet id o_gradient_mode_lbl;
95 IBOutlet id o_gradient_mode_pop;
96 IBOutlet id o_gradient_color_ckb;
97 IBOutlet id o_gradient_cartoon_ckb;
98 IBOutlet id o_extract_ckb;
99 IBOutlet id o_extract_lbl;
100 IBOutlet id o_extract_fld;
101 IBOutlet id o_invert_ckb;
102 IBOutlet id o_posterize_ckb;
103 IBOutlet id o_posterize_lbl;
104 IBOutlet id o_posterize_fld;
105 IBOutlet id o_blur_ckb;
106 IBOutlet id o_blur_sld;
107 IBOutlet id o_blur_lbl;
108 IBOutlet id o_motiondetect_ckb;
109 IBOutlet id o_watereffect_ckb;
110 IBOutlet id o_waves_ckb;
111 IBOutlet id o_psychedelic_ckb;
113 /* misc */
114 IBOutlet id o_clone_ckb;
115 IBOutlet id o_clone_lbl;
116 IBOutlet id o_clone_fld;
117 IBOutlet id o_addtext_ckb;
118 IBOutlet id o_addtext_text_fld;
119 IBOutlet id o_addtext_text_lbl;
120 IBOutlet id o_addtext_pos_lbl;
121 IBOutlet id o_addtext_pos_pop;
122 IBOutlet id o_addlogo_ckb;
123 IBOutlet id o_addlogo_logo_lbl;
124 IBOutlet id o_addlogo_logo_fld;
125 IBOutlet id o_addlogo_top_lbl;
126 IBOutlet id o_addlogo_top_fld;
127 IBOutlet id o_addlogo_left_lbl;
128 IBOutlet id o_addlogo_left_fld;
129 IBOutlet id o_addlogo_transparency_lbl;
130 IBOutlet id o_addlogo_transparency_sld;
133 /* generic */
134 + (VLCVideoEffects *)sharedInstance;
135 - (IBAction)toggleWindow:(id)sender;
136 - (void)resetValues;
137 - (void)setVideoFilter: (char *)psz_name on:(BOOL)b_on;
138 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char*)psz_filter integer: (int)i_value;
139 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char*)psz_filter float: (float)f_value;
140 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char *)psz_filter string: (char *)psz_value;
141 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char *)psz_filter boolean: (BOOL)b_value;
143 /* basic */
144 - (IBAction)enableAdjust:(id)sender;
145 - (IBAction)adjustSliderChanged:(id)sender;
146 - (IBAction)enableAdjustBrightnessThreshold:(id)sender;
147 - (IBAction)enableSharpen:(id)sender;
148 - (IBAction)sharpenSliderChanged:(id)sender;
149 - (IBAction)enableBanding:(id)sender;
150 - (IBAction)bandingSliderChanged:(id)sender;
151 - (IBAction)enableGrain:(id)sender;
152 - (IBAction)grainSliderChanged:(id)sender;
154 /* crop */
155 - (IBAction)cropObjectChanged:(id)sender;
157 /* geometry */
158 - (IBAction)enableTransform:(id)sender;
159 - (IBAction)transformModifierChanged:(id)sender;
160 - (IBAction)enableZoom:(id)sender;
161 - (IBAction)enablePuzzle:(id)sender;
162 - (IBAction)puzzleModifierChanged:(id)sender;
164 /* color */
165 - (IBAction)enableThreshold:(id)sender;
166 - (IBAction)thresholdModifierChanged:(id)sender;
167 - (IBAction)enableSepia:(id)sender;
168 - (IBAction)sepiaModifierChanged:(id)sender;
169 - (IBAction)enableNoise:(id)sender;
170 - (IBAction)enableGradient:(id)sender;
171 - (IBAction)gradientModifierChanged:(id)sender;
172 - (IBAction)enableExtract:(id)sender;
173 - (IBAction)extractModifierChanged:(id)sender;
174 - (IBAction)enableInvert:(id)sender;
175 - (IBAction)enablePosterize:(id)sender;
176 - (IBAction)posterizeModifierChanged:(id)sender;
177 - (IBAction)enableBlur:(id)sender;
178 - (IBAction)blurModifierChanged:(id)sender;
179 - (IBAction)enableMotionDetect:(id)sender;
180 - (IBAction)enableWaterEffect:(id)sender;
181 - (IBAction)enableWaves:(id)sender;
182 - (IBAction)enablePsychedelic:(id)sender;
184 /* miscellaneous */
185 - (IBAction)enableClone:(id)sender;
186 - (IBAction)cloneModifierChanged:(id)sender;
187 - (IBAction)enableAddText:(id)sender;
188 - (IBAction)addTextModifierChanged:(id)sender;
189 - (IBAction)enableAddLogo:(id)sender;
190 - (IBAction)addLogoModifierChanged:(id)sender;
191 @end