]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/open.h
macosx: remove 2 interface update timers (2 threads), 1 additional interface update...
[vlc] / modules / gui / macosx / open.h
index 4f9128fcae762f7f2636a7e67dbf9f652638185d..f671c6074f4bb0ecab421bb0ca274a13539707fb 100644 (file)
@@ -1,13 +1,13 @@
 /*****************************************************************************
- * open.h: MacOS X module for vlc
+ * open.h: Open dialogues for VLC's MacOS X port
  *****************************************************************************
- * Copyright (C) 2002-2008 the VideoLAN team
+ * Copyright (C) 2002-2011 the VideoLAN team
  * $Id$
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
- *          Felix Kühne <fkuehne at videolan dot org>
+ *          Felix Paul Kühne <fkuehne at videolan dot org>
  *
  * 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
@@ -24,8 +24,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-NSArray *GetEjectableMediaOfClass( const char *psz_class );
-
 /*****************************************************************************
  * Intf_Open interface
  *****************************************************************************/
@@ -35,37 +33,97 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
 
     IBOutlet id o_panel;
 
-    IBOutlet id o_mrl;
+    IBOutlet id o_mrl_fld;
     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;
 
+    /* bottom-line items */
     IBOutlet id o_output_ckbox;
     IBOutlet id o_sout_options;
 
     /* open file */
-    IBOutlet id o_file_path;
+    IBOutlet id o_file_name;
+    IBOutlet id o_file_name_stub;
+    IBOutlet id o_file_icon_well;
     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_lbl;
+    IBOutlet id o_file_slave_icon_well;
+    IBOutlet id o_file_subtitles_filename_lbl;
+    IBOutlet id o_file_subtitles_icon_well;
 
     /* open disc */
-    IBOutlet id o_disc_type;
-    IBOutlet id o_disc_device;
-    IBOutlet id o_disc_device_lbl;
-    IBOutlet id o_disc_title;
-    IBOutlet id o_disc_title_lbl;
-    IBOutlet id o_disc_title_stp;
-    IBOutlet id o_disc_chapter;
-    IBOutlet id o_disc_chapter_lbl;
-    IBOutlet id o_disc_chapter_stp;
-    IBOutlet id o_disc_videots_folder;
-    IBOutlet id o_disc_videots_btn_browse;
-    IBOutlet id o_disc_dvd_menus;
+    IBOutlet id o_disc_icon_well;
+    IBOutlet id o_disc_selector_pop;
+
+    IBOutlet id o_disc_nodisc_view;
+    IBOutlet id o_disc_nodisc_lbl;
+    IBOutlet id o_disc_nodisc_videots_btn;
+    IBOutlet id o_disc_nodisc_bdmv_btn;
+
+    IBOutlet id o_disc_audiocd_view;
+    IBOutlet id o_disc_audiocd_lbl;
+    IBOutlet id o_disc_audiocd_trackcount_lbl;
+    IBOutlet id o_disc_audiocd_videots_btn;
+    IBOutlet id o_disc_audiocd_bdmv_btn;
+
+    IBOutlet id o_disc_dvd_view;
+    IBOutlet id o_disc_dvd_lbl;
+    IBOutlet id o_disc_dvd_disablemenus_btn;
+    IBOutlet id o_disc_dvd_videots_btn;
+    IBOutlet id o_disc_dvd_bdmv_btn;
+
+    IBOutlet id o_disc_dvdwomenus_view;
+    IBOutlet id o_disc_dvdwomenus_lbl;
+    IBOutlet id o_disc_dvdwomenus_enablemenus_btn;
+    IBOutlet id o_disc_dvdwomenus_videots_btn;
+    IBOutlet id o_disc_dvdwomenus_bdmv_btn;
+    IBOutlet id o_disc_dvdwomenus_title;
+    IBOutlet id o_disc_dvdwomenus_title_lbl;
+    IBOutlet id o_disc_dvdwomenus_title_stp;
+    IBOutlet id o_disc_dvdwomenus_chapter;
+    IBOutlet id o_disc_dvdwomenus_chapter_lbl;
+    IBOutlet id o_disc_dvdwomenus_chapter_stp;
+
+    IBOutlet id o_disc_vcd_view;
+    IBOutlet id o_disc_vcd_lbl;
+    IBOutlet id o_disc_vcd_videots_btn;
+    IBOutlet id o_disc_vcd_bdmv_btn;
+    IBOutlet id o_disc_vcd_title;
+    IBOutlet id o_disc_vcd_title_lbl;
+    IBOutlet id o_disc_vcd_title_stp;
+    IBOutlet id o_disc_vcd_chapter;
+    IBOutlet id o_disc_vcd_chapter_lbl;
+    IBOutlet id o_disc_vcd_chapter_stp;
+
+    IBOutlet id o_disc_bd_view;
+    IBOutlet id o_disc_bd_lbl;
+    IBOutlet id o_disc_bd_videots_btn;
+    IBOutlet id o_disc_bd_bdmv_btn;
 
     /* 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;
@@ -74,9 +132,6 @@ 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_net_timeshift_ckbox;
 
     /* open subtitle file */
     IBOutlet id o_file_sub_ckbox;
