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
d65b41f4
Commit
d65b41f4
authored
Aug 15, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix the postprocessing menu
Close #11613
parent
004213d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+33
-2
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+3
-0
No files found.
modules/gui/qt4/menus.cpp
View file @
d65b41f4
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
#include "util/qmenuview.hpp"
/* Simple Playlist menu */
#include "util/qmenuview.hpp"
/* Simple Playlist menu */
#include "components/playlist/playlist_model.hpp"
/* PLModel getter */
#include "components/playlist/playlist_model.hpp"
/* PLModel getter */
#include "components/playlist/standardpanel.hpp"
/* PLView getter */
#include "components/playlist/standardpanel.hpp"
/* PLView getter */
#include "components/extended_panels.hpp"
#include <QMenu>
#include <QMenu>
#include <QMenuBar>
#include <QMenuBar>
...
@@ -83,6 +84,7 @@ static QActionGroup *currentGroup;
...
@@ -83,6 +84,7 @@ static QActionGroup *currentGroup;
QMenu
*
VLCMenuBar
::
recentsMenu
=
NULL
;
QMenu
*
VLCMenuBar
::
recentsMenu
=
NULL
;
QMenu
*
VLCMenuBar
::
audioDeviceMenu
=
NULL
;
QMenu
*
VLCMenuBar
::
audioDeviceMenu
=
NULL
;
QMenu
*
VLCMenuBar
::
ppMenu
=
NULL
;
/**
/**
* @brief Add static entries to DP in menus
* @brief Add static entries to DP in menus
...
@@ -247,7 +249,8 @@ static int VideoAutoMenuBuilder( playlist_t *pl, input_thread_t *p_input,
...
@@ -247,7 +249,8 @@ static int VideoAutoMenuBuilder( playlist_t *pl, input_thread_t *p_input,
PUSH_VAR
(
"crop"
);
PUSH_VAR
(
"crop"
);
PUSH_VAR
(
"deinterlace"
);
PUSH_VAR
(
"deinterlace"
);
PUSH_VAR
(
"deinterlace-mode"
);
PUSH_VAR
(
"deinterlace-mode"
);
PUSH_VAR
(
"postprocess"
);
VLCMenuBar
::
ppMenu
->
setEnabled
(
p_object
!=
NULL
);
if
(
p_object
)
if
(
p_object
)
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
...
@@ -684,7 +687,8 @@ QMenu *VLCMenuBar::VideoMenu( intf_thread_t *p_intf, QMenu *current )
...
@@ -684,7 +687,8 @@ QMenu *VLCMenuBar::VideoMenu( intf_thread_t *p_intf, QMenu *current )
/* Rendering modifiers */
/* Rendering modifiers */
addActionWithSubmenu
(
current
,
"deinterlace"
,
qtr
(
"&Deinterlace"
)
);
addActionWithSubmenu
(
current
,
"deinterlace"
,
qtr
(
"&Deinterlace"
)
);
addActionWithSubmenu
(
current
,
"deinterlace-mode"
,
qtr
(
"&Deinterlace mode"
)
);
addActionWithSubmenu
(
current
,
"deinterlace-mode"
,
qtr
(
"&Deinterlace mode"
)
);
addActionWithSubmenu
(
current
,
"postprocess"
,
qtr
(
"&Post processing"
)
);
ppMenu
=
PPMenu
(
p_intf
);
current
->
addMenu
(
ppMenu
);
current
->
addSeparator
();
current
->
addSeparator
();
/* Other actions */
/* Other actions */
...
@@ -1656,3 +1660,30 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
...
@@ -1656,3 +1660,30 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
}
}
}
}
}
}
QMenu
*
VLCMenuBar
::
PPMenu
(
intf_thread_t
*
p_intf
)
{
int
i_q
=
ExtVideo
::
getPostprocessing
(
p_intf
);
QMenu
*
submenu
=
new
QMenu
(
"&Post processing"
);
QActionGroup
*
actionGroup
=
new
QActionGroup
(
submenu
);
QAction
*
action
;
#define ADD_PP_ACTION( text, value ) \
action = new QAction( qtr(text), submenu ); \
action->setData( value ); \
action->setCheckable(true); \
if( value == i_q ) action->setChecked( true ); \
submenu->addAction( action ); \
actionGroup->addAction( action );
ADD_PP_ACTION
(
"Disable"
,
-
1
);
submenu
->
addSeparator
();
ADD_PP_ACTION
(
"Lowest"
,
1
);
ADD_PP_ACTION
(
"Middle"
,
3
);
ADD_PP_ACTION
(
"Highest"
,
6
);
CONNECT
(
actionGroup
,
triggered
(
QAction
*
),
ActionsManager
::
getInstance
(
p_intf
),
PPaction
(
QAction
*
)
);
return
submenu
;
}
modules/gui/qt4/menus.hpp
View file @
d65b41f4
...
@@ -99,6 +99,8 @@ public:
...
@@ -99,6 +99,8 @@ public:
};
};
Q_DECLARE_FLAGS
(
actionflags
,
actionflag
)
Q_DECLARE_FLAGS
(
actionflags
,
actionflag
)
static
QMenu
*
ppMenu
;
private:
private:
/* All main Menus */
/* All main Menus */
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
,
MainInterface
*
mi
=
NULL
);
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
,
MainInterface
*
mi
=
NULL
);
...
@@ -133,6 +135,7 @@ private:
...
@@ -133,6 +135,7 @@ private:
}
}
static
QMenu
*
HelpMenu
(
QWidget
*
);
static
QMenu
*
HelpMenu
(
QWidget
*
);
static
QMenu
*
PPMenu
(
intf_thread_t
*
p_intf
);
/* Popups Menus */
/* Popups Menus */
static
void
PopupMenuStaticEntries
(
QMenu
*
menu
);
static
void
PopupMenuStaticEntries
(
QMenu
*
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