1 /*****************************************************************************
2 * wizard.h: MacOS X Streaming Wizard
3 *****************************************************************************
4 * Copyright (C) 2005 the VideoLAN team
7 * Authors: Felix Kühne <fkuehne@users.sf.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
28 #import <Cocoa/Cocoa.h>
30 @interface VLCWizard : NSObject
33 IBOutlet id o_btn_backward;
34 IBOutlet id o_btn_cancel;
35 IBOutlet id o_btn_forward;
36 IBOutlet id o_tab_pageHolder;
37 IBOutlet id o_wizard_window;
38 IBOutlet id o_wizardhelp_window;
39 IBOutlet id o_wh_txt_title;
40 IBOutlet id o_wh_txt_text;
41 IBOutlet id o_wh_btn_okay;
42 IBOutlet id o_playlist_wizard;
44 /* page one ("Hello") */
45 IBOutlet id o_t1_btn_mrInfo_strmg;
46 IBOutlet id o_t1_btn_mrInfo_trnscd;
47 IBOutlet id o_t1_matrix_strmgOrTrnscd;
48 IBOutlet id o_t1_txt_notice;
49 IBOutlet id o_t1_txt_text;
50 IBOutlet id o_t1_txt_title;
52 /* page two ("Input") */
53 IBOutlet id o_t2_box_prtExtrct;
54 IBOutlet id o_t2_ckb_enblPartExtrct;
55 IBOutlet id o_t2_btn_chooseFile;
56 IBOutlet id o_t2_fld_pathToNewStrm;
57 IBOutlet id o_t2_fld_prtExtrctFrom;
58 IBOutlet id o_t2_fld_prtExtrctTo;
59 IBOutlet id o_t2_matrix_inputSourceType;
60 IBOutlet id o_t2_tbl_plst;
61 IBOutlet id o_t2_text;
62 IBOutlet id o_t2_title;
63 IBOutlet id o_t2_txt_prtExtrctFrom;
64 IBOutlet id o_t2_txt_prtExtrctTo;
66 /* page one ("Streaming 1") */
67 IBOutlet id o_t3_box_dest;
68 IBOutlet id o_t3_box_strmgMthd;
69 IBOutlet id o_t3_fld_address;
70 IBOutlet id o_t3_matrix_stmgMhd;
71 IBOutlet id o_t3_txt_destInfo;
72 IBOutlet id o_t3_txt_text;
73 IBOutlet id o_t3_txt_title;
74 IBOutlet id o_t3_txt_strgMthdInfo;
76 /* page four ("Transcode 1") */
77 IBOutlet id o_t4_box_audio;
78 IBOutlet id o_t4_box_video;
79 IBOutlet id o_t4_ckb_audio;
80 IBOutlet id o_t4_ckb_video;
81 IBOutlet id o_t4_pop_audioBitrate;
82 IBOutlet id o_t4_pop_audioCodec;
83 IBOutlet id o_t4_pop_videoBitrate;
84 IBOutlet id o_t4_pop_videoCodec;
85 IBOutlet id o_t4_text;
86 IBOutlet id o_t4_title;
87 IBOutlet id o_t4_txt_audioBitrate;
88 IBOutlet id o_t4_txt_videoBitrate;
89 IBOutlet id o_t4_txt_audioCodec;
90 IBOutlet id o_t4_txt_videoCodec;
91 IBOutlet id o_t4_txt_hintAudio;
92 IBOutlet id o_t4_txt_hintVideo;
94 /* page five ("Encap") */
95 IBOutlet id o_t5_matrix_encap;
96 IBOutlet id o_t5_text;
97 IBOutlet id o_t5_title;
99 /* page six ("Streaming 2") */
100 IBOutlet id o_t6_ckb_sap;
101 IBOutlet id o_t6_fld_sap;
102 IBOutlet id o_t6_fld_ttl;
103 IBOutlet id o_t6_text;
104 IBOutlet id o_t6_title;
105 IBOutlet id o_t6_txt_ttl;
106 IBOutlet id o_t6_btn_mrInfo_ttl;
107 IBOutlet id o_t6_btn_mrInfo_sap;
109 /* page seven ("Transcode 2") */
110 IBOutlet id o_t7_btn_chooseFile;
111 IBOutlet id o_t7_fld_filePath;
112 IBOutlet id o_t7_text;
113 IBOutlet id o_t7_title;
114 IBOutlet id o_t7_txt_saveFileTo;
116 /* page eight ("Summary") */
117 IBOutlet id o_t8_fld_destination;
118 IBOutlet id o_t8_fld_encapFormat;
119 IBOutlet id o_t8_fld_inptStream;
120 IBOutlet id o_t8_fld_partExtract;
121 IBOutlet id o_t8_fld_sap;
122 IBOutlet id o_t8_fld_saveFileTo;
123 IBOutlet id o_t8_fld_strmgMthd;
124 IBOutlet id o_t8_fld_trnscdAudio;
125 IBOutlet id o_t8_fld_trnscdVideo;
126 IBOutlet id o_t8_fld_ttl;
127 IBOutlet id o_t8_fld_mrl;
128 IBOutlet id o_t8_txt_destination;
129 IBOutlet id o_t8_txt_encapFormat;
130 IBOutlet id o_t8_txt_inputStream;
131 IBOutlet id o_t8_txt_partExtract;
132 IBOutlet id o_t8_txt_sap;
133 IBOutlet id o_t8_txt_saveFileTo;
134 IBOutlet id o_t8_txt_strmgMthd;
135 IBOutlet id o_t8_txt_text;
136 IBOutlet id o_t8_txt_title;
137 IBOutlet id o_t8_txt_trnscdAudio;
138 IBOutlet id o_t8_txt_trnscdVideo;
139 IBOutlet id o_t8_txt_ttl;
140 IBOutlet id o_t8_txt_mrl;
142 NSMutableDictionary * o_userSelections;
143 NSArray * o_videoCodecs;
144 NSArray * o_audioCodecs;
145 NSArray * o_encapFormats;
146 NSArray * o_strmgMthds;
149 - (IBAction)cancelRun:(id)sender;
150 - (IBAction)nextTab:(id)sender;
151 - (IBAction)prevTab:(id)sender;
152 - (IBAction)t1_mrInfo_streaming:(id)sender;
153 - (IBAction)t1_mrInfo_transcode:(id)sender;
154 - (IBAction)t2_addNewStream:(id)sender;
155 - (IBAction)t2_chooseStreamOrPlst:(id)sender;
156 - (IBAction)t2_enableExtract:(id)sender;
157 - (IBAction)t3_strmMthdChanged:(id)sender;
158 - (IBAction)t4_AudCdcChanged:(id)sender;
159 - (IBAction)t4_enblAudTrnscd:(id)sender;
160 - (IBAction)t4_enblVidTrnscd:(id)sender;
161 - (IBAction)t4_VidCdcChanged:(id)sender;
162 - (IBAction)t6_enblSapAnnce:(id)sender;
163 - (IBAction)t6_mrInfo_ttl:(id)sender;
164 - (IBAction)t6_mrInfo_sap:(id)sender;
165 - (IBAction)t7_selectTrnscdDestFile:(id)sender;
166 - (IBAction)wh_closeSheet:(id)sender;
168 + (VLCWizard *)sharedInstance;
174 - (void)rebuildCodecMenus;
175 - (id)getPlaylistWizard;
176 - (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to \
177 ofItem: (NSString *)item;