]> git.sesse.net Git - vlc/blob - modules/gui/macosx/open.h
Merge branch 'master' into lpcm_encoder
[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     /* bottom-line items */
48     IBOutlet id o_output_ckbox;
49     IBOutlet id o_sout_options;
50
51     /* open file */
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;
58
59     /* open disc */
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;
72
73     /* open network */
74     IBOutlet id o_net_http_url;
75     IBOutlet id o_net_http_url_lbl;
76     IBOutlet id o_net_help_lbl;
77
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;
97
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;
120
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;
126
127     /* eyetv support */
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;
140
141     /* screen support */
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;
161
162     BOOL b_autoplay;
163     id o_currentCaptureView;
164     NSString *o_file_slave_path;
165     intf_thread_t * p_intf;
166 }
167
168 + (VLCOpen *)sharedInstance;
169
170 - (void)setSubPanel;
171 - (void)openTarget:(int)i_type;
172 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
173 - (void)textFieldWasClicked:(NSNotification *)o_notification;
174 - (IBAction)expandMRLfieldAction:(id)sender;
175 - (IBAction)inputSlaveAction:(id)sender;
176
177 - (void)openFileGeneric;
178 - (void)openFilePathChanged:(NSNotification *)o_notification;
179 - (IBAction)openFileBrowse:(id)sender;
180 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
181 - (IBAction)openFileStreamChanged:(id)sender;
182
183 - (void)openDisc;
184 - (IBAction)openDiscTypeChanged:(id)sender;
185 - (IBAction)openDiscStepperChanged:(id)sender;
186 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
187 - (IBAction)openDiscMenusChanged:(id)sender;
188 - (IBAction)openVTSBrowse:(id)sender;
189
190 - (void)openNet;
191 - (IBAction)openNetModeChanged:(id)sender;
192 - (IBAction)openNetStepperChanged:(id)sender;
193 - (void)openNetInfoChanged:(NSNotification *)o_notification;
194 - (IBAction)openNetUDPButtonAction:(id)sender;
195
196 - (void)openCapture;
197 - (void)showCaptureView: theView;
198 - (IBAction)openCaptureModeChanged:(id)sender;
199 - (IBAction)eyetvSwitchChannel:(id)sender;
200 - (IBAction)eyetvLaunch:(id)sender;
201 - (IBAction)eyetvGetPlugin:(id)sender;
202 - (void)eyetvChanged:(NSNotification *)o_notification;
203 - (void)setupChannelInfo;
204 - (IBAction)screenStepperChanged:(id)sender;
205 - (void)screenFPSfieldChanged:(NSNotification *)o_notification;
206
207 - (IBAction)subsChanged:(id)sender;
208 - (IBAction)subSettings:(id)sender;
209 - (IBAction)subFileBrowse:(id)sender;
210 - (IBAction)subOverride:(id)sender;
211 - (IBAction)subDelayStepperChanged:(id)sender;
212 - (IBAction)subFpsStepperChanged:(id)sender;
213 - (IBAction)subCloseSheet:(id)sender;
214
215 - (IBAction)panelCancel:(id)sender;
216 - (IBAction)panelOk:(id)sender;
217
218 - (void)openFile;
219 @end
220
221 @interface VLCOpenTextField : NSTextField
222 {
223 }
224 - (void)mouseDown:(NSEvent *)theEvent;
225 @end