Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
10c15522
Commit
10c15522
authored
Jun 29, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Still some work for playlist drag'n'drop
parent
04f177a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+23
-5
No files found.
modules/gui/macosx/playlist.m
View file @
10c15522
...
...
@@ -1359,8 +1359,8 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
!
p_playlist
)
return
NO
;
[
pboard
declareTypes
:
[
NSArray
arrayWithObject
:
@"VLCPlaylistItemPboardType"
]
owner
:
nil
];
[
pboard
declareTypes
:
[
NSArray
arrayWithObject
s
:
@"VLCPlaylistItemPboardType"
,
NSFilenamesPboardType
,
nil
]
owner
:
self
];
for
(
i
=
0
;
i
<
[
items
count
]
;
i
++
)
{
...
...
@@ -1415,8 +1415,10 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[
o_objects_array
addObjectsFromArray
:
o_nodes_array
];
[
o_objects_array
addObjectsFromArray
:
o_items_array
];
if
(
!
[
pboard
setPropertyList
:(
id
)
o_objects_array
forType:
@"VLCPlaylistItemPboardType"
]
)
if
(
!
[
pboard
setPropertyList
:
o_objects_array
forType:
@"VLCPlaylistItemPboardType"
]
||
!
[
pboard
setPropertyList
:
[
NSArray
array
]
forType:
@"VLCPlaylistItemPboardType"
])
{
vlc_object_release
(
p_playlist
);
return
NO
;
...
...
@@ -1428,12 +1430,28 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
-
(
NSDragOperation
)
outlineView
:(
NSOutlineView
*
)
outlineView
validateDrop
:(
id
<
NSDraggingInfo
>
)
info
proposedItem
:(
id
)
item
proposedChildIndex
:(
int
)
index
{
playlist_t
*
p_playlist
=
vlc_object_find
(
VLCIntf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
NSPasteboard
*
o_pasteboard
=
[
info
draggingPasteboard
];
if
(
[[
o_pasteboard
types
]
containsObject
:
NSFilenamesPboardType
]
)
if
(
!
p_playlist
)
return
NSDragOperationNone
;
/* Drop from the Playlist */
if
(
[[
o_pasteboard
types
]
containsObject
:
@"VLCPlaylistItemPboardType"
]
&&
[
self
isItem
:
[
item
pointerValue
]
inNode
:
p_playlist
->
p_general
])
{
vlc_object_release
(
p_playlist
);
return
NSDragOperationMove
;
}
/* Drop from the Finder */
else
if
(
[[
o_pasteboard
types
]
containsObject
:
NSFilenamesPboardType
]
&&
!
[[
o_pasteboard
types
]
containsObject
:
@"VLCPlaylistItemPboardType"
])
{
vlc_object_release
(
p_playlist
);
return
NSDragOperationGeneric
;
}
vlc_object_release
(
p_playlist
);
return
NSDragOperationNone
;
}
...
...
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