Commit 18834cd7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: CAS: added a skeleton for a stream output

parent 467c69f5
......@@ -43,6 +43,8 @@
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 _dropin_view;
IBOutlet id _dropin_icon_view;
......@@ -83,6 +85,26 @@
IBOutlet id _customize_subs_pop;
IBOutlet id _customize_subs_overlay_ckb;
IBOutlet id _stream_panel;
IBOutlet id _stream_ok_btn;
IBOutlet id _stream_cancel_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_port_lbl;
IBOutlet id _stream_port_fld;
IBOutlet id _stream_sap_ckb;
IBOutlet id _stream_http_ckb;
IBOutlet id _stream_rtsp_ckb;
IBOutlet id _stream_sdp_ckb;
IBOutlet id _stream_channel_fld;
IBOutlet id _stream_sdp_fld;
NSString * _MRL;
NSString * _outputDestination;
NSArray * _profileNames;
......@@ -108,6 +130,8 @@
- (IBAction)customizeProfile:(id)sender;
- (IBAction)closeCustomizationSheet:(id)sender;
- (IBAction)chooseDestination:(id)sender;
- (IBAction)showStreamPanel:(id)sender;
- (IBAction)closeStreamPanel:(id)sender;
- (void)updateDropView;
......
......@@ -143,6 +143,8 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[_destination_lbl setStringValue: _NS("Choose Destination")];
[_destination_filename_stub_lbl setStringValue: _NS("Choose an output location")];
[_destination_filename_lbl setHidden: YES];
[_destination_stream_btn setTitle:_NS("Stream...")];
[_destination_stream_lbl setStringValue:@""];
[_customize_ok_btn setTitle: _NS("Apply")];
[_customize_cancel_btn setTitle: _NS("Cancel")];
[[_customize_tabview tabViewItemAtIndex:0] setLabel: _NS("Encapsulation")];
......@@ -168,6 +170,18 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[_customize_aud_samplerate_lbl setStringValue: _NS("Sample Rate")];
[_customize_subs_ckb setTitle: _NS("Subtitles")];
[_customize_subs_overlay_ckb setTitle: _NS("Overlay subtitles on the video")];
[_stream_ok_btn setTitle:_NS("Set")];
[_stream_cancel_btn setTitle:_NS("Cancel")];
[_stream_destination_lbl setStringValue:_NS("Stream Destination")];
[_stream_announcement_lbl setStringValue:_NS("Stream Announcement")];
[_stream_type_lbl setStringValue:_NS("Type")];
[_stream_address_lbl setStringValue:_NS("Address")];
[_stream_ttl_lbl setStringValue:_NS("TTL")];
[_stream_port_lbl setStringValue:_NS("Port")];
[_stream_sap_ckb setStringValue:_NS("SAP Announcement")];
[_stream_http_ckb setStringValue:_NS("HTTP Announcement")];
[_stream_rtsp_ckb setStringValue:_NS("RTSP Announcement")];
[_stream_sdp_ckb setStringValue:_NS("Export SDP as file")];
/* there is no way to hide single cells, so replace the existing ones with empty cells.. */
id blankCell = [[[NSCell alloc] init] autorelease];
......@@ -371,6 +385,17 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[self updateOKButton];
}
- (IBAction)showStreamPanel:(id)sender
{
[NSApp beginSheet:_stream_panel modalForWindow:_window modalDelegate:self didEndSelector:NULL contextInfo:nil];
}
- (IBAction)closeStreamPanel:(id)sender
{
[_stream_panel orderOut:sender];
[NSApp endSheet: _stream_panel];
}
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
NSPasteboard *paste = [sender draggingPasteboard];
......
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