wizard.h 6.08 KB
Newer Older
1 2 3
/*****************************************************************************
 * wizard.h: MacOS X Streaming Wizard
 *****************************************************************************
4
 * Copyright (C) 2005-2006 the VideoLAN team
5 6
 * $Id$
 *
7
 * Authors: Felix Kühne <fkuehne@users.sf.net>
8 9 10 11 12
 *
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
13
 *
14 15 16 17 18 19 20
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
dionoea's avatar
dionoea committed
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 23 24
 *****************************************************************************/

/*****************************************************************************
25
 * VLCWizard
26
 *****************************************************************************/
27

28 29 30
#import <Cocoa/Cocoa.h>

@interface VLCWizard : NSObject
31
{
32 33
    /* general items */
    IBOutlet id o_btn_backward;
34 35
    IBOutlet id o_btn_cancel;
    IBOutlet id o_btn_forward;
36
    IBOutlet id o_tab_pageHolder;
37
    IBOutlet id o_wizard_window;
38
    IBOutlet id o_playlist_wizard;
39

40
    /* page one ("Hello") */
41 42
    IBOutlet id o_t1_btn_mrInfo_strmg;
    IBOutlet id o_t1_btn_mrInfo_trnscd;
43
    IBOutlet id o_t1_matrix_strmgOrTrnscd;
44 45 46
    IBOutlet id o_t1_txt_notice;
    IBOutlet id o_t1_txt_text;
    IBOutlet id o_t1_txt_title;
47

48
    /* page two ("Input") */
49 50 51 52 53 54
    IBOutlet id o_t2_box_prtExtrct;
    IBOutlet id o_t2_ckb_enblPartExtrct;
    IBOutlet id o_t2_btn_chooseFile;
    IBOutlet id o_t2_fld_pathToNewStrm;
    IBOutlet id o_t2_fld_prtExtrctFrom;
    IBOutlet id o_t2_fld_prtExtrctTo;
55
    IBOutlet id o_t2_matrix_inputSourceType;
56 57 58 59 60
    IBOutlet id o_t2_tbl_plst;
    IBOutlet id o_t2_text;
    IBOutlet id o_t2_title;
    IBOutlet id o_t2_txt_prtExtrctFrom;
    IBOutlet id o_t2_txt_prtExtrctTo;
61

62
    /* page one ("Streaming 1") */
63 64 65 66 67 68 69
    IBOutlet id o_t3_box_dest;
    IBOutlet id o_t3_box_strmgMthd;
    IBOutlet id o_t3_fld_address;
    IBOutlet id o_t3_matrix_stmgMhd;
    IBOutlet id o_t3_txt_destInfo;
    IBOutlet id o_t3_txt_text;
    IBOutlet id o_t3_txt_title;
70
    IBOutlet id o_t3_txt_strgMthdInfo;
71

72
    /* page four ("Transcode 1") */
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
    IBOutlet id o_t4_box_audio;
    IBOutlet id o_t4_box_video;
    IBOutlet id o_t4_ckb_audio;
    IBOutlet id o_t4_ckb_video;
    IBOutlet id o_t4_pop_audioBitrate;
    IBOutlet id o_t4_pop_audioCodec;
    IBOutlet id o_t4_pop_videoBitrate;
    IBOutlet id o_t4_pop_videoCodec;
    IBOutlet id o_t4_text;
    IBOutlet id o_t4_title;
    IBOutlet id o_t4_txt_audioBitrate;
    IBOutlet id o_t4_txt_videoBitrate;
    IBOutlet id o_t4_txt_audioCodec;
    IBOutlet id o_t4_txt_videoCodec;
    IBOutlet id o_t4_txt_hintAudio;
    IBOutlet id o_t4_txt_hintVideo;
89

90
    /* page five ("Encap") */
91 92 93
    IBOutlet id o_t5_matrix_encap;
    IBOutlet id o_t5_text;
    IBOutlet id o_t5_title;
94

95
    /* page six ("Streaming 2") */
96 97 98 99 100 101 102 103
    IBOutlet id o_t6_ckb_sap;
    IBOutlet id o_t6_fld_sap;
    IBOutlet id o_t6_fld_ttl;
    IBOutlet id o_t6_text;
    IBOutlet id o_t6_title;
    IBOutlet id o_t6_txt_ttl;
    IBOutlet id o_t6_btn_mrInfo_ttl;
    IBOutlet id o_t6_btn_mrInfo_sap;
104
    IBOutlet id o_t6_btn_mrInfo_local;
105
    IBOutlet id o_t6_ckb_soverlay;
106
    IBOutlet id o_t6_ckb_local;
107

108
    /* page seven ("Transcode 2") */
109 110 111 112 113
    IBOutlet id o_t7_btn_chooseFile;
    IBOutlet id o_t7_fld_filePath;
    IBOutlet id o_t7_text;
    IBOutlet id o_t7_title;
    IBOutlet id o_t7_txt_saveFileTo;
114
    IBOutlet id o_t7_btn_mrInfo_local;
115
    IBOutlet id o_t7_ckb_soverlay;
116
    IBOutlet id o_t7_ckb_local;
117

118 119
    /* page eight ("Summary") */
    IBOutlet id o_t8_fld_destination;
120 121 122 123 124 125 126 127
    IBOutlet id o_t8_fld_encapFormat;
    IBOutlet id o_t8_fld_inptStream;
    IBOutlet id o_t8_fld_partExtract;
    IBOutlet id o_t8_fld_sap;
    IBOutlet id o_t8_fld_saveFileTo;
    IBOutlet id o_t8_fld_strmgMthd;
    IBOutlet id o_t8_fld_trnscdAudio;
    IBOutlet id o_t8_fld_trnscdVideo;
128
    IBOutlet id o_t8_fld_soverlay;
129
    IBOutlet id o_t8_fld_ttl;
130
    IBOutlet id o_t8_fld_mrl;
131
    IBOutlet id o_t8_fld_local;
132 133 134 135 136 137 138 139 140 141 142
    IBOutlet id o_t8_txt_destination;
    IBOutlet id o_t8_txt_encapFormat;
    IBOutlet id o_t8_txt_inputStream;
    IBOutlet id o_t8_txt_partExtract;
    IBOutlet id o_t8_txt_sap;
    IBOutlet id o_t8_txt_saveFileTo;
    IBOutlet id o_t8_txt_strmgMthd;
    IBOutlet id o_t8_txt_text;
    IBOutlet id o_t8_txt_title;
    IBOutlet id o_t8_txt_trnscdAudio;
    IBOutlet id o_t8_txt_trnscdVideo;
143
    IBOutlet id o_t8_txt_soverlay;
144
    IBOutlet id o_t8_txt_ttl;
145
    IBOutlet id o_t8_txt_mrl;
146
    IBOutlet id o_t8_txt_local;
147

148 149 150 151 152 153
    NSMutableDictionary * o_userSelections;
    NSArray * o_videoCodecs;
    NSArray * o_audioCodecs;
    NSArray * o_encapFormats;
    NSArray * o_strmgMthds;
    NSString * o_opts;
154

155
    BOOL b_keepSettingsOrNot;
156 157 158 159 160 161 162 163 164
}
- (IBAction)cancelRun:(id)sender;
- (IBAction)nextTab:(id)sender;
- (IBAction)prevTab:(id)sender;
- (IBAction)t1_mrInfo_streaming:(id)sender;
- (IBAction)t1_mrInfo_transcode:(id)sender;
- (IBAction)t2_addNewStream:(id)sender;
- (IBAction)t2_chooseStreamOrPlst:(id)sender;
- (IBAction)t2_enableExtract:(id)sender;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
165
- (IBAction)t3_strmMthdChanged:(id)sender;
166 167 168 169 170 171 172
- (IBAction)t4_AudCdcChanged:(id)sender;
- (IBAction)t4_enblAudTrnscd:(id)sender;
- (IBAction)t4_enblVidTrnscd:(id)sender;
- (IBAction)t4_VidCdcChanged:(id)sender;
- (IBAction)t6_enblSapAnnce:(id)sender;
- (IBAction)t6_mrInfo_ttl:(id)sender;
- (IBAction)t6_mrInfo_sap:(id)sender;
173
- (IBAction)t67_mrInfo_local:(id)sender;
174 175 176
- (IBAction)t7_selectTrnscdDestFile:(id)sender;

+ (VLCWizard *)sharedInstance;
Felix Paul Kühne's avatar
Felix Paul Kühne committed
177

178
- (void)showWizard;
179
- (void)showSummary;
180
- (void)resetWizard;
181
- (void)createOpts;
182
- (void)rebuildCodecMenus;
183
- (id)getPlaylistWizard;
184 185
- (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to \
    ofItem: (NSString *)item;
186

187
@end