]> git.sesse.net Git - vlc/blob - modules/gui/macosx/wizard.h
macosx: get rid of the infamous 'get' prefixes everywhere and finally respect Cocoa...
[vlc] / modules / gui / macosx / wizard.h
1 /*****************************************************************************
2  * wizard.h: MacOS X Streaming Wizard
3  *****************************************************************************
4  * Copyright (C) 2005-2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Kühne <fkuehne@users.sf.net>
8  *
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.
13  *
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.
18  *
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * VLCWizard
26  *****************************************************************************/
27
28 #import <Cocoa/Cocoa.h>
29
30 @interface VLCWizard : NSObject
31 {
32     /* general items */
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_playlist_wizard;
39
40     /* page one ("Hello") */
41     IBOutlet id o_t1_btn_mrInfo_strmg;
42     IBOutlet id o_t1_btn_mrInfo_trnscd;
43     IBOutlet id o_t1_matrix_strmgOrTrnscd;
44     IBOutlet id o_t1_txt_notice;
45     IBOutlet id o_t1_txt_text;
46     IBOutlet id o_t1_txt_title;
47
48     /* page two ("Input") */
49     IBOutlet id o_t2_box_prtExtrct;
50     IBOutlet id o_t2_ckb_enblPartExtrct;
51     IBOutlet id o_t2_btn_chooseFile;
52     IBOutlet id o_t2_fld_pathToNewStrm;
53     IBOutlet id o_t2_fld_prtExtrctFrom;
54     IBOutlet id o_t2_fld_prtExtrctTo;
55     IBOutlet id o_t2_matrix_inputSourceType;
56     IBOutlet id o_t2_tbl_plst;
57     IBOutlet id o_t2_text;
58     IBOutlet id o_t2_title;
59     IBOutlet id o_t2_txt_prtExtrctFrom;
60     IBOutlet id o_t2_txt_prtExtrctTo;
61
62     /* page one ("Streaming 1") */
63     IBOutlet id o_t3_box_dest;
64     IBOutlet id o_t3_box_strmgMthd;
65     IBOutlet id o_t3_fld_address;
66     IBOutlet id o_t3_matrix_stmgMhd;
67     IBOutlet id o_t3_txt_destInfo;
68     IBOutlet id o_t3_txt_text;
69     IBOutlet id o_t3_txt_title;
70     IBOutlet id o_t3_txt_strgMthdInfo;
71
72     /* page four ("Transcode 1") */
73     IBOutlet id o_t4_box_audio;
74     IBOutlet id o_t4_box_video;
75     IBOutlet id o_t4_ckb_audio;
76     IBOutlet id o_t4_ckb_video;
77     IBOutlet id o_t4_pop_audioBitrate;
78     IBOutlet id o_t4_pop_audioCodec;
79     IBOutlet id o_t4_pop_videoBitrate;
80     IBOutlet id o_t4_pop_videoCodec;
81     IBOutlet id o_t4_text;
82     IBOutlet id o_t4_title;
83     IBOutlet id o_t4_txt_audioBitrate;
84     IBOutlet id o_t4_txt_videoBitrate;
85     IBOutlet id o_t4_txt_audioCodec;
86     IBOutlet id o_t4_txt_videoCodec;
87     IBOutlet id o_t4_txt_hintAudio;
88     IBOutlet id o_t4_txt_hintVideo;
89
90     /* page five ("Encap") */
91     IBOutlet id o_t5_matrix_encap;
92     IBOutlet id o_t5_text;
93     IBOutlet id o_t5_title;
94
95     /* page six ("Streaming 2") */
96     IBOutlet id o_t6_ckb_sap;
97     IBOutlet id o_t6_fld_sap;
98     IBOutlet id o_t6_fld_ttl;
99     IBOutlet id o_t6_text;
100     IBOutlet id o_t6_title;
101     IBOutlet id o_t6_txt_ttl;
102     IBOutlet id o_t6_btn_mrInfo_ttl;
103     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     IBOutlet id o_t7_btn_chooseFile;
110     IBOutlet id o_t7_fld_filePath;
111     IBOutlet id o_t7_text;
112     IBOutlet id o_t7_title;
113     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     /* page eight ("Summary") */
119     IBOutlet id o_t8_fld_destination;
120     IBOutlet id o_t8_fld_encapFormat;
121     IBOutlet id o_t8_fld_inptStream;
122     IBOutlet id o_t8_fld_partExtract;
123     IBOutlet id o_t8_fld_sap;
124     IBOutlet id o_t8_fld_saveFileTo;
125     IBOutlet id o_t8_fld_strmgMthd;
126     IBOutlet id o_t8_fld_trnscdAudio;
127     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     IBOutlet id o_t8_txt_destination;
133     IBOutlet id o_t8_txt_encapFormat;
134     IBOutlet id o_t8_txt_inputStream;
135     IBOutlet id o_t8_txt_partExtract;
136     IBOutlet id o_t8_txt_sap;
137     IBOutlet id o_t8_txt_saveFileTo;
138     IBOutlet id o_t8_txt_strmgMthd;
139     IBOutlet id o_t8_txt_text;
140     IBOutlet id o_t8_txt_title;
141     IBOutlet id o_t8_txt_trnscdAudio;
142     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     NSMutableDictionary * o_userSelections;
149     NSArray * o_videoCodecs;
150     NSArray * o_audioCodecs;
151     NSArray * o_encapFormats;
152     NSArray * o_strmgMthds;
153     NSString * o_opts;
154 }
155 - (IBAction)cancelRun:(id)sender;
156 - (IBAction)nextTab:(id)sender;
157 - (IBAction)prevTab:(id)sender;
158 - (IBAction)t1_mrInfo_streaming:(id)sender;
159 - (IBAction)t1_mrInfo_transcode:(id)sender;
160 - (IBAction)t2_addNewStream:(id)sender;
161 - (IBAction)t2_chooseStreamOrPlst:(id)sender;
162 - (IBAction)t2_enableExtract:(id)sender;
163 - (IBAction)t3_strmMthdChanged:(id)sender;
164 - (IBAction)t4_AudCdcChanged:(id)sender;
165 - (IBAction)t4_enblAudTrnscd:(id)sender;
166 - (IBAction)t4_enblVidTrnscd:(id)sender;
167 - (IBAction)t4_VidCdcChanged:(id)sender;
168 - (IBAction)t6_enblSapAnnce:(id)sender;
169 - (IBAction)t6_mrInfo_ttl:(id)sender;
170 - (IBAction)t6_mrInfo_sap:(id)sender;
171 - (IBAction)t67_mrInfo_local:(id)sender;
172 - (IBAction)t7_selectTrnscdDestFile:(id)sender;
173
174 + (VLCWizard *)sharedInstance;
175
176 - (void)showWizard;
177 - (void)showSummary;
178 - (void)resetWizard;
179 - (void)createOpts;
180 - (void)rebuildCodecMenus;
181 - (id)playlistWizard;
182 - (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to ofItem: (NSString *)item;
183
184 @end