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
5a4afbeb
Commit
5a4afbeb
authored
Feb 08, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: menus, add VolumeMute/VolumeUp/VolumeDown in the audio menu to match OSX Audio menu.
We still have one more separator than OSX has.
parent
e81539dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
5 deletions
+32
-5
modules/gui/qt4/actions_manager.cpp
modules/gui/qt4/actions_manager.cpp
+15
-0
modules/gui/qt4/actions_manager.hpp
modules/gui/qt4/actions_manager.hpp
+5
-3
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+0
-2
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+12
-0
No files found.
modules/gui/qt4/actions_manager.cpp
View file @
5a4afbeb
...
...
@@ -27,6 +27,7 @@
#endif
#include <vlc_vout.h>
#include <vlc_aout.h>
#include <vlc_keys.h>
#include "actions_manager.hpp"
...
...
@@ -167,4 +168,18 @@ void ActionsManager::frame()
var_SetVoid
(
p_input
,
"frame-next"
);
}
void
ActionsManager
::
toggleMuteAudio
()
{
aout_VolumeMute
(
p_intf
,
NULL
);
}
void
ActionsManager
::
AudioUp
()
{
aout_VolumeUp
(
p_intf
,
1
,
NULL
);
}
void
ActionsManager
::
AudioDown
()
{
aout_VolumeDown
(
p_intf
,
2
,
NULL
);
}
modules/gui/qt4/actions_manager.hpp
View file @
5a4afbeb
...
...
@@ -75,9 +75,10 @@ private:
ActionsManager
(
intf_thread_t
*
_p_i
,
QObject
*
_parent
);
intf_thread_t
*
p_intf
;
protected
slots
:
virtual
void
doAction
(
int
);
public
slots
:
void
toggleMuteAudio
();
void
AudioUp
();
void
AudioDown
();
protected
slots
:
void
play
();
void
fullscreen
();
...
...
@@ -86,6 +87,7 @@ protected slots:
void
record
();
void
frame
();
virtual
void
doAction
(
int
);
};
#endif
...
...
modules/gui/qt4/components/controller_widget.cpp
View file @
5a4afbeb
...
...
@@ -139,8 +139,6 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
else
{
aout_VolumeMute
(
p_intf
,
NULL
);
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
}
e
->
accept
();
return
true
;
...
...
modules/gui/qt4/menus.cpp
View file @
5a4afbeb
...
...
@@ -40,6 +40,7 @@
#include "dialogs_provider.hpp"
/* Dialogs display */
#include "input_manager.hpp"
/* Input Management */
#include "recents.hpp"
/* Recent Items */
#include "actions_manager.hpp"
#include <QMenu>
#include <QMenuBar>
...
...
@@ -493,6 +494,17 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
if
(
current
->
isEmpty
()
)
{
QAction
*
action
=
current
->
addAction
(
qtr
(
"Mute Audio"
),
ActionsManager
::
getInstance
(
p_intf
),
SLOT
(
toggleMuteAudio
()
)
);
action
->
setData
(
true
);
action
=
current
->
addAction
(
qtr
(
"Increase Volume"
),
ActionsManager
::
getInstance
(
p_intf
),
SLOT
(
AudioUp
()
)
);
action
->
setData
(
true
);
action
=
current
->
addAction
(
qtr
(
"Decrease Volume"
),
ActionsManager
::
getInstance
(
p_intf
),
SLOT
(
AudioDown
()
)
);
action
->
setData
(
true
);
current
->
addSeparator
();
ACT_ADD
(
current
,
"visual"
,
qtr
(
"&Visualizations"
)
);
current
->
addSeparator
();
ACT_ADD
(
current
,
"audio-es"
,
qtr
(
"Audio &Track"
)
);
...
...
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