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
2dfe7c35
Commit
2dfe7c35
authored
Jun 05, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add multi-selection support to the playlist's recursiveExpandNode (refs #6892)
(cherry picked from commit
0e5226e0
)
parent
e2769a9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+20
-10
No files found.
modules/gui/macosx/playlist.m
View file @
2dfe7c35
...
@@ -1267,18 +1267,28 @@
...
@@ -1267,18 +1267,28 @@
-
(
IBAction
)
recursiveExpandNode
:(
id
)
sender
-
(
IBAction
)
recursiveExpandNode
:(
id
)
sender
{
{
id
o_item
=
[
o_outline_view
itemAtRow
:
[
o_outline_view
selectedRow
]];
NSIndexSet
*
selectedRows
=
[
o_outline_view
selectedRowIndexes
];
playlist_item_t
*
p_item
=
(
playlist_item_t
*
)[
o_item
pointerValue
];
NSUInteger
count
=
[
selectedRows
count
];
NSUInteger
indexes
[
count
];
[
selectedRows
getIndexes
:
indexes
maxCount
:
count
inIndexRange
:
nil
];
id
o_item
;
playlist_item_t
*
p_item
;
for
(
NSUInteger
i
=
0
;
i
<
count
;
i
++
)
{
o_item
=
[
o_outline_view
itemAtRow
:
indexes
[
i
]];
p_item
=
(
playlist_item_t
*
)[
o_item
pointerValue
];
if
(
!
[[
o_outline_view
dataSource
]
outlineView
:
o_outline_view
isItemExpandable
:
o_item
]
)
if
(
!
[[
o_outline_view
dataSource
]
outlineView
:
o_outline_view
isItemExpandable
:
o_item
]
)
{
o_item
=
[
o_outline_dict
objectForKey
:
[
NSString
stringWithFormat
:
@"%p"
,
p_item
->
p_parent
]];
o_item
=
[
o_outline_dict
objectForKey
:
[
NSString
stringWithFormat
:
@"%p"
,
p_item
->
p_parent
]];
}
/* We need to collapse the node first, since OSX refuses to recursively
/* We need to collapse the node first, since OSX refuses to recursively
expand an already expanded node, even if children nodes are collapsed. */
expand an already expanded node, even if children nodes are collapsed. */
[
o_outline_view
collapseItem
:
o_item
collapseChildren
:
YES
];
[
o_outline_view
collapseItem
:
o_item
collapseChildren
:
YES
];
[
o_outline_view
expandItem
:
o_item
expandChildren
:
YES
];
[
o_outline_view
expandItem
:
o_item
expandChildren
:
YES
];
selectedRows
=
[
o_outline_view
selectedRowIndexes
];
[
selectedRows
getIndexes
:
indexes
maxCount
:
count
inIndexRange
:
nil
];
}
}
}
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
...
...
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