00001 /***************************************************************************** 00002 * open.h: Open dialogues for VLC's MacOS X port 00003 ***************************************************************************** 00004 * Copyright (C) 2002-2009 the VideoLAN team 00005 * $Id: c7f4ddcd8d410c4887a433edc692d63daa7253aa $ 00006 * 00007 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 00008 * Christophe Massiot <massiot@via.ecp.fr> 00009 * Derk-Jan Hartman <thedj@users.sourceforge.net> 00010 * Felix Paul Kühne <fkuehne at videolan dot org> 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00025 *****************************************************************************/ 00026 00027 NSArray *GetEjectableMediaOfClass( const char *psz_class ); 00028 00029 /***************************************************************************** 00030 * Intf_Open interface 00031 *****************************************************************************/ 00032 @interface VLCOpen : NSObject 00033 { 00034 IBOutlet id o_playlist; 00035 00036 IBOutlet id o_panel; 00037 00038 IBOutlet id o_mrl; 00039 IBOutlet id o_mrl_lbl; 00040 IBOutlet id o_mrl_view; 00041 IBOutlet id o_mrl_btn; 00042 IBOutlet id o_tabview; 00043 00044 IBOutlet id o_btn_ok; 00045 IBOutlet id o_btn_cancel; 00046 00047 /* bottom-line items */ 00048 IBOutlet id o_output_ckbox; 00049 IBOutlet id o_sout_options; 00050 00051 /* open file */ 00052 IBOutlet id o_file_path; 00053 IBOutlet id o_file_btn_browse; 00054 IBOutlet id o_file_stream; 00055 IBOutlet id o_file_slave_ckbox; 00056 IBOutlet id o_file_slave_select_btn; 00057 IBOutlet id o_file_slave_filename_txt; 00058 00059 /* open disc */ 00060 IBOutlet id o_disc_type; 00061 IBOutlet id o_disc_device; 00062 IBOutlet id o_disc_device_lbl; 00063 IBOutlet id o_disc_title; 00064 IBOutlet id o_disc_title_lbl; 00065 IBOutlet id o_disc_title_stp; 00066 IBOutlet id o_disc_chapter; 00067 IBOutlet id o_disc_chapter_lbl; 00068 IBOutlet id o_disc_chapter_stp; 00069 IBOutlet id o_disc_videots_folder; 00070 IBOutlet id o_disc_videots_btn_browse; 00071 IBOutlet id o_disc_dvd_menus; 00072 00073 /* open network */ 00074 IBOutlet id o_net_http_url; 00075 IBOutlet id o_net_http_url_lbl; 00076 IBOutlet id o_net_help_lbl; 00077 00078 /* open UDP stuff panel */ 00079 IBOutlet id o_net_help_udp_lbl; 00080 IBOutlet id o_net_udp_protocol_mat; 00081 IBOutlet id o_net_udp_protocol_lbl; 00082 IBOutlet id o_net_udp_address_lbl; 00083 IBOutlet id o_net_udp_mode_lbl; 00084 IBOutlet id o_net_mode; 00085 IBOutlet id o_net_openUDP_btn; 00086 IBOutlet id o_net_udp_cancel_btn; 00087 IBOutlet id o_net_udp_ok_btn; 00088 IBOutlet id o_net_udp_panel; 00089 IBOutlet id o_net_udp_port; 00090 IBOutlet id o_net_udp_port_lbl; 00091 IBOutlet id o_net_udp_port_stp; 00092 IBOutlet id o_net_udpm_addr; 00093 IBOutlet id o_net_udpm_addr_lbl; 00094 IBOutlet id o_net_udpm_port; 00095 IBOutlet id o_net_udpm_port_lbl; 00096 IBOutlet id o_net_udpm_port_stp; 00097 00098 /* open subtitle file */ 00099 IBOutlet id o_file_sub_ckbox; 00100 IBOutlet id o_file_sub_btn_settings; 00101 IBOutlet id o_file_sub_sheet; 00102 IBOutlet id o_file_sub_path; 00103 IBOutlet id o_file_sub_btn_browse; 00104 IBOutlet id o_file_sub_override; 00105 IBOutlet id o_file_sub_delay; 00106 IBOutlet id o_file_sub_delay_lbl; 00107 IBOutlet id o_file_sub_delay_stp; 00108 IBOutlet id o_file_sub_fps; 00109 IBOutlet id o_file_sub_fps_lbl; 00110 IBOutlet id o_file_sub_fps_stp; 00111 IBOutlet id o_file_sub_encoding_pop; 00112 IBOutlet id o_file_sub_encoding_lbl; 00113 IBOutlet id o_file_sub_size_pop; 00114 IBOutlet id o_file_sub_size_lbl; 00115 IBOutlet id o_file_sub_align_pop; 00116 IBOutlet id o_file_sub_align_lbl; 00117 IBOutlet id o_file_sub_ok_btn; 00118 IBOutlet id o_file_sub_font_box; 00119 IBOutlet id o_file_sub_file_box; 00120 00121 /* generic capturing stuff */ 00122 IBOutlet id o_capture_lbl; 00123 IBOutlet id o_capture_long_lbl; 00124 IBOutlet id o_capture_mode_pop; 00125 IBOutlet id o_capture_label_view; 00126 00127 /* eyetv support */ 00128 IBOutlet id o_eyetv_notLaunched_view; 00129 IBOutlet id o_eyetv_running_view; 00130 IBOutlet id o_eyetv_channels_pop; 00131 IBOutlet id o_eyetv_currentChannel_lbl; 00132 IBOutlet id o_eyetv_chn_status_txt; 00133 IBOutlet id o_eyetv_chn_bgbar; 00134 IBOutlet id o_eyetv_launchEyeTV_btn; 00135 IBOutlet id o_eyetv_getPlugin_btn; 00136 IBOutlet id o_eyetv_nextProgram_btn; 00137 IBOutlet id o_eyetv_noInstance_lbl; 00138 IBOutlet id o_eyetv_noInstanceLong_lbl; 00139 IBOutlet id o_eyetv_previousProgram_btn; 00140 00141 /* screen support */ 00142 IBOutlet id o_screen_view; 00143 IBOutlet id o_screen_lbl; 00144 IBOutlet id o_screen_long_lbl; 00145 IBOutlet id o_screen_fps_fld; 00146 IBOutlet id o_screen_fps_lbl; 00147 IBOutlet id o_screen_fps_stp; 00148 IBOutlet id o_screen_left_fld; 00149 IBOutlet id o_screen_left_lbl; 00150 IBOutlet id o_screen_left_stp; 00151 IBOutlet id o_screen_top_fld; 00152 IBOutlet id o_screen_top_lbl; 00153 IBOutlet id o_screen_top_stp; 00154 IBOutlet id o_screen_width_fld; 00155 IBOutlet id o_screen_width_lbl; 00156 IBOutlet id o_screen_width_stp; 00157 IBOutlet id o_screen_height_fld; 00158 IBOutlet id o_screen_height_lbl; 00159 IBOutlet id o_screen_height_stp; 00160 IBOutlet id o_screen_follow_mouse_ckb; 00161 00162 BOOL b_autoplay; 00163 id o_currentCaptureView; 00164 NSString *o_file_slave_path; 00165 intf_thread_t * p_intf; 00166 } 00167 00168 + (VLCOpen *)sharedInstance; 00169 00170 - (void)setSubPanel; 00171 - (void)openTarget:(int)i_type; 00172 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi; 00173 - (void)textFieldWasClicked:(NSNotification *)o_notification; 00174 - (IBAction)expandMRLfieldAction:(id)sender; 00175 - (IBAction)inputSlaveAction:(id)sender; 00176 00177 - (void)openFileGeneric; 00178 - (void)openFilePathChanged:(NSNotification *)o_notification; 00179 - (IBAction)openFileBrowse:(id)sender; 00180 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo; 00181 - (IBAction)openFileStreamChanged:(id)sender; 00182 00183 - (void)openDisc; 00184 - (IBAction)openDiscTypeChanged:(id)sender; 00185 - (IBAction)openDiscStepperChanged:(id)sender; 00186 - (void)openDiscInfoChanged:(NSNotification *)o_notification; 00187 - (IBAction)openDiscMenusChanged:(id)sender; 00188 - (IBAction)openVTSBrowse:(id)sender; 00189 00190 - (void)openNet; 00191 - (IBAction)openNetModeChanged:(id)sender; 00192 - (IBAction)openNetStepperChanged:(id)sender; 00193 - (void)openNetInfoChanged:(NSNotification *)o_notification; 00194 - (IBAction)openNetUDPButtonAction:(id)sender; 00195 00196 - (void)openCapture; 00197 - (void)showCaptureView: theView; 00198 - (IBAction)openCaptureModeChanged:(id)sender; 00199 - (IBAction)eyetvSwitchChannel:(id)sender; 00200 - (IBAction)eyetvLaunch:(id)sender; 00201 - (IBAction)eyetvGetPlugin:(id)sender; 00202 - (void)eyetvChanged:(NSNotification *)o_notification; 00203 - (void)setupChannelInfo; 00204 - (IBAction)screenStepperChanged:(id)sender; 00205 - (void)screenFPSfieldChanged:(NSNotification *)o_notification; 00206 00207 - (IBAction)subsChanged:(id)sender; 00208 - (IBAction)subSettings:(id)sender; 00209 - (IBAction)subFileBrowse:(id)sender; 00210 - (IBAction)subOverride:(id)sender; 00211 - (IBAction)subDelayStepperChanged:(id)sender; 00212 - (IBAction)subFpsStepperChanged:(id)sender; 00213 - (IBAction)subCloseSheet:(id)sender; 00214 00215 - (IBAction)panelCancel:(id)sender; 00216 - (IBAction)panelOk:(id)sender; 00217 00218 - (void)openFile; 00219 @end 00220 00221 @interface VLCOpenTextField : NSTextField 00222 { 00223 } 00224 - (void)mouseDown:(NSEvent *)theEvent; 00225 @end
1.5.6