You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
171 lines
5.8 KiB
171 lines
5.8 KiB
/*****************************************************************************
|
|
* ConvertAndSave.h: MacOS X interface module
|
|
*****************************************************************************
|
|
* Copyright (C) 2012 Felix Paul Kühne
|
|
* $Id$
|
|
*
|
|
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
|
|
*
|
|
* 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.
|
|
*
|
|
* 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
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
|
|
*****************************************************************************/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "SharedDialogs.h"
|
|
|
|
@interface VLCConvertAndSave : NSObject
|
|
{
|
|
IBOutlet id _window;
|
|
IBOutlet id _ok_btn;
|
|
|
|
IBOutlet id _drop_lbl;
|
|
IBOutlet id _drop_image_view;
|
|
IBOutlet id _drop_btn;
|
|
IBOutlet id _drop_box;
|
|
|
|
IBOutlet id _profile_lbl;
|
|
IBOutlet id _profile_pop;
|
|
IBOutlet id _profile_btn;
|
|
|
|
IBOutlet id _destination_box;
|
|
IBOutlet id _destination_lbl;
|
|
IBOutlet id _destination_browse_btn;
|
|
IBOutlet id _destination_icon_view;
|
|
IBOutlet id _destination_filename_lbl;
|
|
IBOutlet id _destination_filename_stub_lbl;
|
|
IBOutlet id _destination_stream_btn;
|
|
IBOutlet id _destination_stream_lbl;
|
|
IBOutlet id _destination_itwantafile_btn;
|
|
IBOutlet id _destination_itwantastream_btn;
|
|
IBOutlet id _destination_itwantafile_view;
|
|
IBOutlet id _destination_itwantastream_view;
|
|
IBOutlet id _destination_cancel_btn;
|
|
|
|
IBOutlet id _dropin_view;
|
|
IBOutlet id _dropin_icon_view;
|
|
IBOutlet id _dropin_media_lbl;
|
|
|
|
IBOutlet id _customize_panel;
|
|
IBOutlet id _customize_ok_btn;
|
|
IBOutlet id _customize_cancel_btn;
|
|
IBOutlet id _customize_newProfile_btn;
|
|
IBOutlet id _customize_tabview;
|
|
IBOutlet id _customize_encap_matrix;
|
|
IBOutlet id _customize_vid_ckb;
|
|
IBOutlet id _customize_vid_keep_ckb;
|
|
IBOutlet id _customize_vid_codec_lbl;
|
|
IBOutlet id _customize_vid_codec_pop;
|
|
IBOutlet id _customize_vid_bitrate_lbl;
|
|
IBOutlet id _customize_vid_bitrate_fld;
|
|
IBOutlet id _customize_vid_framerate_lbl;
|
|
IBOutlet id _customize_vid_framerate_fld;
|
|
IBOutlet id _customize_vid_res_box;
|
|
IBOutlet id _customize_vid_res_lbl;
|
|
IBOutlet id _customize_vid_width_lbl;
|
|
IBOutlet id _customize_vid_width_fld;
|
|
IBOutlet id _customize_vid_height_lbl;
|
|
IBOutlet id _customize_vid_height_fld;
|
|
IBOutlet id _customize_vid_scale_lbl;
|
|
IBOutlet id _customize_vid_scale_pop;
|
|
IBOutlet id _customize_aud_ckb;
|
|
IBOutlet id _customize_aud_keep_ckb;
|
|
IBOutlet id _customize_aud_codec_lbl;
|
|
IBOutlet id _customize_aud_codec_pop;
|
|
IBOutlet id _customize_aud_bitrate_lbl;
|
|
IBOutlet id _customize_aud_bitrate_fld;
|
|
IBOutlet id _customize_aud_channels_lbl;
|
|
IBOutlet id _customize_aud_channels_fld;
|
|
IBOutlet id _customize_aud_samplerate_lbl;
|
|
IBOutlet id _customize_aud_samplerate_pop;
|
|
IBOutlet id _customize_subs_ckb;
|
|
IBOutlet id _customize_subs_pop;
|
|
IBOutlet id _customize_subs_overlay_ckb;
|
|
|
|
IBOutlet id _stream_panel;
|
|
IBOutlet id _stream_ok_btn;
|
|
IBOutlet id _stream_destination_lbl;
|
|
IBOutlet id _stream_announcement_lbl;
|
|
IBOutlet id _stream_type_lbl;
|
|
IBOutlet id _stream_type_pop;
|
|
IBOutlet id _stream_address_lbl;
|
|
IBOutlet id _stream_address_fld;
|
|
IBOutlet id _stream_ttl_lbl;
|
|
IBOutlet id _stream_ttl_fld;
|
|
IBOutlet id _stream_ttl_stepper;
|
|
IBOutlet id _stream_port_lbl;
|
|
IBOutlet id _stream_port_fld;
|
|
IBOutlet id _stream_sap_ckb;
|
|
IBOutlet id _stream_channel_fld;
|
|
IBOutlet id _stream_sdp_matrix;
|
|
IBOutlet id _stream_sdp_fld;
|
|
IBOutlet id _stream_sdp_browsefile_btn;
|
|
|
|
NSString * _MRL;
|
|
NSString * _outputDestination;
|
|
NSArray * _profileNames;
|
|
NSArray * _profileValueList;
|
|
NSArray * _videoCodecs;
|
|
NSArray * _audioCodecs;
|
|
NSArray * _subsCodecs;
|
|
NSMutableArray * _currentProfile;
|
|
|
|
BOOL b_streaming;
|
|
}
|
|
@property (readwrite, nonatomic, retain) NSString * MRL;
|
|
@property (readwrite, nonatomic, retain) NSString * outputDestination;
|
|
@property (readwrite, retain) NSArray * profileNames;
|
|
@property (readwrite, retain) NSArray * profileValueList;
|
|
@property (readwrite, retain) NSMutableArray * currentProfile;
|
|
|
|
+ (VLCConvertAndSave *)sharedInstance;
|
|
|
|
- (IBAction)toggleWindow;
|
|
|
|
- (IBAction)finalizePanel:(id)sender;
|
|
- (IBAction)openMedia:(id)sender;
|
|
- (IBAction)switchProfile:(id)sender;
|
|
- (IBAction)customizeProfile:(id)sender;
|
|
- (IBAction)closeCustomizationSheet:(id)sender;
|
|
- (IBAction)newProfileAction:(id)sender;
|
|
- (IBAction)iWantAFile:(id)sender;
|
|
- (IBAction)iWantAStream:(id)sender;
|
|
- (IBAction)cancelDestination:(id)sender;
|
|
- (IBAction)browseFileDestination:(id)sender;
|
|
- (IBAction)showStreamPanel:(id)sender;
|
|
- (IBAction)closeStreamPanel:(id)sender;
|
|
- (IBAction)streamTypeToggle:(id)sender;
|
|
- (IBAction)streamAnnouncementToggle:(id)sender;
|
|
- (IBAction)sdpFileLocationSelector:(id)sender;
|
|
|
|
- (void)panel:(VLCEnterTextPanel *)panel returnValue:(NSUInteger)value text:(NSString *)text;
|
|
- (void)panel:(VLCSelectItemInPopupPanel *)panel returnValue:(NSUInteger)value item:(NSUInteger)item;
|
|
|
|
- (void)updateDropView;
|
|
|
|
@end
|
|
|
|
@interface VLCDropEnabledBox : NSBox
|
|
{
|
|
BOOL b_activeDragAndDrop;
|
|
}
|
|
|
|
@end
|
|
|
|
@interface VLCDropEnabledImageView : NSImageView
|
|
|
|
@end
|
|
|
|
@interface VLCDropEnabledButton : NSButton
|
|
|
|
@end
|
|
|