Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0dea876e
Commit
0dea876e
authored
Dec 28, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/CAS: add a button for SDP file location selection
parent
2ad63ccb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
154 additions
and
46 deletions
+154
-46
extras/package/macosx/Resources/English.lproj/ConvertAndSave.xib
...package/macosx/Resources/English.lproj/ConvertAndSave.xib
+135
-46
modules/gui/macosx/ConvertAndSave.h
modules/gui/macosx/ConvertAndSave.h
+2
-0
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+17
-0
No files found.
extras/package/macosx/Resources/English.lproj/ConvertAndSave.xib
View file @
0dea876e
This diff is collapsed.
Click to expand it.
modules/gui/macosx/ConvertAndSave.h
View file @
0dea876e
...
...
@@ -109,6 +109,7 @@
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
;
...
...
@@ -145,6 +146,7 @@
-
(
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
;
...
...
modules/gui/macosx/ConvertAndSave.m
View file @
0dea876e
...
...
@@ -500,6 +500,23 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
{
[
_stream_channel_fld
setEnabled
:[
_stream_sap_ckb
state
]
&&
[
_stream_sap_ckb
isEnabled
]];
[
_stream_sdp_fld
setEnabled
:[
_stream_sdp_matrix
isEnabled
]
&&
([
_stream_sdp_matrix
selectedCell
]
!=
[
_stream_sdp_matrix
cellWithTag
:
0
])];
if
([[
_stream_sdp_matrix
selectedCell
]
tag
]
==
3
)
[
_stream_sdp_browsefile_btn
setEnabled
:
YES
];
else
[
_stream_sdp_browsefile_btn
setEnabled
:
NO
];
}
-
(
IBAction
)
sdpFileLocationSelector
:(
id
)
sender
{
NSSavePanel
*
saveFilePanel
=
[
NSSavePanel
savePanel
];
[
saveFilePanel
setCanSelectHiddenExtension
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
[
saveFilePanel
setAllowedFileTypes
:[
NSArray
arrayWithObject
:
@"sdp"
]];
[
saveFilePanel
beginSheetModalForWindow
:
_stream_panel
completionHandler
:
^
(
NSInteger
returnCode
)
{
if
(
returnCode
==
NSOKButton
)
[
_stream_sdp_fld
setStringValue
:[[
saveFilePanel
URL
]
path
]];
}];
}
-
(
BOOL
)
performDragOperation
:(
id
<
NSDraggingInfo
>
)
sender
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment