Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d9923568
Commit
d9923568
authored
Aug 05, 2015
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: reorder and group CAS panel actions
No functional changes.
parent
91e3caa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
57 deletions
+70
-57
modules/gui/macosx/ConvertAndSave.h
modules/gui/macosx/ConvertAndSave.h
+8
-9
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+62
-48
No files found.
modules/gui/macosx/ConvertAndSave.h
View file @
d9923568
...
...
@@ -143,13 +143,18 @@
-
(
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
)
customizeProfile
:(
id
)
sender
;
-
(
IBAction
)
closeCustomizationSheet
:(
id
)
sender
;
-
(
IBAction
)
videoSettingsChanged
:(
id
)
sender
;
-
(
IBAction
)
audioSettingsChanged
:(
id
)
sender
;
-
(
IBAction
)
subSettingsChanged
:(
id
)
sender
;
-
(
IBAction
)
newProfileAction
:(
id
)
sender
;
-
(
IBAction
)
showStreamPanel
:(
id
)
sender
;
-
(
IBAction
)
closeStreamPanel
:(
id
)
sender
;
-
(
IBAction
)
streamTypeToggle
:(
id
)
sender
;
...
...
@@ -159,10 +164,4 @@
-
(
void
)
panel
:(
VLCEnterTextPanel
*
)
panel
returnValue
:(
NSUInteger
)
value
text
:(
NSString
*
)
text
;
-
(
void
)
panel
:(
VLCSelectItemInPopupPanel
*
)
panel
returnValue
:(
NSUInteger
)
value
item
:(
NSUInteger
)
item
;
-
(
IBAction
)
videoSettingsChanged
:(
id
)
sender
;
-
(
IBAction
)
audioSettingsChanged
:(
id
)
sender
;
-
(
IBAction
)
subSettingsChanged
:(
id
)
sender
;
-
(
void
)
updateDropView
;
@end
modules/gui/macosx/ConvertAndSave.m
View file @
d9923568
...
...
@@ -250,7 +250,7 @@
}
# pragma mark -
# pragma mark User Interaction
# pragma mark User Interaction
- main window
-
(
IBAction
)
finalizePanel
:(
id
)
sender
{
...
...
@@ -322,32 +322,6 @@
[
self
resetCustomizationSheetBasedOnProfile
:[
self
.
profileValueList
objectAtIndex
:
index
]];
}
-
(
IBAction
)
customizeProfile
:(
id
)
sender
{
[
NSApp
beginSheet
:
_customizePanel
modalForWindow
:
self
.
window
modalDelegate
:
self
didEndSelector
:
NULL
contextInfo
:
nil
];
}
-
(
IBAction
)
closeCustomizationSheet
:(
id
)
sender
{
[
_customizePanel
orderOut
:
sender
];
[
NSApp
endSheet
:
_customizePanel
];
if
(
sender
==
_customizeOkButton
)
[
self
updateCurrentProfile
];
}
-
(
IBAction
)
newProfileAction
:(
id
)
sender
{
/* show panel */
VLCEnterTextPanel
*
panel
=
[
VLCEnterTextPanel
sharedInstance
];
[
panel
setTitle
:
_NS
(
"Save as new profile"
)];
[
panel
setSubTitle
:
_NS
(
"Enter a name for the new profile:"
)];
[
panel
setCancelButtonLabel
:
_NS
(
"Cancel"
)];
[
panel
setOKButtonLabel
:
_NS
(
"Save"
)];
[
panel
setTarget
:
self
];
[
panel
runModalForWindow
:
_customizePanel
];
}
-
(
IBAction
)
deleteProfileAction
:(
id
)
sender
{
...
...
@@ -428,6 +402,63 @@
}];
}
#pragma mark -
#pragma mark User interaction - customization panel
-
(
IBAction
)
customizeProfile
:(
id
)
sender
{
[
NSApp
beginSheet
:
_customizePanel
modalForWindow
:
self
.
window
modalDelegate
:
self
didEndSelector
:
NULL
contextInfo
:
nil
];
}
-
(
IBAction
)
closeCustomizationSheet
:(
id
)
sender
{
[
_customizePanel
orderOut
:
sender
];
[
NSApp
endSheet
:
_customizePanel
];
if
(
sender
==
_customizeOkButton
)
[
self
updateCurrentProfile
];
}
-
(
IBAction
)
videoSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeVidCheckbox
state
]
==
NSOnState
&&
[
_customizeVidKeepCheckbox
state
]
==
NSOffState
;
[
_customizeVidSettingsBox
enableSubviews
:
enableSettings
];
[
_customizeVidKeepCheckbox
setEnabled
:[
_customizeVidCheckbox
state
]
==
NSOnState
];
}
-
(
IBAction
)
audioSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeAudCheckbox
state
]
==
NSOnState
&&
[
_customizeAudKeepCheckbox
state
]
==
NSOffState
;
[
_customizeAudSettingsBox
enableSubviews
:
enableSettings
];
[
_customizeAudKeepCheckbox
setEnabled
:[
_customizeAudCheckbox
state
]
==
NSOnState
];
}
-
(
IBAction
)
subSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeSubsCheckbox
state
]
==
NSOnState
;
[
_customizeSubsOverlayCheckbox
setEnabled
:
enableSettings
];
[
_customizeSubsPopup
setEnabled
:
enableSettings
];
}
-
(
IBAction
)
newProfileAction
:(
id
)
sender
{
/* show panel */
VLCEnterTextPanel
*
panel
=
[
VLCEnterTextPanel
sharedInstance
];
[
panel
setTitle
:
_NS
(
"Save as new profile"
)];
[
panel
setSubTitle
:
_NS
(
"Enter a name for the new profile:"
)];
[
panel
setCancelButtonLabel
:
_NS
(
"Cancel"
)];
[
panel
setOKButtonLabel
:
_NS
(
"Save"
)];
[
panel
setTarget
:
self
];
[
panel
runModalForWindow
:
_customizePanel
];
}
#pragma mark -
#pragma mark User interaction - stream panel
-
(
IBAction
)
showStreamPanel
:(
id
)
sender
{
[
NSApp
beginSheet
:
_streamPanel
modalForWindow
:
self
.
window
modalDelegate
:
self
didEndSelector
:
NULL
contextInfo
:
nil
];
...
...
@@ -521,6 +552,9 @@
}];
}
#pragma mark -
#pragma mark User interaction - misc
-
(
BOOL
)
performDragOperation
:(
id
<
NSDraggingInfo
>
)
sender
{
NSPasteboard
*
paste
=
[
sender
draggingPasteboard
];
...
...
@@ -617,29 +651,9 @@
}
}
-
(
IBAction
)
videoSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeVidCheckbox
state
]
==
NSOnState
&&
[
_customizeVidKeepCheckbox
state
]
==
NSOffState
;
[
_customizeVidSettingsBox
enableSubviews
:
enableSettings
];
[
_customizeVidKeepCheckbox
setEnabled
:[
_customizeVidCheckbox
state
]
==
NSOnState
];
}
-
(
IBAction
)
audioSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeAudCheckbox
state
]
==
NSOnState
&&
[
_customizeAudKeepCheckbox
state
]
==
NSOffState
;
[
_customizeAudSettingsBox
enableSubviews
:
enableSettings
];
[
_customizeAudKeepCheckbox
setEnabled
:[
_customizeAudCheckbox
state
]
==
NSOnState
];
}
-
(
IBAction
)
subSettingsChanged
:(
id
)
sender
{
bool
enableSettings
=
[
_customizeSubsCheckbox
state
]
==
NSOnState
;
[
_customizeSubsOverlayCheckbox
setEnabled
:
enableSettings
];
[
_customizeSubsPopup
setEnabled
:
enableSettings
];
}
# pragma mark -
# pragma mark Private Functionality
-
(
void
)
updateDropView
{
if
([
_MRL
length
]
>
0
)
{
...
...
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