]> git.sesse.net Git - vlc/blob - modules/gui/macosx/open.h
macosx: implement RTP stream selection. Closes #2497, while #2496 is invalid as RTMP...
[vlc] / modules / gui / macosx / open.h
1 /*****************************************************************************
2  * open.h: Open dialogues for VLC's MacOS X port
3  *****************************************************************************
4  * Copyright (C) 2002-2009 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 NSArray *GetEjectableMediaOfClass( const char *psz_class );
28
29 /*****************************************************************************
30  * Intf_Open interface
31  *****************************************************************************/
32 @interface VLCOpen : NSObject
33 {
34     IBOutlet id o_playlist;
35
36     IBOutlet id o_panel;
37
38     IBOutlet id o_mrl;
39     IBOutlet id o_mrl_lbl;
40     IBOutlet id o_mrl_view;
41     IBOutlet id o_mrl_btn;
42     IBOutlet id o_tabview;
43
44     IBOutlet id o_btn_ok;
45     IBOutlet id o_btn_cancel;
46
47     IBOutlet id o_output_ckbox;
48     IBOutlet id o_sout_options;
49
50     /* open file */
51     IBOutlet id o_file_path;
52     IBOutlet id o_file_btn_browse;
53     IBOutlet id o_file_stream;
54
55     /* open disc */
56     IBOutlet id o_disc_type;
57     IBOutlet id o_disc_device;
58     IBOutlet id o_disc_device_lbl;
59     IBOutlet id o_disc_title;
60     IBOutlet id o_disc_title_lbl;
61     IBOutlet id o_disc_title_stp;
62     IBOutlet id o_disc_chapter;
63     IBOutlet id o_disc_chapter_lbl;
64     IBOutlet id o_disc_chapter_stp;
65     IBOutlet id o_disc_videots_folder;
66     IBOutlet id o_disc_videots_btn_browse;
67     IBOutlet id o_disc_dvd_menus;
68
69     /* open network */
70     IBOutlet id o_net_http_url;
71     IBOutlet id o_net_http_url_lbl;
72     IBOutlet id o_net_help_lbl;
73
74     /* open UDP stuff panel */
75     IBOutlet id o_net_help_udp_lbl;
76     IBOutlet id o_net_udp_protocol_mat;
77     IBOutlet id o_net_udp_protocol_lbl;
78     IBOutlet id o_net_udp_address_lbl;
79     IBOutlet id o_net_udp_mode_lbl;
80     IBOutlet id o_net_mode;
81     IBOutlet id o_net_openUDP_btn;
82     IBOutlet id o_net_udp_cancel_btn;
83     IBOutlet id o_net_udp_ok_btn;
84     IBOutlet id o_net_udp_panel;
85     IBOutlet id o_net_udp_port;
86     IBOutlet id o_net_udp_port_lbl;
87     IBOutlet id o_net_udp_port_stp;
88     IBOutlet id o_net_udpm_addr;
89     IBOutlet id o_net_udpm_addr_lbl;
90     IBOutlet id o_net_udpm_port;
91     IBOutlet id o_net_udpm_port_lbl;
92     IBOutlet id o_net_udpm_port_stp;
93
94     /* open subtitle file */
95     IBOutlet id o_file_sub_ckbox;
96     IBOutlet id o_file_sub_btn_settings;
97     IBOutlet id o_file_sub_sheet;
98     IBOutlet id o_file_sub_path;
99     IBOutlet id o_file_sub_btn_browse;
100     IBOutlet id o_file_sub_override;
101     IBOutlet id o_file_sub_delay;
102     IBOutlet id o_file_sub_delay_lbl;
103     IBOutlet id o_file_sub_delay_stp;
104     IBOutlet id o_file_sub_fps;
105     IBOutlet id o_file_sub_fps_lbl;
106     IBOutlet id o_file_sub_fps_stp;
107     IBOutlet id o_file_sub_encoding_pop;
108     IBOutlet id o_file_sub_encoding_lbl;
109     IBOutlet id o_file_sub_size_pop;
110     IBOutlet id o_file_sub_size_lbl;
111     IBOutlet id o_file_sub_align_pop;
112     IBOutlet id o_file_sub_align_lbl;
113     IBOutlet id o_file_sub_ok_btn;
114     IBOutlet id o_file_sub_font_box;
115     IBOutlet id o_file_sub_file_box;
116
117     /* generic capturing stuff */
118     IBOutlet id o_capture_lbl;
119     IBOutlet id o_capture_long_lbl;
120     IBOutlet id o_capture_mode_pop;
121     IBOutlet id o_capture_label_view;
122
123     /* eyetv support */
124     IBOutlet id o_eyetv_notLaunched_view;
125     IBOutlet id o_eyetv_running_view;
126     IBOutlet id o_eyetv_channels_pop;
127     IBOutlet id o_eyetv_currentChannel_lbl;
128     IBOutlet id o_eyetv_chn_status_txt;
129     IBOutlet id o_eyetv_chn_bgbar;
130     IBOutlet id o_eyetv_launchEyeTV_btn;
131     IBOutlet id o_eyetv_getPlugin_btn;
132     IBOutlet id o_eyetv_nextProgram_btn;
133     IBOutlet id o_eyetv_noInstance_lbl;
134     IBOutlet id o_eyetv_noInstanceLong_lbl;
135     IBOutlet id o_eyetv_previousProgram_btn;
136
137     /* screen support */
138     IBOutlet id o_screen_view;
139     IBOutlet id o_screen_lbl;
140     IBOutlet id o_screen_long_lbl;
141     IBOutlet id o_screen_fps_fld;
142     IBOutlet id o_screen_fps_lbl;
143     IBOutlet id o_screen_fps_stp;
144     IBOutlet id o_screen_left_fld;
145     IBOutlet id o_screen_left_lbl;
146     IBOutlet id o_screen_left_stp;
147     IBOutlet id o_screen_top_fld;
148     IBOutlet id o_screen_top_lbl;
149     IBOutlet id o_screen_top_stp;
150     IBOutlet id o_screen_width_fld;
151     IBOutlet id o_screen_width_lbl;
152     IBOutlet id o_screen_width_stp;
153     IBOutlet id o_screen_height_fld;
154     IBOutlet id o_screen_height_lbl;
155     IBOutlet id o_screen_height_stp;
156     IBOutlet id o_screen_follow_mouse_ckb;
157
158     BOOL b_autoplay;
159     id o_currentCaptureView;
160     intf_thread_t * p_intf;
161 }
162
163 + (VLCOpen *)sharedInstance;
164
165 - (void)setSubPanel;
166 - (void)openTarget:(int)i_type;
167 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
168 - (void)textFieldWasClicked:(NSNotification *)o_notification;
169 - (IBAction)expandMRLfieldAction:(id)sender;
170
171 - (void)openFileGeneric;
172 - (void)openFilePathChanged:(NSNotification *)o_notification;
173 - (IBAction)openFileBrowse:(id)sender;
174 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
175 - (IBAction)openFileStreamChanged:(id)sender;
176
177 - (void)openDisc;
178 - (IBAction)openDiscTypeChanged:(id)sender;
179 - (IBAction)openDiscStepperChanged:(id)sender;
180 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
181 - (IBAction)openDiscMenusChanged:(id)sender;
182 - (IBAction)openVTSBrowse:(id)sender;
183
184 - (void)openNet;
185 - (IBAction)openNetModeChanged:(id)sender;
186 - (IBAction)openNetStepperChanged:(id)sender;
187 - (void)openNetInfoChanged:(NSNotification *)o_notification;
188 - (IBAction)openNetUDPButtonAction:(id)sender;
189
190 - (void)openCapture;
191 - (void)showCaptureView: theView;
192 - (IBAction)openCaptureModeChanged:(id)sender;
193 - (IBAction)eyetvSwitchChannel:(id)sender;
194 - (IBAction)eyetvLaunch:(id)sender;
195 - (IBAction)eyetvGetPlugin:(id)sender;
196 - (void)eyetvChanged:(NSNotification *)o_notification;
197 - (void)setupChannelInfo;
198 - (IBAction)screenStepperChanged:(id)sender;
199 - (void)screenFPSfieldChanged:(NSNotification *)o_notification;
200
201 - (IBAction)subsChanged:(id)sender;
202 - (IBAction)subSettings:(id)sender;
203 - (IBAction)subFileBrowse:(id)sender;
204 - (IBAction)subOverride:(id)sender;
205 - (IBAction)subDelayStepperChanged:(id)sender;
206 - (IBAction)subFpsStepperChanged:(id)sender;
207 - (IBAction)subCloseSheet:(id)sender;
208
209 - (IBAction)panelCancel:(id)sender;
210 - (IBAction)panelOk:(id)sender;
211
212 - (void)openFile;
213 @end
214
215 @interface VLCOpenTextField : NSTextField
216 {
217 }
218 - (void)mouseDown:(NSEvent *)theEvent;
219 @end