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