00001 /***************************************************************************** 00002 * wizard.h: MacOS X Streaming Wizard 00003 ***************************************************************************** 00004 * Copyright (C) 2005-2007 the VideoLAN team 00005 * $Id: 534875188de14ebcbdf6499746cbe6e9923a6319 $ 00006 * 00007 * Authors: Felix Kühne <fkuehne at videolan dot org> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00022 *****************************************************************************/ 00023 00024 /***************************************************************************** 00025 * VLCWizard 00026 *****************************************************************************/ 00027 00028 #import <Cocoa/Cocoa.h> 00029 00030 @interface VLCWizard : NSObject 00031 { 00032 /* general items */ 00033 IBOutlet id o_btn_backward; 00034 IBOutlet id o_btn_cancel; 00035 IBOutlet id o_btn_forward; 00036 IBOutlet id o_tab_pageHolder; 00037 IBOutlet id o_wizard_window; 00038 IBOutlet id o_playlist_wizard; 00039 00040 /* page one ("Hello") */ 00041 IBOutlet id o_t1_btn_mrInfo_strmg; 00042 IBOutlet id o_t1_btn_mrInfo_trnscd; 00043 IBOutlet id o_t1_matrix_strmgOrTrnscd; 00044 IBOutlet id o_t1_txt_notice; 00045 IBOutlet id o_t1_txt_text; 00046 IBOutlet id o_t1_txt_title; 00047 00048 /* page two ("Input") */ 00049 IBOutlet id o_t2_box_prtExtrct; 00050 IBOutlet id o_t2_ckb_enblPartExtrct; 00051 IBOutlet id o_t2_btn_chooseFile; 00052 IBOutlet id o_t2_fld_pathToNewStrm; 00053 IBOutlet id o_t2_fld_prtExtrctFrom; 00054 IBOutlet id o_t2_fld_prtExtrctTo; 00055 IBOutlet id o_t2_matrix_inputSourceType; 00056 IBOutlet id o_t2_tbl_plst; 00057 IBOutlet id o_t2_text; 00058 IBOutlet id o_t2_title; 00059 IBOutlet id o_t2_txt_prtExtrctFrom; 00060 IBOutlet id o_t2_txt_prtExtrctTo; 00061 00062 /* page one ("Streaming 1") */ 00063 IBOutlet id o_t3_box_dest; 00064 IBOutlet id o_t3_box_strmgMthd; 00065 IBOutlet id o_t3_fld_address; 00066 IBOutlet id o_t3_matrix_stmgMhd; 00067 IBOutlet id o_t3_txt_destInfo; 00068 IBOutlet id o_t3_txt_text; 00069 IBOutlet id o_t3_txt_title; 00070 IBOutlet id o_t3_txt_strgMthdInfo; 00071 00072 /* page four ("Transcode 1") */ 00073 IBOutlet id o_t4_box_audio; 00074 IBOutlet id o_t4_box_video; 00075 IBOutlet id o_t4_ckb_audio; 00076 IBOutlet id o_t4_ckb_video; 00077 IBOutlet id o_t4_pop_audioBitrate; 00078 IBOutlet id o_t4_pop_audioCodec; 00079 IBOutlet id o_t4_pop_videoBitrate; 00080 IBOutlet id o_t4_pop_videoCodec; 00081 IBOutlet id o_t4_text; 00082 IBOutlet id o_t4_title; 00083 IBOutlet id o_t4_txt_audioBitrate; 00084 IBOutlet id o_t4_txt_videoBitrate; 00085 IBOutlet id o_t4_txt_audioCodec; 00086 IBOutlet id o_t4_txt_videoCodec; 00087 IBOutlet id o_t4_txt_hintAudio; 00088 IBOutlet id o_t4_txt_hintVideo; 00089 00090 /* page five ("Encap") */ 00091 IBOutlet id o_t5_matrix_encap; 00092 IBOutlet id o_t5_text; 00093 IBOutlet id o_t5_title; 00094 00095 /* page six ("Streaming 2") */ 00096 IBOutlet id o_t6_ckb_sap; 00097 IBOutlet id o_t6_fld_sap; 00098 IBOutlet id o_t6_fld_ttl; 00099 IBOutlet id o_t6_text; 00100 IBOutlet id o_t6_title; 00101 IBOutlet id o_t6_txt_ttl; 00102 IBOutlet id o_t6_btn_mrInfo_ttl; 00103 IBOutlet id o_t6_btn_mrInfo_sap; 00104 IBOutlet id o_t6_btn_mrInfo_local; 00105 IBOutlet id o_t6_ckb_soverlay; 00106 IBOutlet id o_t6_ckb_local; 00107 00108 /* page seven ("Transcode 2") */ 00109 IBOutlet id o_t7_btn_chooseFile; 00110 IBOutlet id o_t7_fld_filePath; 00111 IBOutlet id o_t7_text; 00112 IBOutlet id o_t7_title; 00113 IBOutlet id o_t7_txt_saveFileTo; 00114 IBOutlet id o_t7_btn_mrInfo_local; 00115 IBOutlet id o_t7_ckb_soverlay; 00116 IBOutlet id o_t7_ckb_local; 00117 00118 /* page eight ("Summary") */ 00119 IBOutlet id o_t8_fld_destination; 00120 IBOutlet id o_t8_fld_encapFormat; 00121 IBOutlet id o_t8_fld_inptStream; 00122 IBOutlet id o_t8_fld_partExtract; 00123 IBOutlet id o_t8_fld_sap; 00124 IBOutlet id o_t8_fld_saveFileTo; 00125 IBOutlet id o_t8_fld_strmgMthd; 00126 IBOutlet id o_t8_fld_trnscdAudio; 00127 IBOutlet id o_t8_fld_trnscdVideo; 00128 IBOutlet id o_t8_fld_soverlay; 00129 IBOutlet id o_t8_fld_ttl; 00130 IBOutlet id o_t8_fld_mrl; 00131 IBOutlet id o_t8_fld_local; 00132 IBOutlet id o_t8_txt_destination; 00133 IBOutlet id o_t8_txt_encapFormat; 00134 IBOutlet id o_t8_txt_inputStream; 00135 IBOutlet id o_t8_txt_partExtract; 00136 IBOutlet id o_t8_txt_sap; 00137 IBOutlet id o_t8_txt_saveFileTo; 00138 IBOutlet id o_t8_txt_strmgMthd; 00139 IBOutlet id o_t8_txt_text; 00140 IBOutlet id o_t8_txt_title; 00141 IBOutlet id o_t8_txt_trnscdAudio; 00142 IBOutlet id o_t8_txt_trnscdVideo; 00143 IBOutlet id o_t8_txt_soverlay; 00144 IBOutlet id o_t8_txt_ttl; 00145 IBOutlet id o_t8_txt_mrl; 00146 IBOutlet id o_t8_txt_local; 00147 00148 NSMutableDictionary * o_userSelections; 00149 NSArray * o_videoCodecs; 00150 NSArray * o_audioCodecs; 00151 NSArray * o_encapFormats; 00152 NSArray * o_strmgMthds; 00153 NSString * o_opts; 00154 } 00155 - (IBAction)cancelRun:(id)sender; 00156 - (IBAction)nextTab:(id)sender; 00157 - (IBAction)prevTab:(id)sender; 00158 - (IBAction)t1_mrInfo_streaming:(id)sender; 00159 - (IBAction)t1_mrInfo_transcode:(id)sender; 00160 - (IBAction)t2_addNewStream:(id)sender; 00161 - (IBAction)t2_chooseStreamOrPlst:(id)sender; 00162 - (IBAction)t2_enableExtract:(id)sender; 00163 - (IBAction)t3_strmMthdChanged:(id)sender; 00164 - (IBAction)t4_AudCdcChanged:(id)sender; 00165 - (IBAction)t4_enblAudTrnscd:(id)sender; 00166 - (IBAction)t4_enblVidTrnscd:(id)sender; 00167 - (IBAction)t4_VidCdcChanged:(id)sender; 00168 - (IBAction)t6_enblSapAnnce:(id)sender; 00169 - (IBAction)t6_mrInfo_ttl:(id)sender; 00170 - (IBAction)t6_mrInfo_sap:(id)sender; 00171 - (IBAction)t67_mrInfo_local:(id)sender; 00172 - (IBAction)t7_selectTrnscdDestFile:(id)sender; 00173 00174 + (VLCWizard *)sharedInstance; 00175 00176 - (void)showWizard; 00177 - (void)showSummary; 00178 - (void)resetWizard; 00179 - (void)createOpts; 00180 - (void)rebuildCodecMenus; 00181 - (id)playlistWizard; 00182 - (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to ofItem: (NSString *)item; 00183 00184 @end
1.5.6