]> git.sesse.net Git - vlc/blob - modules/gui/macosx/open.h
macosx: prevent ugly artifacts when playing a video
[vlc] / modules / gui / macosx / open.h
1 /*****************************************************************************
2  * open.h: Open dialogues for VLC's MacOS X port
3  *****************************************************************************
4  * Copyright (C) 2002-2011 the VideoLAN team
5  * $Id$
6  *
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 dot org>
11  *
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.
16  *
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.
21  *
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  *****************************************************************************/
26
27 /*****************************************************************************
28  * Intf_Open interface
29  *****************************************************************************/
30 @interface VLCOpen : NSObject
31 {
32     IBOutlet id o_playlist;
33
34     IBOutlet id o_panel;
35
36     IBOutlet id o_mrl_fld;
37     IBOutlet id o_mrl_lbl;
38     IBOutlet id o_mrl_view;
39     IBOutlet id o_mrl_btn;
40     IBOutlet id o_tabview;
41
42     IBOutlet id o_btn_ok;
43     IBOutlet id o_btn_cancel;
44
45     /* bottom-line items */
46     IBOutlet id o_output_ckbox;
47     IBOutlet id o_sout_options;
48
49     /* open file */
50     IBOutlet id o_file_name;
51     IBOutlet id o_file_name_stub;
52     IBOutlet id o_file_icon_well;
53     IBOutlet id o_file_btn_browse;
54     IBOutlet id o_file_stream;
55     IBOutlet id o_file_slave_ckbox;
56     IBOutlet id o_file_slave_select_btn;
57     IBOutlet id o_file_slave_filename_lbl;
58     IBOutlet id o_file_slave_icon_well;
59     IBOutlet id o_file_subtitles_filename_lbl;
60     IBOutlet id o_file_subtitles_icon_well;
61
62     /* open disc */
63     IBOutlet id o_disc_selector_pop;
64
65     IBOutlet id o_disc_nodisc_view;
66     IBOutlet id o_disc_nodisc_lbl;
67     IBOutlet id o_disc_nodisc_videots_btn;
68     IBOutlet id o_disc_nodisc_bdmv_btn;
69
70     IBOutlet id o_disc_audiocd_view;
71     IBOutlet id o_disc_audiocd_lbl;
72     IBOutlet id o_disc_audiocd_trackcount_lbl;
73     IBOutlet id o_disc_audiocd_videots_btn;
74     IBOutlet id o_disc_audiocd_bdmv_btn;
75
76     IBOutlet id o_disc_dvd_view;
77     IBOutlet id o_disc_dvd_lbl;
78     IBOutlet id o_disc_dvd_disablemenus_btn;
79     IBOutlet id o_disc_dvd_videots_btn;
80     IBOutlet id o_disc_dvd_bdmv_btn;
81
82     IBOutlet id o_disc_dvdwomenus_view;
83     IBOutlet id o_disc_dvdwomenus_lbl;
84     IBOutlet id o_disc_dvdwomenus_enablemenus_btn;
85     IBOutlet id o_disc_dvdwomenus_videots_btn;
86     IBOutlet id o_disc_dvdwomenus_bdmv_btn;
87     IBOutlet id o_disc_dvdwomenus_title;
88     IBOutlet id o_disc_dvdwomenus_title_lbl;
89     IBOutlet id o_disc_dvdwomenus_title_stp;
90     IBOutlet id o_disc_dvdwomenus_chapter;
91     IBOutlet id o_disc_dvdwomenus_chapter_lbl;
92     IBOutlet id o_disc_dvdwomenus_chapter_stp;
93
94     IBOutlet id o_disc_vcd_view;
95     IBOutlet id o_disc_vcd_lbl;
96     IBOutlet id o_disc_vcd_videots_btn;
97     IBOutlet id o_disc_vcd_bdmv_btn;
98     IBOutlet id o_disc_vcd_title;
99     IBOutlet id o_disc_vcd_title_lbl;
100     IBOutlet id o_disc_vcd_title_stp;
101     IBOutlet id o_disc_vcd_chapter;
102     IBOutlet id o_disc_vcd_chapter_lbl;
103     IBOutlet id o_disc_vcd_chapter_stp;
104
105     IBOutlet id o_disc_bd_view;
106     IBOutlet id o_disc_bd_lbl;
107     IBOutlet id o_disc_bd_videots_btn;
108     IBOutlet id o_disc_bd_bdmv_btn;
109
110     /* open network */
111     IBOutlet id o_net_http_url;
112     IBOutlet id o_net_http_url_lbl;
113     IBOutlet id o_net_help_lbl;
114
115     /* open UDP stuff panel */
116     IBOutlet id o_net_help_udp_lbl;
117     IBOutlet id o_net_udp_protocol_mat;
118     IBOutlet id o_net_udp_protocol_lbl;
119     IBOutlet id o_net_udp_address_lbl;
120     IBOutlet id o_net_udp_mode_lbl;
121     IBOutlet id o_net_mode;
122     IBOutlet id o_net_openUDP_btn;
123     IBOutlet id o_net_udp_cancel_btn;
124     IBOutlet id o_net_udp_ok_btn;
125     IBOutlet id o_net_udp_panel;
126     IBOutlet id o_net_udp_port;
127     IBOutlet id o_net_udp_port_lbl;
128     IBOutlet id o_net_udp_port_stp;
129     IBOutlet id o_net_udpm_addr;
130     IBOutlet id o_net_udpm_addr_lbl;
131     IBOutlet id o_net_udpm_port;
132     IBOutlet id o_net_udpm_port_lbl;
133     IBOutlet id o_net_udpm_port_stp;
134
135     /* open subtitle file */
136     IBOutlet id o_file_sub_ckbox;
137     IBOutlet id o_file_sub_btn_settings;
138     IBOutlet id o_file_sub_sheet;
139     IBOutlet id o_file_sub_path_lbl;
140     IBOutlet id o_file_sub_path_fld;
141     IBOutlet id o_file_sub_icon_view;
142     IBOutlet id o_file_sub_btn_browse;
143     IBOutlet id o_file_sub_override;
144     IBOutlet id o_file_sub_delay;
145     IBOutlet id o_file_sub_delay_lbl;
146     IBOutlet id o_file_sub_delay_stp;
147     IBOutlet id o_file_sub_fps;
148     IBOutlet id o_file_sub_fps_lbl;
149     IBOutlet id o_file_sub_fps_stp;
150     IBOutlet id o_file_sub_encoding_pop;
151     IBOutlet id o_file_sub_encoding_lbl;
152     IBOutlet id o_file_sub_size_pop;
153     IBOutlet id o_file_sub_size_lbl;
154     IBOutlet id o_file_sub_align_pop;
155     IBOutlet id o_file_sub_align_lbl;
156     IBOutlet id o_file_sub_ok_btn;
157     IBOutlet id o_file_sub_font_box;
158     IBOutlet id o_file_sub_file_box;
159
160     /* generic capturing stuff */
161     IBOutlet id o_capture_lbl;
162     IBOutlet id o_capture_long_lbl;
163     IBOutlet id o_capture_mode_pop;
164     IBOutlet id o_capture_label_view;
165
166     /* eyetv support */
167     IBOutlet id o_eyetv_notLaunched_view;
168     IBOutlet id o_eyetv_running_view;
169     IBOutlet id o_eyetv_channels_pop;
170     IBOutlet id o_eyetv_currentChannel_lbl;
171     IBOutlet id o_eyetv_chn_status_txt;
172     IBOutlet id o_eyetv_chn_bgbar;
173     IBOutlet id o_eyetv_launchEyeTV_btn;
174     IBOutlet id o_eyetv_getPlugin_btn;
175     IBOutlet id o_eyetv_nextProgram_btn;
176     IBOutlet id o_eyetv_noInstance_lbl;
177     IBOutlet id o_eyetv_noInstanceLong_lbl;
178     IBOutlet id o_eyetv_previousProgram_btn;
179
180     /* screen support */
181     IBOutlet id o_screen_view;
182     IBOutlet id o_screen_long_lbl;
183     IBOutlet id o_screen_fps_fld;
184     IBOutlet id o_screen_fps_lbl;
185     IBOutlet id o_screen_fps_stp;
186     IBOutlet id o_screen_left_fld;
187     IBOutlet id o_screen_left_lbl;
188     IBOutlet id o_screen_left_stp;
189     IBOutlet id o_screen_top_fld;
190     IBOutlet id o_screen_top_lbl;
191     IBOutlet id o_screen_top_stp;
192     IBOutlet id o_screen_width_fld;
193     IBOutlet id o_screen_width_lbl;
194     IBOutlet id o_screen_width_stp;
195     IBOutlet id o_screen_height_fld;
196     IBOutlet id o_screen_height_lbl;
197     IBOutlet id o_screen_height_stp;
198     IBOutlet id o_screen_follow_mouse_ckb;
199
200     /* QTK support */
201     IBOutlet id o_qtk_view;
202     IBOutlet id o_qtk_long_lbl;
203     IBOutlet id o_qtk_device_pop;
204     IBOutlet id o_qtk_label_view;
205     IBOutlet id o_capture_width_lbl;
206     IBOutlet id o_capture_width_fld;
207     IBOutlet id o_capture_width_stp;
208     IBOutlet id o_capture_height_lbl;
209     IBOutlet id o_capture_height_fld;
210     IBOutlet id o_capture_height_stp;
211
212     NSArray         *qtkvideoDevices;
213     NSString        *qtk_currdevice_uid;
214
215     BOOL b_autoplay;
216     BOOL b_nodvdmenus;
217     id o_currentOpticalMediaView;
218     id o_currentOpticalMediaIconView;
219     NSMutableArray *o_opticalDevices;
220     NSMutableArray *o_specialMediaFolders;
221     NSString *o_file_path;
222     id o_currentCaptureView;
223     NSString *o_file_slave_path;
224     NSString *o_sub_path;
225     NSString *o_mrl;
226     intf_thread_t * p_intf;
227 }
228
229 + (VLCOpen *)sharedInstance;
230
231 - (void)setMRL:(NSString *)mrl;
232 - (NSString *)MRL;
233
234 - (NSArray *)qtkvideoDevices;
235 - (void)qtkrefreshDevices;
236
237 - (void)setSubPanel;
238 - (void)openTarget:(int)i_type;
239 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
240 - (void)textFieldWasClicked:(NSNotification *)o_notification;
241 - (IBAction)expandMRLfieldAction:(id)sender;
242 - (IBAction)inputSlaveAction:(id)sender;
243
244 - (void)openFileGeneric;
245 - (void)openFilePathChanged:(NSNotification *)o_notification;
246 - (IBAction)openFileBrowse:(id)sender;
247 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
248 - (IBAction)openFileStreamChanged:(id)sender;
249
250 - (void)openDisc;
251 - (void)scanOpticalMedia:(NSNotification *)o_notification;
252 - (IBAction)discSelectorChanged:(id)sender;
253 - (IBAction)openSpecialMediaFolder:(id)sender;
254 - (IBAction)dvdreadOptionChanged:(id)sender;
255 - (IBAction)vcdOptionChanged:(id)sender;
256
257 - (void)openNet;
258 - (IBAction)openNetModeChanged:(id)sender;
259 - (IBAction)openNetStepperChanged:(id)sender;
260 - (void)openNetInfoChanged:(NSNotification *)o_notification;
261 - (IBAction)openNetUDPButtonAction:(id)sender;
262
263 - (void)openCapture;
264 - (void)showCaptureView: theView;
265 - (IBAction)openCaptureModeChanged:(id)sender;
266 - (IBAction)qtkChanged:(id)sender;
267 - (IBAction)eyetvSwitchChannel:(id)sender;
268 - (IBAction)eyetvLaunch:(id)sender;
269 - (IBAction)eyetvGetPlugin:(id)sender;
270 - (void)eyetvChanged:(NSNotification *)o_notification;
271 - (void)setupChannelInfo;
272 - (IBAction)screenStepperChanged:(id)sender;
273 - (void)screenFPSfieldChanged:(NSNotification *)o_notification;
274
275 - (IBAction)subsChanged:(id)sender;
276 - (IBAction)subSettings:(id)sender;
277 - (IBAction)subFileBrowse:(id)sender;
278 - (IBAction)subOverride:(id)sender;
279 - (IBAction)subDelayStepperChanged:(id)sender;
280 - (IBAction)subFpsStepperChanged:(id)sender;
281 - (IBAction)subCloseSheet:(id)sender;
282
283 - (IBAction)panelCancel:(id)sender;
284 - (IBAction)panelOk:(id)sender;
285
286 - (void)openFile;
287 @end
288
289 @interface VLCOpenTextField : NSTextField
290 {
291 }
292 - (void)mouseDown:(NSEvent *)theEvent;
293 @end