]> git.sesse.net Git - vlc/blob - modules/gui/macosx/ConvertAndSave.h
macosx: CAS: implemented MRL/option string creation
[vlc] / modules / gui / macosx / ConvertAndSave.h
1 /*****************************************************************************
2  * ConvertAndSave.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2012 Felix Paul Kühne
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
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 #import <Cocoa/Cocoa.h>
25
26 @interface VLCConvertAndSave : NSObject
27 {
28     IBOutlet id _window;
29     IBOutlet id _cancel_btn;
30     IBOutlet id _ok_btn;
31
32     IBOutlet id _drop_lbl;
33     IBOutlet id _drop_image_view;
34     IBOutlet id _drop_btn;
35     IBOutlet id _drop_box;
36
37     IBOutlet id _profile_lbl;
38     IBOutlet id _profile_pop;
39     IBOutlet id _profile_btn;
40
41     IBOutlet id _destination_lbl;
42     IBOutlet id _destination_btn;
43     IBOutlet id _destination_icon_view;
44     IBOutlet id _destination_filename_lbl;
45     IBOutlet id _destination_filename_stub_lbl;
46
47     IBOutlet id _dropin_view;
48     IBOutlet id _dropin_icon_view;
49     IBOutlet id _dropin_media_lbl;
50
51     IBOutlet id _customize_panel;
52     IBOutlet id _customize_ok_btn;
53     IBOutlet id _customize_cancel_btn;
54     IBOutlet id _customize_tabview;
55     IBOutlet id _customize_encap_matrix;
56     IBOutlet id _customize_vid_ckb;
57     IBOutlet id _customize_vid_keep_ckb;
58     IBOutlet id _customize_vid_codec_lbl;
59     IBOutlet id _customize_vid_codec_pop;
60     IBOutlet id _customize_vid_bitrate_lbl;
61     IBOutlet id _customize_vid_bitrate_fld;
62     IBOutlet id _customize_vid_framerate_lbl;
63     IBOutlet id _customize_vid_framerate_fld;
64     IBOutlet id _customize_vid_res_box;
65     IBOutlet id _customize_vid_res_lbl;
66     IBOutlet id _customize_vid_width_lbl;
67     IBOutlet id _customize_vid_width_fld;
68     IBOutlet id _customize_vid_height_lbl;
69     IBOutlet id _customize_vid_height_fld;
70     IBOutlet id _customize_vid_scale_lbl;
71     IBOutlet id _customize_vid_scale_pop;
72     IBOutlet id _customize_aud_ckb;
73     IBOutlet id _customize_aud_keep_ckb;
74     IBOutlet id _customize_aud_codec_lbl;
75     IBOutlet id _customize_aud_codec_pop;
76     IBOutlet id _customize_aud_bitrate_lbl;
77     IBOutlet id _customize_aud_bitrate_fld;
78     IBOutlet id _customize_aud_channels_lbl;
79     IBOutlet id _customize_aud_channels_fld;
80     IBOutlet id _customize_aud_samplerate_lbl;
81     IBOutlet id _customize_aud_samplerate_pop;
82     IBOutlet id _customize_subs_ckb;
83     IBOutlet id _customize_subs_pop;
84     IBOutlet id _customize_subs_overlay_ckb;
85
86     NSString * _MRL;
87     NSString * _outputDestination;
88     NSArray * _profileNames;
89     NSArray * _profileValueList;
90     NSArray * _videoCodecs;
91     NSArray * _audioCodecs;
92     NSArray * _subsCodecs;
93     NSMutableArray * _currentProfile;
94 }
95 @property (readwrite, nonatomic, retain) NSString * MRL;
96 @property (readwrite, nonatomic, retain) NSString * outputDestination;
97 @property (readwrite, retain) NSArray * profileNames;
98 @property (readwrite, retain) NSArray * profileValueList;
99 @property (readwrite, retain) NSMutableArray * currentProfile;
100
101 + (VLCConvertAndSave *)sharedInstance;
102
103 - (IBAction)toggleWindow;
104
105 - (IBAction)saveFile:(id)sender;
106 - (IBAction)openMedia:(id)sender;
107 - (IBAction)switchProfile:(id)sender;
108 - (IBAction)customizeProfile:(id)sender;
109 - (IBAction)closeCustomizationSheet:(id)sender;
110 - (IBAction)chooseDestination:(id)sender;
111
112 - (void)updateDropView;
113
114 @end
115
116 @interface VLCDropEnabledBox : NSBox
117 {
118     BOOL b_activeDragAndDrop;
119 }
120
121 @end
122
123 @interface VLCDropEnabledImageView : NSImageView
124
125 @end
126
127 @interface VLCDropEnabledButton : NSButton
128
129 @end