1 /*****************************************************************************
2 * open.h: Open dialogues for VLC's MacOS X port
3 *****************************************************************************
4 * Copyright (C) 2002-2011 the VideoLAN team
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>
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.
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.
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 *****************************************************************************/
27 NSArray *GetEjectableMediaOfClass( const char *psz_class );
29 /*****************************************************************************
31 *****************************************************************************/
32 @interface VLCOpen : NSObject
34 IBOutlet id o_playlist;
38 IBOutlet id o_mrl_fld;
39 IBOutlet id o_mrl_lbl;
40 IBOutlet id o_mrl_view;
41 IBOutlet id o_mrl_btn;
42 IBOutlet id o_tabview;
45 IBOutlet id o_btn_cancel;
47 /* bottom-line items */
48 IBOutlet id o_output_ckbox;
49 IBOutlet id o_sout_options;
52 IBOutlet id o_file_path;
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_txt;
60 IBOutlet id o_disc_type;
61 IBOutlet id o_disc_device;
62 IBOutlet id o_disc_device_lbl;
63 IBOutlet id o_disc_title;
64 IBOutlet id o_disc_title_lbl;
65 IBOutlet id o_disc_title_stp;
66 IBOutlet id o_disc_chapter;
67 IBOutlet id o_disc_chapter_lbl;
68 IBOutlet id o_disc_chapter_stp;
69 IBOutlet id o_disc_videots_folder;
70 IBOutlet id o_disc_videots_btn_browse;
71 IBOutlet id o_disc_dvd_menus;
74 IBOutlet id o_net_http_url;
75 IBOutlet id o_net_http_url_lbl;
76 IBOutlet id o_net_help_lbl;
78 /* open UDP stuff panel */
79 IBOutlet id o_net_help_udp_lbl;
80 IBOutlet id o_net_udp_protocol_mat;
81 IBOutlet id o_net_udp_protocol_lbl;
82 IBOutlet id o_net_udp_address_lbl;
83 IBOutlet id o_net_udp_mode_lbl;
84 IBOutlet id o_net_mode;
85 IBOutlet id o_net_openUDP_btn;
86 IBOutlet id o_net_udp_cancel_btn;
87 IBOutlet id o_net_udp_ok_btn;
88 IBOutlet id o_net_udp_panel;
89 IBOutlet id o_net_udp_port;
90 IBOutlet id o_net_udp_port_lbl;
91 IBOutlet id o_net_udp_port_stp;
92 IBOutlet id o_net_udpm_addr;
93 IBOutlet id o_net_udpm_addr_lbl;
94 IBOutlet id o_net_udpm_port;
95 IBOutlet id o_net_udpm_port_lbl;
96 IBOutlet id o_net_udpm_port_stp;
98 /* open subtitle file */
99 IBOutlet id o_file_sub_ckbox;
100 IBOutlet id o_file_sub_btn_settings;
101 IBOutlet id o_file_sub_sheet;
102 IBOutlet id o_file_sub_path;
103 IBOutlet id o_file_sub_btn_browse;
104 IBOutlet id o_file_sub_override;
105 IBOutlet id o_file_sub_delay;
106 IBOutlet id o_file_sub_delay_lbl;
107 IBOutlet id o_file_sub_delay_stp;
108 IBOutlet id o_file_sub_fps;
109 IBOutlet id o_file_sub_fps_lbl;
110 IBOutlet id o_file_sub_fps_stp;
111 IBOutlet id o_file_sub_encoding_pop;
112 IBOutlet id o_file_sub_encoding_lbl;
113 IBOutlet id o_file_sub_size_pop;
114 IBOutlet id o_file_sub_size_lbl;
115 IBOutlet id o_file_sub_align_pop;
116 IBOutlet id o_file_sub_align_lbl;
117 IBOutlet id o_file_sub_ok_btn;
118 IBOutlet id o_file_sub_font_box;
119 IBOutlet id o_file_sub_file_box;
121 /* generic capturing stuff */
122 IBOutlet id o_capture_lbl;
123 IBOutlet id o_capture_long_lbl;
124 IBOutlet id o_capture_mode_pop;
125 IBOutlet id o_capture_label_view;
128 IBOutlet id o_eyetv_notLaunched_view;
129 IBOutlet id o_eyetv_running_view;
130 IBOutlet id o_eyetv_channels_pop;
131 IBOutlet id o_eyetv_currentChannel_lbl;
132 IBOutlet id o_eyetv_chn_status_txt;
133 IBOutlet id o_eyetv_chn_bgbar;
134 IBOutlet id o_eyetv_launchEyeTV_btn;
135 IBOutlet id o_eyetv_getPlugin_btn;
136 IBOutlet id o_eyetv_nextProgram_btn;
137 IBOutlet id o_eyetv_noInstance_lbl;
138 IBOutlet id o_eyetv_noInstanceLong_lbl;
139 IBOutlet id o_eyetv_previousProgram_btn;
142 IBOutlet id o_screen_view;
143 IBOutlet id o_screen_lbl;
144 IBOutlet id o_screen_long_lbl;
145 IBOutlet id o_screen_fps_fld;
146 IBOutlet id o_screen_fps_lbl;
147 IBOutlet id o_screen_fps_stp;
148 IBOutlet id o_screen_left_fld;
149 IBOutlet id o_screen_left_lbl;
150 IBOutlet id o_screen_left_stp;
151 IBOutlet id o_screen_top_fld;
152 IBOutlet id o_screen_top_lbl;
153 IBOutlet id o_screen_top_stp;
154 IBOutlet id o_screen_width_fld;
155 IBOutlet id o_screen_width_lbl;
156 IBOutlet id o_screen_width_stp;
157 IBOutlet id o_screen_height_fld;
158 IBOutlet id o_screen_height_lbl;
159 IBOutlet id o_screen_height_stp;
160 IBOutlet id o_screen_follow_mouse_ckb;
163 IBOutlet id o_qtk_view;
164 IBOutlet id o_qtk_lbl;
165 IBOutlet id o_qtk_long_lbl;
166 IBOutlet id o_qtk_device_pop;
167 IBOutlet id o_qtk_label_view;
169 NSArray *qtkvideoDevices;
170 NSString *qtk_currdevice_uid;
173 id o_currentCaptureView;
174 NSString *o_file_slave_path;
176 intf_thread_t * p_intf;
179 + (VLCOpen *)sharedInstance;
181 - (void)setMRL:(NSString *)mrl;
184 - (NSArray *)qtkvideoDevices;
185 - (void)qtkrefreshDevices;
188 - (void)openTarget:(int)i_type;
189 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
190 - (void)textFieldWasClicked:(NSNotification *)o_notification;
191 - (IBAction)expandMRLfieldAction:(id)sender;
192 - (IBAction)inputSlaveAction:(id)sender;
194 - (void)openFileGeneric;
195 - (void)openFilePathChanged:(NSNotification *)o_notification;
196 - (IBAction)openFileBrowse:(id)sender;
197 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
198 - (IBAction)openFileStreamChanged:(id)sender;
201 - (IBAction)openDiscTypeChanged:(id)sender;
202 - (IBAction)openDiscStepperChanged:(id)sender;
203 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
204 - (IBAction)openDiscMenusChanged:(id)sender;
205 - (IBAction)openVTSBrowse:(id)sender;
208 - (IBAction)openNetModeChanged:(id)sender;
209 - (IBAction)openNetStepperChanged:(id)sender;
210 - (void)openNetInfoChanged:(NSNotification *)o_notification;
211 - (IBAction)openNetUDPButtonAction:(id)sender;
214 - (void)showCaptureView: theView;
215 - (IBAction)openCaptureModeChanged:(id)sender;
216 - (IBAction)qtkChanged:(id)sender;
217 - (IBAction)eyetvSwitchChannel:(id)sender;
218 - (IBAction)eyetvLaunch:(id)sender;
219 - (IBAction)eyetvGetPlugin:(id)sender;
220 - (void)eyetvChanged:(NSNotification *)o_notification;
221 - (void)setupChannelInfo;
222 - (IBAction)screenStepperChanged:(id)sender;
223 - (void)screenFPSfieldChanged:(NSNotification *)o_notification;
225 - (IBAction)subsChanged:(id)sender;
226 - (IBAction)subSettings:(id)sender;
227 - (IBAction)subFileBrowse:(id)sender;
228 - (IBAction)subOverride:(id)sender;
229 - (IBAction)subDelayStepperChanged:(id)sender;
230 - (IBAction)subFpsStepperChanged:(id)sender;
231 - (IBAction)subCloseSheet:(id)sender;
233 - (IBAction)panelCancel:(id)sender;
234 - (IBAction)panelOk:(id)sender;
239 @interface VLCOpenTextField : NSTextField
242 - (void)mouseDown:(NSEvent *)theEvent;