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
3487d61e
Commit
3487d61e
authored
Feb 07, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt/Skins: give complete access to the Tools menu to the skins. Close #2275
parent
98c06d9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+9
-20
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
3487d61e
...
...
@@ -293,7 +293,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi,
BAR_DADD
(
VideoMenu
(
p_intf
,
NULL
),
qtr
(
"&Video"
),
2
);
BAR_DADD
(
NavigMenu
(
p_intf
,
NULL
),
qtr
(
"P&layback"
),
3
);
BAR_ADD
(
ToolsMenu
(
p_intf
),
qtr
(
"&Tools"
)
);
BAR_ADD
(
ToolsMenu
(
NULL
),
qtr
(
"&Tools"
)
);
BAR_ADD
(
ViewMenu
(
p_intf
,
NULL
,
mi
,
visual_selector_enabled
,
true
),
qtr
(
"V&iew"
)
);
...
...
@@ -353,11 +353,13 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf )
}
/* Playlist/MediaLibrary Control */
QMenu
*
QVLCMenu
::
ToolsMenu
(
intf_thread_t
*
p_intf
)
QMenu
*
QVLCMenu
::
ToolsMenu
(
QMenu
*
parent
)
{
VLC_UNUSED
(
p_intf
);
//TODO remove
QMenu
*
menu
=
new
QMenu
();
QMenu
*
menu
;
if
(
parent
==
NULL
)
menu
=
new
QMenu
();
else
menu
=
parent
;
addDPStaticEntry
(
menu
,
qtr
(
I_MENU_EXT
),
":/settings"
,
SLOT
(
extendedDialog
()
),
"Ctrl+E"
);
...
...
@@ -715,12 +717,6 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu,
void
QVLCMenu
::
PopupMenuStaticEntries
(
QMenu
*
menu
)
{
#if 0
QMenu *toolsmenu = ToolsMenu( p_intf, menu, false, true );
toolsmenu->setTitle( qtr( "Tools" ) );
menu->addMenu( toolsmenu );
#endif
QMenu
*
openmenu
=
new
QMenu
(
qtr
(
"Open Media"
),
menu
);
addDPStaticEntry
(
openmenu
,
qtr
(
"&Open File..."
),
":/file-asym"
,
SLOT
(
openFileDialog
()
)
);
...
...
@@ -881,13 +877,6 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
{
submenu
->
addAction
(
QIcon
(
":/playlist"
),
qtr
(
"Show Playlist"
),
mi
,
SLOT
(
togglePlaylist
()
)
);
}
addDPStaticEntry
(
submenu
,
qtr
(
I_MENU_EXT
),
":/settings"
,
SLOT
(
extendedDialog
()
)
);
addDPStaticEntry
(
submenu
,
qtr
(
I_MENU_INFO
)
,
":/info"
,
SLOT
(
mediaInfoDialog
()
),
"Ctrl+I"
);
if
(
mi
)
{
action
=
submenu
->
addAction
(
QIcon
(
""
),
qtr
(
"Minimal View"
),
mi
,
SLOT
(
toggleMinimalView
()
)
);
action
->
setCheckable
(
true
);
...
...
@@ -902,8 +891,8 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
else
/* We are using the skins interface.
If not, this entry will not show. */
{
addDPStaticEntry
(
submenu
,
qtr
(
"&Preferences..."
),
":/preferences"
,
SLOT
(
prefsDialog
()
),
"Ctrl+P"
);
QMenu
*
tools
=
ToolsMenu
(
submenu
);
submenu
->
addSeparator
();
objects
.
clear
();
varnames
.
clear
();
...
...
modules/gui/qt4/menus.hpp
View file @
3487d61e
...
...
@@ -101,7 +101,7 @@ private:
/* All main Menus */
static
QMenu
*
FileMenu
(
intf_thread_t
*
);
static
QMenu
*
SDMenu
(
intf_thread_t
*
);
static
QMenu
*
ToolsMenu
(
intf_thread_t
*
);
static
QMenu
*
ToolsMenu
(
QMenu
*
);
static
QMenu
*
ViewMenu
(
intf_thread_t
*
,
QMenu
*
,
MainInterface
*
,
bool
,
bool
with
=
true
);
static
QMenu
*
NavigMenu
(
intf_thread_t
*
,
QMenu
*
);
...
...
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