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
e6b40c6c
Commit
e6b40c6c
authored
Apr 04, 2004
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "enable/disable all group items" functions in playlist context menu
parent
d2270bdb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
5 deletions
+43
-5
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
+4
-0
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
+0
-0
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.h
+4
-0
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+35
-5
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
e6b40c6c
...
...
@@ -334,6 +334,8 @@
{
ACTIONS = {
deleteItems = id;
disableGroup = id;
enableGroup = id;
handlePopUp = id;
playItem = id;
savePlaylist = id;
...
...
@@ -349,6 +351,8 @@
"o_ctx_menu" = id;
"o_loop_popup" = id;
"o_mi_delete" = id;
"o_mi_disableGroup" = id;
"o_mi_enableGroup" = id;
"o_mi_info" = id;
"o_mi_play" = id;
"o_mi_save_playlist" = id;
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
View file @
e6b40c6c
No preview for this file type
modules/gui/macosx/playlist.h
View file @
e6b40c6c
...
...
@@ -57,6 +57,8 @@
IBOutlet
id
o_mi_delete
;
IBOutlet
id
o_mi_selectall
;
IBOutlet
id
o_mi_toggleItemsEnabled
;
IBOutlet
id
o_mi_enableGroup
;
IBOutlet
id
o_mi_disableGroup
;
IBOutlet
id
o_random_ckb
;
...
...
@@ -90,6 +92,8 @@
-
(
IBAction
)
playItem
:(
id
)
sender
;
-
(
IBAction
)
deleteItems
:(
id
)
sender
;
-
(
IBAction
)
toggleItemsEnabled
:(
id
)
sender
;
-
(
IBAction
)
enableGroup
:(
id
)
sender
;
-
(
IBAction
)
disableGroup
:(
id
)
sender
;
-
(
IBAction
)
selectAll
:(
id
)
sender
;
-
(
IBAction
)
searchItem
:(
id
)
sender
;
-
(
IBAction
)
handlePopUp
:(
id
)
sender
;
...
...
modules/gui/macosx/playlist.m
View file @
e6b40c6c
...
...
@@ -137,7 +137,6 @@
[
o_table_view
setIntercellSpacing
:
NSMakeSize
(
0
.
0
,
1
.
0
)];
[
o_window
setExcludedFromWindowsMenu
:
TRUE
];
[
o_mi_toggleItemsEnabled
setTarget
:
self
];
// [o_tbv_info setDataSource: [VLCInfoDataSource init]];
...
...
@@ -174,6 +173,8 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[
o_mi_delete
setTitle
:
_NS
(
"Delete"
)];
[
o_mi_selectall
setTitle
:
_NS
(
"Select All"
)];
[
o_mi_toggleItemsEnabled
setTitle
:
_NS
(
"Item Enabled"
)];
[
o_mi_enableGroup
setTitle
:
_NS
(
"Enable all group items"
)];
[
o_mi_disableGroup
setTitle
:
_NS
(
"Disable all group items"
)];
[
o_mi_info
setTitle
:
_NS
(
"Properties"
)];
[[
o_tc_name
headerCell
]
setStringValue
:
_NS
(
"Name"
)];
...
...
@@ -267,7 +268,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
bool
b_state
=
FALSE
;
bool
b_
item
state
=
FALSE
;
NSPoint
pt
;
vlc_bool_t
b_rows
;
...
...
@@ -284,16 +285,17 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[
o_mi_selectall
setEnabled
:
b_rows
];
[
o_mi_info
setEnabled
:
b_item_sel
];
[
o_mi_toggleItemsEnabled
setEnabled
:
b_item_sel
];
[
o_mi_enableGroup
setEnabled
:
b_item_sel
];
[
o_mi_disableGroup
setEnabled
:
b_item_sel
];
if
(
p_playlist
)
{
b_state
=
([
o_table_view
selectedRow
]
>
-
1
)
?
b_
item
state
=
([
o_table_view
selectedRow
]
>
-
1
)
?
p_playlist
->
pp_items
[[
o_table_view
selectedRow
]]
->
b_enabled
:
FALSE
;
vlc_object_release
(
p_playlist
);
}
[
o_mi_toggleItemsEnabled
setState
:
b_state
];
[
o_mi_toggleItemsEnabled
setState
:
b_
item
state
];
return
(
o_ctx_menu
);
}
...
...
@@ -430,6 +432,34 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[
self
playlistUpdated
];
}
-
(
IBAction
)
enableGroup
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
playlist_EnableGroup
(
p_playlist
,
p_playlist
->
pp_items
[[
o_table_view
selectedRow
]]
->
i_group
);
vlc_object_release
(
p_playlist
);
}
}
-
(
IBAction
)
disableGroup
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
playlist_DisableGroup
(
p_playlist
,
p_playlist
->
pp_items
[[
o_table_view
selectedRow
]]
->
i_group
);
vlc_object_release
(
p_playlist
);
}
}
-
(
IBAction
)
selectAll
:(
id
)
sender
{
[
o_table_view
selectAll
:
nil
];
...
...
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