X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fopen.h;h=c7f4ddcd8d410c4887a433edc692d63daa7253aa;hb=127b903cc18290db5712f2fd25af1219d4c8808f;hp=0c36aa565bc6fd84eaa458e743638b82b31ccfd4;hpb=98943979933bf2170f04fcfa219306ead725fc1c;p=vlc diff --git a/modules/gui/macosx/open.h b/modules/gui/macosx/open.h index 0c36aa565b..c7f4ddcd8d 100644 --- a/modules/gui/macosx/open.h +++ b/modules/gui/macosx/open.h @@ -1,18 +1,19 @@ /***************************************************************************** - * open.h: MacOS X plugin for vlc + * open.h: Open dialogues for VLC's MacOS X port ***************************************************************************** - * Copyright (C) 2002-2003 VideoLAN - * $Id: open.h,v 1.13 2003/03/26 03:13:30 hartman Exp $ + * Copyright (C) 2002-2009 the VideoLAN team + * $Id$ * * Authors: Jon Lech Johansen * Christophe Massiot * Derk-Jan Hartman + * Felix Paul Kühne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -20,7 +21,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ NSArray *GetEjectableMediaOfClass( const char *psz_class ); @@ -36,16 +37,26 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); IBOutlet id o_mrl; IBOutlet id o_mrl_lbl; + IBOutlet id o_mrl_view; + IBOutlet id o_mrl_btn; IBOutlet id o_tabview; IBOutlet id o_btn_ok; IBOutlet id o_btn_cancel; - IBOutlet id o_ckbox_enqueue; + /* bottom-line items */ + IBOutlet id o_output_ckbox; + IBOutlet id o_sout_options; + + /* open file */ IBOutlet id o_file_path; IBOutlet id o_file_btn_browse; IBOutlet id o_file_stream; + IBOutlet id o_file_slave_ckbox; + IBOutlet id o_file_slave_select_btn; + IBOutlet id o_file_slave_filename_txt; + /* open disc */ IBOutlet id o_disc_type; IBOutlet id o_disc_device; IBOutlet id o_disc_device_lbl; @@ -59,7 +70,22 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); IBOutlet id o_disc_videots_btn_browse; IBOutlet id o_disc_dvd_menus; + /* open network */ + IBOutlet id o_net_http_url; + IBOutlet id o_net_http_url_lbl; + IBOutlet id o_net_help_lbl; + + /* open UDP stuff panel */ + IBOutlet id o_net_help_udp_lbl; + IBOutlet id o_net_udp_protocol_mat; + IBOutlet id o_net_udp_protocol_lbl; + IBOutlet id o_net_udp_address_lbl; + IBOutlet id o_net_udp_mode_lbl; IBOutlet id o_net_mode; + IBOutlet id o_net_openUDP_btn; + IBOutlet id o_net_udp_cancel_btn; + IBOutlet id o_net_udp_ok_btn; + IBOutlet id o_net_udp_panel; IBOutlet id o_net_udp_port; IBOutlet id o_net_udp_port_lbl; IBOutlet id o_net_udp_port_stp; @@ -68,27 +94,8 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); IBOutlet id o_net_udpm_port; IBOutlet id o_net_udpm_port_lbl; IBOutlet id o_net_udpm_port_stp; - IBOutlet id o_net_http_url; - IBOutlet id o_net_http_url_lbl; - IBOutlet id o_sout_cbox; - IBOutlet id o_sout_settings; - IBOutlet id o_sout_sheet; - IBOutlet id o_sout_mrl_lbl; - IBOutlet id o_sout_mrl; - IBOutlet id o_sout_access; - IBOutlet id o_sout_access_lbl; - IBOutlet id o_sout_file_path; - IBOutlet id o_sout_file_btn_browse; - IBOutlet id o_sout_udp_addr; - IBOutlet id o_sout_udp_addr_lbl; - IBOutlet id o_sout_udp_port; - IBOutlet id o_sout_udp_port_lbl; - IBOutlet id o_sout_udp_port_stp; - IBOutlet id o_sout_mux; - IBOutlet id o_sout_mux_lbl; - IBOutlet id o_sout_btn_ok; - + /* open subtitle file */ IBOutlet id o_file_sub_ckbox; IBOutlet id o_file_sub_btn_settings; IBOutlet id o_file_sub_sheet; @@ -101,37 +108,101 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); IBOutlet id o_file_sub_fps; IBOutlet id o_file_sub_fps_lbl; IBOutlet id o_file_sub_fps_stp; + IBOutlet id o_file_sub_encoding_pop; + IBOutlet id o_file_sub_encoding_lbl; + IBOutlet id o_file_sub_size_pop; + IBOutlet id o_file_sub_size_lbl; + IBOutlet id o_file_sub_align_pop; + IBOutlet id o_file_sub_align_lbl; IBOutlet id o_file_sub_ok_btn; + IBOutlet id o_file_sub_font_box; + IBOutlet id o_file_sub_file_box; + + /* generic capturing stuff */ + IBOutlet id o_capture_lbl; + IBOutlet id o_capture_long_lbl; + IBOutlet id o_capture_mode_pop; + IBOutlet id o_capture_label_view; + + /* eyetv support */ + IBOutlet id o_eyetv_notLaunched_view; + IBOutlet id o_eyetv_running_view; + IBOutlet id o_eyetv_channels_pop; + IBOutlet id o_eyetv_currentChannel_lbl; + IBOutlet id o_eyetv_chn_status_txt; + IBOutlet id o_eyetv_chn_bgbar; + IBOutlet id o_eyetv_launchEyeTV_btn; + IBOutlet id o_eyetv_getPlugin_btn; + IBOutlet id o_eyetv_nextProgram_btn; + IBOutlet id o_eyetv_noInstance_lbl; + IBOutlet id o_eyetv_noInstanceLong_lbl; + IBOutlet id o_eyetv_previousProgram_btn; + + /* screen support */ + IBOutlet id o_screen_view; + IBOutlet id o_screen_lbl; + IBOutlet id o_screen_long_lbl; + IBOutlet id o_screen_fps_fld; + IBOutlet id o_screen_fps_lbl; + IBOutlet id o_screen_fps_stp; + IBOutlet id o_screen_left_fld; + IBOutlet id o_screen_left_lbl; + IBOutlet id o_screen_left_stp; + IBOutlet id o_screen_top_fld; + IBOutlet id o_screen_top_lbl; + IBOutlet id o_screen_top_stp; + IBOutlet id o_screen_width_fld; + IBOutlet id o_screen_width_lbl; + IBOutlet id o_screen_width_stp; + IBOutlet id o_screen_height_fld; + IBOutlet id o_screen_height_lbl; + IBOutlet id o_screen_height_stp; + IBOutlet id o_screen_follow_mouse_ckb; + + BOOL b_autoplay; + id o_currentCaptureView; + NSString *o_file_slave_path; + intf_thread_t * p_intf; } ++ (VLCOpen *)sharedInstance; + +- (void)setSubPanel; - (void)openTarget:(int)i_type; - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi; +- (void)textFieldWasClicked:(NSNotification *)o_notification; +- (IBAction)expandMRLfieldAction:(id)sender; +- (IBAction)inputSlaveAction:(id)sender; -- (IBAction)openFileGeneric:(id)sender; +- (void)openFileGeneric; - (void)openFilePathChanged:(NSNotification *)o_notification; - (IBAction)openFileBrowse:(id)sender; -- (void) pathChosenInPanel: (NSOpenPanel *) sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo; +- (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo; - (IBAction)openFileStreamChanged:(id)sender; -- (IBAction)openDisc:(id)sender; +- (void)openDisc; - (IBAction)openDiscTypeChanged:(id)sender; - (IBAction)openDiscStepperChanged:(id)sender; - (void)openDiscInfoChanged:(NSNotification *)o_notification; - (IBAction)openDiscMenusChanged:(id)sender; - (IBAction)openVTSBrowse:(id)sender; -- (IBAction)openNet:(id)sender; +- (void)openNet; - (IBAction)openNetModeChanged:(id)sender; - (IBAction)openNetStepperChanged:(id)sender; - (void)openNetInfoChanged:(NSNotification *)o_notification; - -- (IBAction)soutChanged:(id)sender; -- (IBAction)soutSettings:(id)sender; -- (IBAction)soutFileBrowse:(id)sender; -- (void)soutModeChanged:(NSNotification *)o_notification; -- (void)soutInfoChanged:(NSNotification *)o_notification; -- (IBAction)soutStepperChanged:(id)sender; -- (IBAction)soutCloseSheet:(id)sender; +- (IBAction)openNetUDPButtonAction:(id)sender; + +- (void)openCapture; +- (void)showCaptureView: theView; +- (IBAction)openCaptureModeChanged:(id)sender; +- (IBAction)eyetvSwitchChannel:(id)sender; +- (IBAction)eyetvLaunch:(id)sender; +- (IBAction)eyetvGetPlugin:(id)sender; +- (void)eyetvChanged:(NSNotification *)o_notification; +- (void)setupChannelInfo; +- (IBAction)screenStepperChanged:(id)sender; +- (void)screenFPSfieldChanged:(NSNotification *)o_notification; - (IBAction)subsChanged:(id)sender; - (IBAction)subSettings:(id)sender; @@ -144,6 +215,11 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class ); - (IBAction)panelCancel:(id)sender; - (IBAction)panelOk:(id)sender; -- (IBAction)openFile:(id)sender; +- (void)openFile; +@end +@interface VLCOpenTextField : NSTextField +{ +} +- (void)mouseDown:(NSEvent *)theEvent; @end