@@ -115,6 +170,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
     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;
@@ -122,22 +178,65 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
 
     /* screen support */
     IBOutlet id o_screen_view;
-    IBOutlet id o_screen_fps_fld;
-    IBOutlet id o_screen_lbl;
     IBOutlet id o_screen_long_lbl;
-    IBOutlet id o_screen_fps_stp;
+    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;
+
+    /* QTK support */
+    IBOutlet id o_qtk_view;
+    IBOutlet id o_qtk_long_lbl;
+    IBOutlet id o_qtk_device_pop;
+    IBOutlet id o_qtk_label_view;
+    IBOutlet id o_capture_width_lbl;
+    IBOutlet id o_capture_width_fld;
+    IBOutlet id o_capture_width_stp;
+    IBOutlet id o_capture_height_lbl;
+    IBOutlet id o_capture_height_fld;
+    IBOutlet id o_capture_height_stp;
+
+    NSArray         *qtkvideoDevices;
+    NSString        *qtk_currdevice_uid;
 
     BOOL b_autoplay;
+    BOOL b_nodvdmenus;
+    id o_currentOpticalMediaView;
+    NSMutableArray *o_opticalDevices;
+    NSMutableArray *o_specialMediaFolders;
+    NSString *o_file_path;
     id o_currentCaptureView;
+    NSString *o_file_slave_path;
+    NSString *o_mrl;
+    intf_thread_t * p_intf;
 }
 
 + (VLCOpen *)sharedInstance;
 
+- (void)setMRL:(NSString *)mrl;
+- (NSString *)MRL;
+
+- (NSArray *)qtkvideoDevices;
+- (void)qtkrefreshDevices;
+
 - (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;
 
 - (void)openFileGeneric;
 - (void)openFilePathChanged:(NSNotification *)o_notification;
@@ -146,25 +245,29 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
 - (IBAction)openFileStreamChanged:(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;
+- (void)scanOpticalMedia:(NSNotification *)o_notification;
+- (IBAction)discSelectorChanged:(id)sender;
+- (IBAction)openSpecialMediaFolder:(id)sender;
+- (IBAction)dvdreadOptionChanged:(id)sender;
+- (IBAction)vcdOptionChanged:(id)sender;
 
 - (void)openNet;
 - (IBAction)openNetModeChanged:(id)sender;
 - (IBAction)openNetStepperChanged:(id)sender;
 - (void)openNetInfoChanged:(NSNotification *)o_notification;
+- (IBAction)openNetUDPButtonAction:(id)sender;
 
 - (void)openCapture;
 - (void)showCaptureView: theView;
-- (IBAction)openCaptureStepperChanged:(id)sender;
 - (IBAction)openCaptureModeChanged:(id)sender;
+- (IBAction)qtkChanged:(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;