]> git.sesse.net Git - vlc/blob - modules/gui/macosx/VideoEffects.h
macosx: CAS: re-write the destination section's appearance to make it less cluttered
[vlc] / modules / gui / macosx / VideoEffects.h
1 /*****************************************************************************
2  * VideoEffects.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2011-2012 Felix Paul Kühne
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 #import <Cocoa/Cocoa.h>
25
26
27 @interface VLCVideoEffects : NSObject {
28     /* generic */
29     intf_thread_t *p_intf;
30     IBOutlet id o_window;
31     IBOutlet id o_tableView;
32
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_reset_btn;
47     IBOutlet id o_sharpen_ckb;
48     IBOutlet id o_sharpen_lbl;
49     IBOutlet id o_sharpen_sld;
50     IBOutlet id o_banding_ckb;
51     IBOutlet id o_banding_lbl;
52     IBOutlet id o_banding_sld;
53     IBOutlet id o_grain_ckb;
54     IBOutlet id o_grain_sld;
55     IBOutlet id o_grain_lbl;
56
57     /* crop */
58     IBOutlet id o_crop_top_lbl;
59     IBOutlet id o_crop_top_fld;
60     IBOutlet id o_crop_top_stp;
61     IBOutlet id o_crop_left_lbl;
62     IBOutlet id o_crop_left_fld;
63     IBOutlet id o_crop_left_stp;
64     IBOutlet id o_crop_right_lbl;
65     IBOutlet id o_crop_right_fld;
66     IBOutlet id o_crop_right_stp;
67     IBOutlet id o_crop_bottom_lbl;
68     IBOutlet id o_crop_bottom_fld;
69     IBOutlet id o_crop_bottom_stp;
70     IBOutlet id o_crop_sync_top_bottom_ckb;
71     IBOutlet id o_crop_sync_left_right_ckb;
72
73     /* geometry */
74     IBOutlet id o_transform_ckb;
75     IBOutlet id o_transform_pop;
76     IBOutlet id o_zoom_ckb;
77     IBOutlet id o_puzzle_ckb;
78     IBOutlet id o_puzzle_rows_lbl;
79     IBOutlet id o_puzzle_rows_fld;
80     IBOutlet id o_puzzle_columns_lbl;
81     IBOutlet id o_puzzle_columns_fld;
82     IBOutlet id o_puzzle_blackslot_ckb;
83
84     /* color */
85     IBOutlet id o_threshold_ckb;
86     IBOutlet id o_threshold_color_lbl;
87     IBOutlet id o_threshold_color_fld;
88     IBOutlet id o_threshold_saturation_lbl;
89     IBOutlet id o_threshold_saturation_sld;
90     IBOutlet id o_threshold_similarity_lbl;
91     IBOutlet id o_threshold_similarity_sld;
92     IBOutlet id o_sepia_ckb;
93     IBOutlet id o_sepia_lbl;
94     IBOutlet id o_sepia_fld;
95     IBOutlet id o_noise_ckb;
96     IBOutlet id o_gradient_ckb;
97     IBOutlet id o_gradient_mode_lbl;
98     IBOutlet id o_gradient_mode_pop;
99     IBOutlet id o_gradient_color_ckb;
100     IBOutlet id o_gradient_cartoon_ckb;
101     IBOutlet id o_extract_ckb;
102     IBOutlet id o_extract_lbl;
103     IBOutlet id o_extract_fld;
104     IBOutlet id o_invert_ckb;
105     IBOutlet id o_posterize_ckb;
106     IBOutlet id o_posterize_lbl;
107     IBOutlet id o_posterize_fld;
108     IBOutlet id o_blur_ckb;
109     IBOutlet id o_blur_sld;
110     IBOutlet id o_blur_lbl;
111     IBOutlet id o_motiondetect_ckb;
112     IBOutlet id o_watereffect_ckb;
113     IBOutlet id o_waves_ckb;
114     IBOutlet id o_psychedelic_ckb;
115
116     /* misc */
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_pos_lbl;
126     IBOutlet id o_addlogo_pos_pop;
127     IBOutlet id o_addlogo_transparency_lbl;
128     IBOutlet id o_addlogo_transparency_sld;
129 }
130
131 /* generic */
132 + (VLCVideoEffects *)sharedInstance;
133 - (IBAction)toggleWindow:(id)sender;
134 - (void)resetValues;
135 - (void)setVideoFilter: (char *)psz_name on:(BOOL)b_on;
136 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char*)psz_filter integer: (int)i_value;
137 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char*)psz_filter float: (float)f_value;
138 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char *)psz_filter string: (char *)psz_value;
139 - (void)setVideoFilterProperty: (char *)psz_name forFilter: (char *)psz_filter boolean: (BOOL)b_value;
140
141 /* basic */
142 - (IBAction)enableAdjust:(id)sender;
143 - (IBAction)adjustSliderChanged:(id)sender;
144 - (IBAction)enableAdjustBrightnessThreshold:(id)sender;
145 - (IBAction)enableSharpen:(id)sender;
146 - (IBAction)sharpenSliderChanged:(id)sender;
147 - (IBAction)enableBanding:(id)sender;
148 - (IBAction)bandingSliderChanged:(id)sender;
149 - (IBAction)enableGrain:(id)sender;
150 - (IBAction)grainSliderChanged:(id)sender;
151
152 /* crop */
153 - (IBAction)cropObjectChanged:(id)sender;
154
155 /* geometry */
156 - (IBAction)enableTransform:(id)sender;
157 - (IBAction)transformModifierChanged:(id)sender;
158 - (IBAction)enableZoom:(id)sender;
159 - (IBAction)enablePuzzle:(id)sender;
160 - (IBAction)puzzleModifierChanged:(id)sender;
161
162 /* color */
163 - (IBAction)enableThreshold:(id)sender;
164 - (IBAction)thresholdModifierChanged:(id)sender;
165 - (IBAction)enableSepia:(id)sender;
166 - (IBAction)sepiaModifierChanged:(id)sender;
167 - (IBAction)enableNoise:(id)sender;
168 - (IBAction)enableGradient:(id)sender;
169 - (IBAction)gradientModifierChanged:(id)sender;
170 - (IBAction)enableExtract:(id)sender;
171 - (IBAction)extractModifierChanged:(id)sender;
172 - (IBAction)enableInvert:(id)sender;
173 - (IBAction)enablePosterize:(id)sender;
174 - (IBAction)posterizeModifierChanged:(id)sender;
175 - (IBAction)enableBlur:(id)sender;
176 - (IBAction)blurModifierChanged:(id)sender;
177 - (IBAction)enableMotionDetect:(id)sender;
178 - (IBAction)enableWaterEffect:(id)sender;
179 - (IBAction)enableWaves:(id)sender;
180 - (IBAction)enablePsychedelic:(id)sender;
181
182 /* miscellaneous */
183 - (IBAction)enableAddText:(id)sender;
184 - (IBAction)addTextModifierChanged:(id)sender;
185 - (IBAction)enableAddLogo:(id)sender;
186 - (IBAction)addLogoModifierChanged:(id)sender;
187 @end