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
d1ceadaf
Commit
d1ceadaf
authored
Feb 20, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt menus: add faster/slower/normal rate
parent
a8291189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+27
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
d1ceadaf
...
...
@@ -721,9 +721,12 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu,
intf_thread_t
*
p_intf
,
input_thread_t
*
p_input
)
{
QAction
*
action
;
/* Play or Pause action and icon */
if
(
!
p_input
||
var_GetInteger
(
p_input
,
"state"
)
!=
PLAYING_S
)
{
QAction
*
action
=
menu
->
addAction
(
qtr
(
"Play"
),
action
=
menu
->
addAction
(
qtr
(
"Play"
),
ActionsManager
::
getInstance
(
p_intf
),
SLOT
(
play
()
)
);
action
->
setIcon
(
QIcon
(
":/play"
)
);
}
...
...
@@ -733,8 +736,24 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu,
":/pause"
,
SLOT
(
togglePlayPause
()
)
);
}
/* Stop */
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Stop"
),
":/stop"
,
SLOT
(
stop
()
)
);
/* Faster/Slower */
action
=
menu
->
addAction
(
qtr
(
"Faster"
),
THEMIM
->
getIM
(),
SLOT
(
faster
()
)
);
action
->
setIcon
(
QIcon
(
":/faster"
)
);
menu
->
addAction
(
qtr
(
"Normal Speed"
),
THEMIM
->
getIM
(),
SLOT
(
normalRate
()
)
);
action
=
menu
->
addAction
(
qtr
(
"Slower"
),
THEMIM
->
getIM
(),
SLOT
(
slower
()
)
);
action
->
setIcon
(
QIcon
(
":/slower"
)
);
}
void
QVLCMenu
::
PopupMenuPlaylistControlEntries
(
QMenu
*
menu
,
intf_thread_t
*
p_intf
,
input_thread_t
*
p_input
)
{
/* Next / Previous */
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Previous"
),
":/previous"
,
SLOT
(
prev
()
)
);
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Next"
),
...
...
@@ -822,6 +841,9 @@ void QVLCMenu::MiscPopupMenu( intf_thread_t *p_intf )
menu
->
addSeparator
();
PopupMenuControlEntries
(
menu
,
p_intf
,
p_input
);
menu
->
addSeparator
();
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
,
p_input
);
menu
->
addSeparator
();
PopupMenuStaticEntries
(
menu
);
...
...
@@ -850,6 +872,9 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
PopupMenuControlEntries
(
menu
,
p_intf
,
p_input
);
menu
->
addSeparator
();
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
,
p_input
);
menu
->
addSeparator
();
if
(
p_input
)
{
vout_thread_t
*
p_vout
=
THEMIM
->
getVout
();
...
...
@@ -989,6 +1014,7 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
sysMenu
->
addSeparator
();
PopupMenuControlEntries
(
sysMenu
,
p_intf
,
p_input
);
PopupMenuPlaylistControlEntries
(
sysMenu
,
p_intf
,
p_input
);
sysMenu
->
addSeparator
();
addDPStaticEntry
(
sysMenu
,
qtr
(
"&Open Media"
),
...
...
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