1 /*****************************************************************************
2 * ConvertAndSave.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2012 Felix Paul Kühne
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
26 @interface VLCConvertAndSave : NSObject
29 IBOutlet id _cancel_btn;
32 IBOutlet id _drop_lbl;
33 IBOutlet id _drop_image_view;
34 IBOutlet id _drop_btn;
35 IBOutlet id _drop_box;
37 IBOutlet id _profile_lbl;
38 IBOutlet id _profile_pop;
39 IBOutlet id _profile_btn;
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;
47 IBOutlet id _dropin_view;
48 IBOutlet id _dropin_icon_view;
49 IBOutlet id _dropin_media_lbl;
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_fld;
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;
87 NSString * _outputDestination;
89 @property (readwrite, nonatomic, retain) NSString * MRL;
90 @property (readwrite, nonatomic, retain) NSString * outputDestination;
92 + (VLCConvertAndSave *)sharedInstance;
94 - (IBAction)toggleWindow;
96 - (IBAction)windowButtonAction:(id)sender;
97 - (IBAction)openMedia:(id)sender;
98 - (IBAction)profileSelection:(id)sender;
99 - (IBAction)customizeProfile:(id)sender;
100 - (IBAction)closeCustomizationSheet:(id)sender;
101 - (IBAction)chooseDestination:(id)sender;
103 - (void)updateDropView;
107 @interface VLCDropEnabledBox : NSBox
111 @interface VLCDropEnabledImageView : NSImageView
115 @interface VLCDropEnabledButton : NSButton