Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a28bdff5
Commit
a28bdff5
authored
Jun 17, 2008
by
Jean-Philippe Andre
Committed by
Jean-Baptiste Kempf
Jun 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt menus: use addDPStaticEntry and add a static Subtitles Loader in popup
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
5dd029ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+13
-6
No files found.
modules/gui/qt4/menus.cpp
View file @
a28bdff5
...
...
@@ -479,9 +479,8 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
QMenu
*
submenu
=
new
QMenu
(
qtr
(
"&Subtitles Track"
),
current
);
action
=
current
->
addMenu
(
submenu
);
action
->
setData
(
"spu-es"
);
action
=
submenu
->
addAction
(
qfu
(
"Load File..."
),
THEDP
,
SLOT
(
loadSubtitlesFile
()
)
);
action
->
setData
(
"_static_"
);
addDPStaticEntry
(
submenu
,
qtr
(
"Load File..."
),
""
,
""
,
SLOT
(
loadSubtitlesFile
()
)
);
ACT_ADD
(
current
,
"fullscreen"
,
qtr
(
"Toggle &Fullscreen"
)
);
ACT_ADD
(
current
,
"zoom"
,
qtr
(
"&Zoom"
)
);
...
...
@@ -608,8 +607,6 @@ QMenu *QVLCMenu::HelpMenu( QMenu *current )
return
menu
;
}
#undef ACT_ADD
/*****************************************************************************
* Popup menus - Right Click menus *
*****************************************************************************/
...
...
@@ -805,10 +802,18 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
action
->
setEnabled
(
false
);
/* Video menu */
submenu
=
new
QMenu
();
ACT_ADD
(
submenu
,
"video-es"
,
qtr
(
"Video Track"
)
);
QMenu
*
subsubmenu
=
new
QMenu
(
qtr
(
"&Subtitles Track"
),
submenu
);
addDPStaticEntry
(
subsubmenu
,
qtr
(
"Load File..."
),
""
,
""
,
SLOT
(
loadSubtitlesFile
()
)
);
action
=
submenu
->
addMenu
(
subsubmenu
);
action
->
setData
(
"spu-es"
);
VideoAutoMenuBuilder
(
p_vout
,
p_input
,
objects
,
varnames
);
if
(
p_vout
)
vlc_object_release
(
p_vout
);
submenu
=
Populate
(
p_intf
,
NULL
,
varnames
,
objects
);
Populate
(
p_intf
,
submenu
,
varnames
,
objects
);
varnames
.
clear
();
objects
.
clear
();
action
=
menu
->
addMenu
(
submenu
);
action
->
setText
(
qtr
(
"Video"
)
);
...
...
@@ -854,6 +859,8 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
}
}
#undef ACT_ADD
/************************************************************************
* Systray Menu *
************************************************************************/
...
...
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