Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
47318ef3
Commit
47318ef3
authored
Jul 31, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: implemented 'play-and-exit' (closes #2237)
Should be backported.
parent
b20a12f3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
6 deletions
+100
-6
extras/package/macosx/Resources/English.lproj/MainMenu.nib/designable.nib
...acosx/Resources/English.lproj/MainMenu.nib/designable.nib
+80
-6
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
...osx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+0
-0
modules/gui/macosx/controls.h
modules/gui/macosx/controls.h
+1
-0
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+17
-0
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-0
No files found.
extras/package/macosx/Resources/English.lproj/MainMenu.nib/designable.nib
View file @
47318ef3
...
...
@@ -8,11 +8,11 @@
<string
key=
"IBDocument.HIToolboxVersion"
>
353.00
</string>
<object
class=
"NSMutableArray"
key=
"IBDocument.EditedObjectIDs"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
<integer
value=
"2457"
/>
<integer
value=
"4375"
/>
<integer
value=
"2
199
"
/>
<integer
value=
"2
35
"
/>
<integer
value=
"3568"
/>
<integer
value=
"283"
/>
<integer
value=
"2199"
/>
</object>
<object
class=
"NSArray"
key=
"IBDocument.PluginDependencies"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
...
...
@@ -842,6 +842,16 @@
<reference
key=
"NSOnImage"
ref=
"464614658"
/>
<reference
key=
"NSMixedImage"
ref=
"724706907"
/>
</object>
<object
class=
"NSMenuItem"
id=
"963561211"
>
<reference
key=
"NSMenu"
ref=
"816567345"
/>
<bool
key=
"NSIsDisabled"
>
YES
</bool>
<bool
key=
"NSIsSeparator"
>
YES
</bool>
<string
key=
"NSTitle"
/>
<string
key=
"NSKeyEquiv"
/>
<int
key=
"NSMnemonicLoc"
>
2147483647
</int>
<reference
key=
"NSOnImage"
ref=
"464614658"
/>
<reference
key=
"NSMixedImage"
ref=
"724706907"
/>
</object>
<object
class=
"NSMenuItem"
id=
"1056015920"
>
<reference
key=
"NSMenu"
ref=
"816567345"
/>
<string
key=
"NSTitle"
>
Repeat Item
</string>
...
...
@@ -860,6 +870,24 @@
<reference
key=
"NSOnImage"
ref=
"464614658"
/>
<reference
key=
"NSMixedImage"
ref=
"724706907"
/>
</object>
<object
class=
"NSMenuItem"
id=
"634130855"
>
<reference
key=
"NSMenu"
ref=
"816567345"
/>
<string
key=
"NSTitle"
>
Quit after Playback
</string>
<string
key=
"NSKeyEquiv"
/>
<int
key=
"NSMnemonicLoc"
>
2147483647
</int>
<reference
key=
"NSOnImage"
ref=
"464614658"
/>
<reference
key=
"NSMixedImage"
ref=
"724706907"
/>
</object>
<object
class=
"NSMenuItem"
id=
"598785014"
>
<reference
key=
"NSMenu"
ref=
"816567345"
/>
<bool
key=
"NSIsDisabled"
>
YES
</bool>
<bool
key=
"NSIsSeparator"
>
YES
</bool>
<string
key=
"NSTitle"
/>
<string
key=
"NSKeyEquiv"
/>
<int
key=
"NSMnemonicLoc"
>
2147483647
</int>
<reference
key=
"NSOnImage"
ref=
"464614658"
/>
<reference
key=
"NSMixedImage"
ref=
"724706907"
/>
</object>
<object
class=
"NSMenuItem"
id=
"521340648"
>
<reference
key=
"NSMenu"
ref=
"816567345"
/>
<string
key=
"NSTitle"
>
Add Folder to Playlist...
</string>
...
...
@@ -9146,6 +9174,22 @@ LCAuLi4</string>
</object>
<int
key=
"connectionID"
>
4535
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
quitAfterPlayback:
</string>
<reference
key=
"source"
ref=
"318538144"
/>
<reference
key=
"destination"
ref=
"634130855"
/>
</object>
<int
key=
"connectionID"
>
4538
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBOutletConnection"
key=
"connection"
>
<string
key=
"label"
>
o_mi_quitAfterPB
</string>
<reference
key=
"source"
ref=
"382099807"
/>
<reference
key=
"destination"
ref=
"634130855"
/>
</object>
<int
key=
"connectionID"
>
4539
</int>
</object>
</object>
<object
class=
"IBMutableOrderedSet"
key=
"objectRecords"
>
<object
class=
"NSArray"
key=
"orderedObjects"
>
...
...
@@ -9726,6 +9770,9 @@ LCAuLi4</string>
<reference
ref=
"128133130"
/>
<reference
ref=
"521340648"
/>
<reference
ref=
"508315060"
/>
<reference
ref=
"598785014"
/>
<reference
ref=
"634130855"
/>
<reference
ref=
"963561211"
/>
</object>
<reference
key=
"parent"
ref=
"443407942"
/>
</object>
...
...
@@ -12689,6 +12736,21 @@ LCAuLi4</string>
<reference
key=
"parent"
ref=
"0"
/>
<string
key=
"objectName"
>
Sparkle Updater
</string>
</object>
<object
class=
"IBObjectRecord"
>
<int
key=
"objectID"
>
4536
</int>
<reference
key=
"object"
ref=
"598785014"
/>
<reference
key=
"parent"
ref=
"816567345"
/>
</object>
<object
class=
"IBObjectRecord"
>
<int
key=
"objectID"
>
4537
</int>
<reference
key=
"object"
ref=
"634130855"
/>
<reference
key=
"parent"
ref=
"816567345"
/>
</object>
<object
class=
"IBObjectRecord"
>
<int
key=
"objectID"
>
4540
</int>
<reference
key=
"object"
ref=
"963561211"
/>
<reference
key=
"parent"
ref=
"816567345"
/>
</object>
</object>
</object>
<object
class=
"NSMutableDictionary"
key=
"flattenedProperties"
>
...
...
@@ -13197,6 +13259,7 @@ LCAuLi4</string>
<string>
3292.ImportedFromIB2
</string>
<string>
333.IBPluginDependency
</string>
<string>
333.ImportedFromIB2
</string>
<string>
334.IBEditorWindowLastContentRect
</string>
<string>
334.IBPluginDependency
</string>
<string>
334.ImportedFromIB2
</string>
<string>
3385.IBPluginDependency
</string>
...
...
@@ -13560,6 +13623,9 @@ LCAuLi4</string>
<string>
446.IBPluginDependency
</string>
<string>
446.ImportedFromIB2
</string>
<string>
4533.IBPluginDependency
</string>
<string>
4536.IBPluginDependency
</string>
<string>
4537.IBPluginDependency
</string>
<string>
4540.IBPluginDependency
</string>
<string>
5.IBPluginDependency
</string>
<string>
5.ImportedFromIB2
</string>
<string>
56.IBPluginDependency
</string>
...
...
@@ -13628,7 +13694,7 @@ LCAuLi4</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
{{
291, 25
9}, {200, 173}}
</string>
<string>
{{
564, 50
9}, {200, 173}}
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
...
...
@@ -13944,7 +14010,7 @@ LCAuLi4</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
{{
214, 79}, {255, 35
3}}
</string>
<string>
{{
358, 293}, {255, 39
3}}
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
...
...
@@ -14104,13 +14170,14 @@ LCAuLi4</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
{{
343, 682
}, {468, 20}}
</string>
<string>
{{
214, 686
}, {468, 20}}
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
{{493, 343}, {198, 343}}
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
...
...
@@ -14475,6 +14542,9 @@ LCAuLi4</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
<string>
com.apple.InterfaceBuilder.CocoaPlugin
</string>
<reference
ref=
"5"
/>
...
...
@@ -14542,7 +14612,7 @@ LCAuLi4</string>
</object>
</object>
<nil
key=
"sourceID"
/>
<int
key=
"maxID"
>
45
35
</int>
<int
key=
"maxID"
>
45
40
</int>
</object>
<object
class=
"IBClassDescriber"
key=
"IBDocument.Classes"
>
<object
class=
"NSMutableArray"
key=
"referencedPartialClassDescriptions"
>
...
...
@@ -14760,6 +14830,7 @@ LCAuLi4</string>
<string>
next:
</string>
<string>
play:
</string>
<string>
prev:
</string>
<string>
quitAfterPlayback:
</string>
<string>
random:
</string>
<string>
repeat:
</string>
<string>
repeatButtonAction:
</string>
...
...
@@ -14802,6 +14873,7 @@ LCAuLi4</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
</object>
</object>
<object
class=
"NSMutableDictionary"
key=
"outlets"
>
...
...
@@ -15253,6 +15325,7 @@ LCAuLi4</string>
<string>
o_mi_previous
</string>
<string>
o_mi_program
</string>
<string>
o_mi_quit
</string>
<string>
o_mi_quitAfterPB
</string>
<string>
o_mi_random
</string>
<string>
o_mi_readme
</string>
<string>
o_mi_repeat
</string>
...
...
@@ -15452,6 +15525,7 @@ LCAuLi4</string>
<string>
NSMenuItem
</string>
<string>
NSMenuItem
</string>
<string>
NSMenuItem
</string>
<string>
NSMenuItem
</string>
<string>
NSButton
</string>
<string>
NSWindow
</string>
<string>
NSButton
</string>
...
...
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
View file @
47318ef3
No preview for this file type
modules/gui/macosx/controls.h
View file @
47318ef3
...
...
@@ -73,6 +73,7 @@
-
(
IBAction
)
repeat
:(
id
)
sender
;
-
(
IBAction
)
loop
:(
id
)
sender
;
-
(
IBAction
)
repeatButtonAction
:(
id
)
sender
;
-
(
IBAction
)
quitAfterPlayback
:(
id
)
sender
;
/* the three ugly helpers again */
-
(
void
)
repeatOne
;
...
...
modules/gui/macosx/controls.m
View file @
47318ef3
...
...
@@ -379,6 +379,16 @@
pl_Release
(
p_intf
);
}
-
(
IBAction
)
quitAfterPlayback
:(
id
)
sender
{
vlc_value_t
val
;
playlist_t
*
p_playlist
=
pl_Hold
(
VLCIntf
);
var_Get
(
p_playlist
,
"play-and-exit"
,
&
val
);
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"play-and-exit"
,
val
);
pl_Release
(
VLCIntf
);
}
-
(
IBAction
)
forward
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
VLCIntf
;
...
...
@@ -1053,6 +1063,13 @@
i_state
=
val
.
b_bool
?
NSOnState
:
NSOffState
;
[
o_mi
setState
:
i_state
];
}
else
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Quit after Playback"
)]
)
{
int
i_state
;
var_Get
(
p_playlist
,
"play-and-exit"
,
&
val
);
i_state
=
val
.
b_bool
?
NSOnState
:
NSOffState
;
[
o_mi
setState
:
i_state
];
}
else
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Step Forward"
)]
||
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Step Backward"
)]
||
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Jump To Time"
)])
...
...
modules/gui/macosx/intf.h
View file @
47318ef3
...
...
@@ -212,6 +212,7 @@ struct intf_sys_t
IBOutlet
NSMenuItem
*
o_mi_random
;
IBOutlet
NSMenuItem
*
o_mi_repeat
;
IBOutlet
NSMenuItem
*
o_mi_loop
;
IBOutlet
NSMenuItem
*
o_mi_quitAfterPB
;
IBOutlet
NSMenuItem
*
o_mi_fwd
;
IBOutlet
NSMenuItem
*
o_mi_bwd
;
IBOutlet
NSMenuItem
*
o_mi_fwd1m
;
...
...
modules/gui/macosx/intf.m
View file @
47318ef3
...
...
@@ -661,6 +661,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[
o_mi_random
setTitle
:
_NS
(
"Random"
)];
[
o_mi_repeat
setTitle
:
_NS
(
"Repeat One"
)];
[
o_mi_loop
setTitle
:
_NS
(
"Repeat All"
)];
[
o_mi_quitAfterPB
setTitle
:
_NS
(
"Quit after Playback"
)];
[
o_mi_fwd
setTitle
:
_NS
(
"Step Forward"
)];
[
o_mi_bwd
setTitle
:
_NS
(
"Step Backward"
)];
...
...
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