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
7e9a5335
Commit
7e9a5335
authored
Dec 11, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wx-playlist: hide node-related items from popup, when rightclicking a non-node
parent
058e9920
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+20
-9
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+2
-1
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
7e9a5335
...
...
@@ -255,13 +255,19 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
SetMenuBar
(
menubar
);
/* Create the popup menu */
popup_menu
=
new
wxMenu
;
popup_menu
->
Append
(
PopupPlay_Event
,
wxU
(
_
(
"Play"
))
);
popup_menu
->
Append
(
PopupPlayThis_Event
,
wxU
(
_
(
"Play this branch"
))
);
popup_menu
->
Append
(
PopupPreparse_Event
,
wxU
(
_
(
"Preparse"
))
);
popup_menu
->
Append
(
PopupSort_Event
,
wxU
(
_
(
"Sort this branch"
))
);
popup_menu
->
Append
(
PopupDel_Event
,
wxU
(
_
(
"Delete"
))
);
popup_menu
->
Append
(
PopupInfo_Event
,
wxU
(
_
(
"Info"
))
);
node_popup
=
new
wxMenu
;
node_popup
->
Append
(
PopupPlay_Event
,
wxU
(
_
(
"Play"
))
);
node_popup
->
Append
(
PopupPlayThis_Event
,
wxU
(
_
(
"Play this branch"
))
);
node_popup
->
Append
(
PopupPreparse_Event
,
wxU
(
_
(
"Preparse"
))
);
node_popup
->
Append
(
PopupSort_Event
,
wxU
(
_
(
"Sort this branch"
))
);
node_popup
->
Append
(
PopupDel_Event
,
wxU
(
_
(
"Delete"
))
);
node_popup
->
Append
(
PopupInfo_Event
,
wxU
(
_
(
"Info"
))
);
item_popup
=
new
wxMenu
;
item_popup
->
Append
(
PopupPlay_Event
,
wxU
(
_
(
"Play"
))
);
item_popup
->
Append
(
PopupPreparse_Event
,
wxU
(
_
(
"Preparse"
))
);
item_popup
->
Append
(
PopupDel_Event
,
wxU
(
_
(
"Delete"
))
);
item_popup
->
Append
(
PopupInfo_Event
,
wxU
(
_
(
"Info"
))
);
/* Create a panel to put everything in */
wxPanel
*
playlist_panel
=
new
wxPanel
(
this
,
-
1
);
...
...
@@ -1346,8 +1352,13 @@ void Playlist::OnPopup( wxContextMenuEvent& event )
p_popup_item
=
p_wxitem
->
p_item
;
p_popup_parent
=
p_wxparent
->
p_item
;
treectrl
->
SelectItem
(
i_popup_item
);
Playlist
::
PopupMenu
(
popup_menu
,
ScreenToClient
(
wxGetMousePosition
()
)
);
if
(
p_popup_item
->
i_children
==
-
1
)
Playlist
::
PopupMenu
(
item_popup
,
ScreenToClient
(
wxGetMousePosition
()
)
);
else
Playlist
::
PopupMenu
(
node_popup
,
ScreenToClient
(
wxGetMousePosition
()
)
);
}
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
7e9a5335
...
...
@@ -840,7 +840,8 @@ private:
void
OnNewGroup
(
wxCommandEvent
&
event
);
/* Popup */
wxMenu
*
popup_menu
;
wxMenu
*
item_popup
;
wxMenu
*
node_popup
;
wxTreeItemId
i_popup_item
;
playlist_item_t
*
p_popup_item
;
playlist_item_t
*
p_popup_parent
;
...
...
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