1 /*****************************************************************************
2 * open.h: MacOS X plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2002 VideoLAN
5 * $Id: open.h,v 1.10 2003/02/05 02:31:27 hartman Exp $
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8 * Christophe Massiot <massiot@via.ecp.fr>
9 * Derk-Jan Hartman <thedj@users.sourceforge.net>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
26 NSArray *GetEjectableMediaOfClass( const char *psz_class );
28 #define OPEN_PANEL_FULL_HEIGHT 498
29 #define OPEN_PANEL_SHORT_HEIGHT 329
30 #define WINDOW_TITLE_HEIGHT 21
32 /*****************************************************************************
34 *****************************************************************************/
35 @interface VLCOpen : NSObject
37 IBOutlet id o_playlist;
42 IBOutlet id o_mrl_lbl;
43 IBOutlet id o_tabview;
46 IBOutlet id o_btn_cancel;
47 IBOutlet id o_ckbox_enqueue;
49 IBOutlet id o_file_path;
50 IBOutlet id o_file_btn_browse;
51 IBOutlet id o_file_stream;
52 IBOutlet id o_file_sub_path;
53 IBOutlet id o_file_sub_btn_browse;
54 IBOutlet id o_file_sub_ckbox;
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;
69 IBOutlet id o_net_mode;
70 IBOutlet id o_net_udp_port;
71 IBOutlet id o_net_udp_port_lbl;
72 IBOutlet id o_net_udp_port_stp;
73 IBOutlet id o_net_udpm_addr;
74 IBOutlet id o_net_udpm_addr_lbl;
75 IBOutlet id o_net_udpm_port;
76 IBOutlet id o_net_udpm_port_lbl;
77 IBOutlet id o_net_udpm_port_stp;
78 IBOutlet id o_net_cs_addr;
79 IBOutlet id o_net_cs_addr_lbl;
80 IBOutlet id o_net_cs_port;
81 IBOutlet id o_net_cs_port_lbl;
82 IBOutlet id o_net_cs_port_stp;
83 IBOutlet id o_net_http_url;
84 IBOutlet id o_net_http_url_lbl;
86 IBOutlet id o_sout_cbox;
87 IBOutlet id o_sout_mrl_lbl;
88 IBOutlet id o_sout_mrl;
89 IBOutlet id o_sout_access;
90 IBOutlet id o_sout_file_path;
91 IBOutlet id o_sout_file_btn_browse;
92 IBOutlet id o_sout_udp_addr;
93 IBOutlet id o_sout_udp_addr_lbl;
94 IBOutlet id o_sout_udp_port;
95 IBOutlet id o_sout_udp_port_lbl;
96 IBOutlet id o_sout_udp_port_stp;
97 IBOutlet id o_sout_mux;
100 - (void)openTarget:(int)i_type;
101 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
103 - (IBAction)openFileGeneric:(id)sender;
104 - (void)openFilePathChanged:(NSNotification *)o_notification;
105 - (IBAction)openFileBrowse:(id)sender;
106 - (IBAction)openFileStreamChanged:(id)sender;
107 - (IBAction)loadSubsChanged:(id)sender;
108 - (IBAction)openSubBrowse:(id)sender;
110 - (IBAction)openDisc:(id)sender;
111 - (IBAction)openDiscTypeChanged:(id)sender;
112 - (IBAction)openDiscStepperChanged:(id)sender;
113 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
114 - (IBAction)openDiscMenusChanged:(id)sender;
115 - (IBAction)openVTSBrowse:(id)sender;
117 - (IBAction)openNet:(id)sender;
118 - (IBAction)openNetModeChanged:(id)sender;
119 - (IBAction)openNetStepperChanged:(id)sender;
120 - (void)openNetInfoChanged:(NSNotification *)o_notification;
122 - (IBAction)soutChanged:(id)sender;
123 - (IBAction)soutFileBrowse:(id)sender;
124 - (void)soutModeChanged:(NSNotification *)o_notification;
125 - (void)soutInfoChanged:(NSNotification *)o_notification;
126 - (IBAction)soutStepperChanged:(id)sender;
128 - (IBAction)panelCancel:(id)sender;
129 - (IBAction)panelOk:(id)sender;
131 - (IBAction)openFile:(id)sender;
135 @interface VLGetURLScriptCommand : NSScriptCommand