]> git.sesse.net Git - vlc/blob - modules/gui/macosx/open.h
4f40012cb8e25e6700ffc3ad5c7c62c6e2b9c3bc
[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_icon_well;
64     IBOutlet id o_disc_selector_pop;
65
66     IBOutlet id o_disc_nodisc_view;
67     IBOutlet id o_disc_nodisc_lbl;
68     IBOutlet id o_disc_nodisc_videots_btn;
69     IBOutlet id o_disc_nodisc_bdmv_btn;
70
71     IBOutlet id o_disc_audiocd_view;
72     IBOutlet id o_disc_audiocd_lbl;
73     IBOutlet id o_disc_audiocd_trackcount_lbl;
74     IBOutlet id o_disc_audiocd_videots_btn;
75     IBOutlet id o_disc_audiocd_bdmv_btn;
76
77     IBOutlet id o_disc_dvd_view;
78     IBOutlet id o_disc_dvd_lbl;
79     IBOutlet id o_disc_dvd_disablemenus_btn;
80     IBOutlet id o_disc_dvd_videots_btn;
81     IBOutlet id o_disc_dvd_bdmv_btn;
82
83     IBOutlet id o_disc_dvdwomenus_view;
84     IBOutlet id o_disc_dvdwomenus_lbl;
85     IBOutlet id o_disc_dvdwomenus_enablemenus_btn;
86     IBOutlet id o_disc_dvdwomenus_videots_btn;
87     IBOutlet id o_disc_dvdwomenus_bdmv_btn;
88     IBOutlet id o_disc_dvdwomenus_title;
89     IBOutlet id o_disc_dvdwomenus_title_lbl;
90     IBOutlet id o_disc_dvdwomenus_title_stp;
91     IBOutlet id o_disc_dvdwomenus_chapter;
92     IBOutlet id o_disc_dvdwomenus_chapter_lbl;
93     IBOutlet id o_disc_dvdwomenus_chapter_stp;
94
95     IBOutlet id o_disc_vcd_view;
96     IBOutlet id o_disc_vcd_lbl;
97     IBOutlet id o_disc_vcd_videots_btn;
98     IBOutlet id o_disc_vcd_bdmv_btn;
99     IBOutlet id o_disc_vcd_title;
100     IBOutlet id o_disc_vcd_title_lbl;
101     IBOutlet id o_disc_vcd_title_stp;
102     IBOutlet id o_disc_vcd_chapter;
103     IBOutlet id o_disc_vcd_chapter_lbl;
104     IBOutlet id o_disc_vcd_chapter_stp;
105
106     IBOutlet id o_disc_bd_view;
107     IBOutlet id o_disc_bd_lbl;
108     IBOutlet id o_disc_bd_videots_btn;
109     IBOutlet id o_disc_bd_bdmv_btn;
110
111     /* open network */
112     IBOutlet id o_net_http_url;
113     IBOutlet id o_net_http_url_lbl;
114     IBOutlet id o_net_help_lbl;
115
116     /* open UDP stuff panel */
117     IBOutlet id o_net_help_udp_lbl;
118     IBOutlet id o_net_udp_protocol_mat;
119     IBOutlet id o_net_udp_protocol_lbl;
120     IBOutlet id o_net_udp_address_lbl;
121     IBOutlet id o_net_udp_mode_lbl;
122     IBOutlet id o_net_mode;
123     IBOutlet id o_net_openUDP_btn;
124     IBOutlet id o_net_udp_cancel_btn;
125     IBOutlet id o_net_udp_ok_btn;
126     IBOutlet id o_net_udp_panel;
127     IBOutlet id o_net_udp_port;
128     IBOutlet id o_net_udp_port_lbl;
129     IBOutlet id o_net_udp_port_stp;
130     IBOutlet id o_net_udpm_addr;
131     IBOutlet id o_net_udpm_addr_lbl;
132     IBOutlet id o_net_udpm_port;
133     IBOutlet id o_net_udpm_port_lbl;
134     IBOutlet id o_net_udpm_port_stp;
135
136     /* open subtitle file */
137     IBOutlet id o_file_sub_ckbox;
138     IBOutlet id o_file_sub_btn_settings;
139     IBOutlet id o_file_sub_sheet;
140     IBOutlet id o_file_sub_path;
141     IBOutlet id o_file_sub_btn_browse;
142     IBOutlet id o_file_sub_override;
143     IBOutlet id o_file_sub_delay;
144     IBOutlet id o_file_sub_delay_lbl;
145     IBOutlet id o_file_sub_delay_stp;
146     IBOutlet id o_file_sub_fps;
147     IBOutlet id o_file_sub_fps_lbl;
148     IBOutlet id o_file_sub_fps_stp;
149     IBOutlet id o_file_sub_encoding_pop;
150     IBOutlet id o_file_sub_encoding_lbl;
151     IBOutlet id o_file_sub_size_pop;
152     IBOutlet id o_file_sub_size_lbl;
153     IBOutlet id o_file_sub_align_pop;
154     IBOutlet id o_file_sub_align_lbl;
155     IBOutlet id o_file_sub_ok_btn;
156     IBOutlet id o_file_sub_font_box;
157     IBOutlet id o_file_sub_file_box;
158
159     /* generic capturing stuff */
160     IBOutlet id o_capture_lbl;
161     IBOutlet id o_capture_long_lbl;
162     IBOutlet id o_capture_mode_pop;
163     IBOutlet id o_capture_label_view;
164
165     /* eyetv support */
166     IBOutlet id o_eyetv_notLaunched_view;
167     IBOutlet id o_eyetv_running_view;
168     IBOutlet id o_eyetv_channels_pop;
169     IBOutlet id o_eyetv_currentChannel_lbl;
170     IBOutlet id o_eyetv_chn_status_txt;
171     IBOutlet id o_eyetv_chn_bgbar;
172     IBOutlet id o_eyetv_launchEyeTV_btn;
173     IBOutlet id o_eyetv_getPlugin_btn;
174     IBOutlet id o_eyetv_nextProgram_btn;
175     IBOutlet id o_eyetv_noInstance_lbl;
176     IBOutlet id o_eyetv_noInstanceLong_lbl;
177     IBOutlet id o_eyetv_previousProgram_btn;
178
179     /* screen support */
180     IBOutlet id o_screen_view;
181     IBOutlet id o_screen_lbl;
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_lbl;
203     IBOutlet id o_qtk_long_lbl;
204     IBOutlet id o_qtk_device_pop;
205     IBOutlet id o_qtk_label_view;
206
207     NSArray         *qtkvideoDevices;
208     NSString        *qtk_currdevice_uid;
209
210     BOOL b_autoplay;
211     BOOL b_nodvdmenus;
212     id o_currentOpticalMediaView;
213     NSMutableArray *o_opticalDevices;
214     NSMutableArray *o_specialMediaFolders;
215     NSString *o_file_path;
216     id o_currentCaptureView;
217     NSString *o_file_slave_path;
218     NSString *o_mrl;
219     intf_thread_t * p_intf;
220 }
221
222 + (VLCOpen *)sharedInstance;
223
224 - (void)setMRL:(NSString *)mrl;
225 - (NSString *)MRL;
226
227 - (NSArray *)qtkvideoDevices;
228 - (void)qtkrefreshDevices;
229
230 - (void)setSubPanel;
231 - (void)openTarget:(int)i_type;
232 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
233 - (void)textFieldWasClicked:(NSNotification *)o_notification;
234 - (IBAction)expandMRLfieldAction:(id)sender;
235 - (IBAction)inputSlaveAction:(id)sender;
236
237 - (void)openFileGeneric;
238 - (void)openFilePathChanged:(NSNotification *)o_notification;
239 - (IBAction)openFileBrowse:(id)sender;
240 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
241 - (IBAction)openFileStreamChanged:(id)sender;
242
243 - (void)openDisc;
244 - (void)scanOpticalMedia:(NSNotification *)o_notification;
245 - (IBAction)discSelectorChanged:(id)sender;
246 - (IBAction)openSpecialMediaFolder:(id)sender;
247 - (IBAction)dvdreadOptionChanged:(id)sender;
248 - (IBAction)vcdOptionChanged:(id)sender;
249
250 - (void)openNet;
251 - (IBAction)openNetModeChanged:(id)sender;
252 - (IBAction)openNetStepperChanged:(id)sender;
253 - (void)openNetInfoChanged:(NSNotification *)o_notification;
254 - (IBAction)openNetUDPButtonAction:(id)sender;
255
256 - (void)openCapture;
257 - (void)showCaptureView: theView;
258 - (IBAction)openCaptureModeChanged:(id)sender;
259 - (IBAction)qtkChanged:(id)sender;
260 - (IBAction)eyetvSwitchChannel:(id)sender;
261 - (IBAction)eyetvLaunch:(id)sender;
262 - (IBAction)eyetvGetPlugin:(id)sender;
263 - (void)eyetvChanged:(NSNotification *)o_notification;
264 - (void)setupChannelInfo;
265 - (IBAction)screenStepperChanged:(id)sender;
266 - (void)screenFPSfieldChanged:(NSNotification *)o_notification;
267
268 - (IBAction)subsChanged:(id)sender;
269 - (IBAction)subSettings:(id)sender;
270 - (IBAction)subFileBrowse:(id)sender;
271 - (IBAction)subOverride:(id)sender;
272 - (IBAction)subDelayStepperChanged:(id)sender;
273 - (IBAction)subFpsStepperChanged:(id)sender;
274 - (IBAction)subCloseSheet:(id)sender;
275
276 - (IBAction)panelCancel:(id)sender;
277 - (IBAction)panelOk:(id)sender;
278
279 - (void)openFile;
280 @end
281
282 @interface VLCOpenTextField : NSTextField
283 {
284 }
285 - (void)mouseDown:(NSEvent *)theEvent;
286 @end