Commit 303a0508 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: CAS: added ui skeleton for to customize a profile

parent f2f9b875
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -48,6 +48,40 @@
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_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_fld;
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;
NSString * _MRL;
NSString * _outputDestination;
}
......@@ -62,6 +96,7 @@
- (IBAction)openMedia:(id)sender;
- (IBAction)profileSelection:(id)sender;
- (IBAction)customizeProfile:(id)sender;
- (IBAction)closeCustomizationSheet:(id)sender;
- (IBAction)chooseDestination:(id)sender;
- (void)updateDropView;
......
......@@ -153,6 +153,14 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
- (IBAction)customizeProfile:(id)sender
{
[NSApp beginSheet:_customize_panel modalForWindow:_window modalDelegate:self didEndSelector:NULL contextInfo:nil];
}
- (IBAction)closeCustomizationSheet:(id)sender
{
// sender == _customize_ok_btn ?
[_customize_panel orderOut:sender];
[NSApp endSheet: _customize_panel];
}
- (IBAction)chooseDestination:(id)sender
......@@ -160,7 +168,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
NSSavePanel * saveFilePanel = [[NSSavePanel alloc] init];
[saveFilePanel setCanSelectHiddenExtension: YES];
[saveFilePanel setCanCreateDirectories: YES];
[saveFilePanel beginSheetForDirectory:nil file:nil modalForWindow: _window modalDelegate:self didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:) contextInfo:nil];
[saveFilePanel beginSheetForDirectory:nil file:nil modalForWindow:_window modalDelegate:self didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:) contextInfo:nil];
}
- (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment