]> git.sesse.net Git - vlc/blob - modules/gui/macosx/open.h
Redesign the Capture Device panel
[vlc] / modules / gui / macosx / open.h
1 /*****************************************************************************
2  * open.h: MacOS X module for vlc
3  *****************************************************************************
4  * Copyright (C) 2002-2008 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 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_tabview;
41
42     IBOutlet id o_btn_ok;
43     IBOutlet id o_btn_cancel;
44
45     IBOutlet id o_output_ckbox;
46     IBOutlet id o_sout_options;
47
48     /* open file */
49     IBOutlet id o_file_path;
50     IBOutlet id o_file_btn_browse;
51     IBOutlet id o_file_stream;
52
53     /* open disc */
54     IBOutlet id o_disc_type;
55     IBOutlet id o_disc_device;
56     IBOutlet id o_disc_device_lbl;
57     IBOutlet id o_disc_title;
58     IBOutlet id o_disc_title_lbl;
59     IBOutlet id o_disc_title_stp;
60     IBOutlet id o_disc_chapter;
61     IBOutlet id o_disc_chapter_lbl;
62     IBOutlet id o_disc_chapter_stp;
63     IBOutlet id o_disc_videots_folder;
64     IBOutlet id o_disc_videots_btn_browse;
65     IBOutlet id o_disc_dvd_menus;
66
67     /* open network */
68     IBOutlet id o_net_mode;
69     IBOutlet id o_net_udp_port;
70     IBOutlet id o_net_udp_port_lbl;
71     IBOutlet id o_net_udp_port_stp;
72     IBOutlet id o_net_udpm_addr;
73     IBOutlet id o_net_udpm_addr_lbl;
74     IBOutlet id o_net_udpm_port;
75     IBOutlet id o_net_udpm_port_lbl;
76     IBOutlet id o_net_udpm_port_stp;
77     IBOutlet id o_net_http_url;
78     IBOutlet id o_net_http_url_lbl;
79     IBOutlet id o_net_timeshift_ckbox;
80
81     /* open subtitle file */
82     IBOutlet id o_file_sub_ckbox;
83     IBOutlet id o_file_sub_btn_settings;
84     IBOutlet id o_file_sub_sheet;
85     IBOutlet id o_file_sub_path;
86     IBOutlet id o_file_sub_btn_browse;
87     IBOutlet id o_file_sub_override;
88     IBOutlet id o_file_sub_delay;
89     IBOutlet id o_file_sub_delay_lbl;
90     IBOutlet id o_file_sub_delay_stp;
91     IBOutlet id o_file_sub_fps;
92     IBOutlet id o_file_sub_fps_lbl;
93     IBOutlet id o_file_sub_fps_stp;
94     IBOutlet id o_file_sub_encoding_pop;
95     IBOutlet id o_file_sub_encoding_lbl;
96     IBOutlet id o_file_sub_size_pop;
97     IBOutlet id o_file_sub_size_lbl;
98     IBOutlet id o_file_sub_align_pop;
99     IBOutlet id o_file_sub_align_lbl;
100     IBOutlet id o_file_sub_ok_btn;
101     IBOutlet id o_file_sub_font_box;
102     IBOutlet id o_file_sub_file_box;
103
104     /* generic capturing stuff */
105     IBOutlet id o_capture_lbl;
106     IBOutlet id o_capture_long_lbl;
107     IBOutlet id o_capture_mode_pop;
108     IBOutlet id o_capture_label_view;
109
110     /* eyetv support */
111     IBOutlet id o_eyetv_notLaunched_view;
112     IBOutlet id o_eyetv_running_view;
113     IBOutlet id o_eyetv_channels_pop;
114     IBOutlet id o_eyetv_currentChannel_lbl;
115     IBOutlet id o_eyetv_chn_status_txt;
116     IBOutlet id o_eyetv_chn_bgbar;
117     IBOutlet id o_eyetv_launchEyeTV_btn;
118     IBOutlet id o_eyetv_nextProgram_btn;
119     IBOutlet id o_eyetv_noInstance_lbl;
120     IBOutlet id o_eyetv_noInstanceLong_lbl;
121     IBOutlet id o_eyetv_previousProgram_btn;
122
123     /* screen support */
124     IBOutlet id o_screen_view;
125     IBOutlet id o_screen_fps_fld;
126     IBOutlet id o_screen_lbl;
127     IBOutlet id o_screen_long_lbl;
128     IBOutlet id o_screen_fps_stp;
129
130     BOOL b_autoplay;
131     id o_currentCaptureView;
132 }
133
134 + (VLCOpen *)sharedInstance;
135
136 - (void)setSubPanel;
137 - (void)openTarget:(int)i_type;
138 - (void)tabView:(NSTabView *)o_tv didSelectTabViewItem:(NSTabViewItem *)o_tvi;
139 - (void)textFieldWasClicked:(NSNotification *)o_notification;
140
141 - (void)openFileGeneric;
142 - (void)openFilePathChanged:(NSNotification *)o_notification;
143 - (IBAction)openFileBrowse:(id)sender;
144 - (void)pathChosenInPanel: (NSOpenPanel *)sheet withReturn:(int)returnCode contextInfo:(void *)contextInfo;
145 - (IBAction)openFileStreamChanged:(id)sender;
146
147 - (void)openDisc;
148 - (IBAction)openDiscTypeChanged:(id)sender;
149 - (IBAction)openDiscStepperChanged:(id)sender;
150 - (void)openDiscInfoChanged:(NSNotification *)o_notification;
151 - (IBAction)openDiscMenusChanged:(id)sender;
152 - (IBAction)openVTSBrowse:(id)sender;
153
154 - (void)openNet;
155 - (IBAction)openNetModeChanged:(id)sender;
156 - (IBAction)openNetStepperChanged:(id)sender;
157 - (void)openNetInfoChanged:(NSNotification *)o_notification;
158
159 - (void)openCapture;
160 - (void)showCaptureView: theView;
161 - (IBAction)openCaptureStepperChanged:(id)sender;
162 - (IBAction)openCaptureModeChanged:(id)sender;
163 - (IBAction)eyetvSwitchChannel:(id)sender;
164 - (IBAction)eyetvLaunch:(id)sender;
165 - (void)eyetvChanged:(NSNotification *)o_notification;
166 - (void)setupChannelInfo;
167
168 - (IBAction)subsChanged:(id)sender;
169 - (IBAction)subSettings:(id)sender;
170 - (IBAction)subFileBrowse:(id)sender;
171 - (IBAction)subOverride:(id)sender;
172 - (IBAction)subDelayStepperChanged:(id)sender;
173 - (IBAction)subFpsStepperChanged:(id)sender;
174 - (IBAction)subCloseSheet:(id)sender;
175
176 - (IBAction)panelCancel:(id)sender;
177 - (IBAction)panelOk:(id)sender;
178
179 - (void)openFile;
180 @end
181
182 @interface VLCOpenTextField : NSTextField
183 {
184 }
185 - (void)mouseDown:(NSEvent *)theEvent;
186 @end