1 /*****************************************************************************
2 * open.h: MacOS X module for vlc
3 *****************************************************************************
4 * Copyright (C) 2002-2006 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 K
\9fhne <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;
39 IBOutlet id o_mrl_lbl;
40 IBOutlet id o_tabview;
43 IBOutlet id o_btn_cancel;
45 IBOutlet id o_file_path;
46 IBOutlet id o_file_btn_browse;
47 IBOutlet id o_file_stream;
49 IBOutlet id o_disc_type;
50 IBOutlet id o_disc_device;
51 IBOutlet id o_disc_device_lbl;
52 IBOutlet id o_disc_title;
53 IBOutlet id o_disc_title_lbl;
54 IBOutlet id o_disc_title_stp;
55 IBOutlet id o_disc_chapter;
56 IBOutlet id o_disc_chapter_lbl;
57 IBOutlet id o_disc_chapter_stp;
58 IBOutlet id o_disc_videots_folder;
59 IBOutlet id o_disc_videots_btn_browse;
60 IBOutlet id o_disc_dvd_menus;
62 IBOutlet id o_net_mode;
63 IBOutlet id o_net_udp_port;
64 IBOutlet id o_net_udp_port_lbl;
65 IBOutlet id o_net_udp_port_stp;
66 IBOutlet id o_net_udpm_addr;
67 IBOutlet id o_net_udpm_addr_lbl;
68 IBOutlet id o_net_udpm_port;
69 IBOutlet id o_net_udpm_port_lbl;
70 IBOutlet id o_net_udpm_port_stp;
71 IBOutlet id o_net_http_url;
72 IBOutlet id o_net_http_url_lbl;
73 IBOutlet id o_net_timeshift_ckbox;
75 IBOutlet id o_file_sub_ckbox;
76 IBOutlet id o_file_sub_btn_settings;
77 IBOutlet id o_file_sub_sheet;
78 IBOutlet id o_file_sub_path;
79 IBOutlet id o_file_sub_btn_browse;
80 IBOutlet id o_file_sub_override;
81 IBOutlet id o_file_sub_delay;
82 IBOutlet id o_file_sub_delay_lbl;
83 IBOutlet id o_file_sub_delay_stp;
84 IBOutlet id o_file_sub_fps;
85 IBOutlet id o_file_sub_fps_lbl;
86 IBOutlet id o_file_sub_fps_stp;
87 IBOutlet id o_file_sub_encoding_pop;
88 IBOutlet id o_file_sub_encoding_lbl;
89 IBOutlet id o_file_sub_size_pop;
90 IBOutlet id o_file_sub_size_lbl;
91 IBOutlet id o_file_sub_align_pop;
92 IBOutlet id o_file_sub_align_lbl;
93 IBOutlet id o_file_sub_ok_btn;
94 IBOutlet id o_file_sub_font_box;
95 IBOutlet id o_file_sub_file_box;
97 IBOutlet id o_output_ckbox;
98 IBOutlet id o_sout_options;
103 + (VLCOpen *)sharedInstance;
106 - (void)openTarget:(int)i_type;
107 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
108 - (void)textFieldWasClicked:(NSNotification *)o_notification;
110 - (void)openFileGeneric;
111 - (void)openFilePathChanged:(NSNotification *)o_notification;
112 - (IBAction)openFileBrowse:(id)sender;
113 - (void) pathChosenInPanel: (NSOpenPanel *) sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
114 - (IBAction)openFileStreamChanged:(id)sender;
117 - (IBAction)openDiscTypeChanged:(id)sender;
118 - (IBAction)openDiscStepperChanged:(id)sender;
119 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
120 - (IBAction)openDiscMenusChanged:(id)sender;
121 - (IBAction)openVTSBrowse:(id)sender;
124 - (IBAction)openNetModeChanged:(id)sender;
125 - (IBAction)openNetStepperChanged:(id)sender;
126 - (void)openNetInfoChanged:(NSNotification *)o_notification;
128 - (IBAction)subsChanged:(id)sender;
129 - (IBAction)subSettings:(id)sender;
130 - (IBAction)subFileBrowse:(id)sender;
131 - (IBAction)subOverride:(id)sender;
132 - (IBAction)subDelayStepperChanged:(id)sender;
133 - (IBAction)subFpsStepperChanged:(id)sender;
134 - (IBAction)subCloseSheet:(id)sender;
136 - (IBAction)panelCancel:(id)sender;
137 - (IBAction)panelOk:(id)sender;
142 @interface VLCOpenTextField : NSTextField
145 - (void)mouseDown:(NSEvent *)theEvent;