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
b7cf7dda
Commit
b7cf7dda
authored
Aug 16, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, menus: std::vector -> QVector
parent
cfd14b54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
32 deletions
+32
-32
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+1
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+29
-29
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+2
-2
No files found.
modules/gui/qt4/components/preferences_widgets.hpp
View file @
b7cf7dda
...
...
@@ -416,7 +416,7 @@ public:
virtual ~StringConfigControl();
virtual QString getValue();
private:
std::v
ector<ModuleCheckBox> checkboxes;
QV
ector<ModuleCheckBox> checkboxes;
QLineEdit *text;
private slot:
void OnUpdate();
...
...
modules/gui/qt4/menus.cpp
View file @
b7cf7dda
...
...
@@ -200,15 +200,15 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
/*****************************************************************************
* Definitions of variables for the dynamic menus
*****************************************************************************/
#define PUSH_VAR( var ) varnames.
push_back
( var ); \
objects.
push_back
( VLC_OBJECT(p_object) )
#define PUSH_VAR( var ) varnames.
append
( var ); \
objects.
append
( VLC_OBJECT(p_object) )
#define PUSH_INPUTVAR( var ) varnames.
push_back
( var ); \
objects.
push_back
( VLC_OBJECT(p_input) );
#define PUSH_INPUTVAR( var ) varnames.
append
( var ); \
objects.
append
( VLC_OBJECT(p_input) );
static
int
InputAutoMenuBuilder
(
input_thread_t
*
p_object
,
v
ector
<
vlc_object_t
*>
&
objects
,
v
ector
<
const
char
*>
&
varnames
)
QV
ector
<
vlc_object_t
*>
&
objects
,
QV
ector
<
const
char
*>
&
varnames
)
{
PUSH_VAR
(
"bookmark"
);
PUSH_VAR
(
"title"
);
...
...
@@ -220,8 +220,8 @@ static int InputAutoMenuBuilder( input_thread_t *p_object,
static
int
VideoAutoMenuBuilder
(
vout_thread_t
*
p_object
,
input_thread_t
*
p_input
,
v
ector
<
vlc_object_t
*>
&
objects
,
v
ector
<
const
char
*>
&
varnames
)
QV
ector
<
vlc_object_t
*>
&
objects
,
QV
ector
<
const
char
*>
&
varnames
)
{
PUSH_INPUTVAR
(
"video-es"
);
PUSH_INPUTVAR
(
"spu-es"
);
...
...
@@ -245,8 +245,8 @@ static int VideoAutoMenuBuilder( vout_thread_t *p_object,
static
int
AudioAutoMenuBuilder
(
audio_output_t
*
p_object
,
input_thread_t
*
p_input
,
v
ector
<
vlc_object_t
*>
&
objects
,
v
ector
<
const
char
*>
&
varnames
)
QV
ector
<
vlc_object_t
*>
&
objects
,
QV
ector
<
const
char
*>
&
varnames
)
{
PUSH_INPUTVAR
(
"audio-es"
);
PUSH_VAR
(
"audio-channels"
);
...
...
@@ -528,10 +528,10 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
**/
QMenu
*
QVLCMenu
::
InterfacesMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
v
ector
<
vlc_object_t
*>
objects
;
v
ector
<
const
char
*>
varnames
;
varnames
.
push_back
(
"intf-add"
);
objects
.
push_back
(
VLC_OBJECT
(
p_intf
)
);
QV
ector
<
vlc_object_t
*>
objects
;
QV
ector
<
const
char
*>
varnames
;
varnames
.
append
(
"intf-add"
);
objects
.
append
(
VLC_OBJECT
(
p_intf
)
);
return
Populate
(
p_intf
,
current
,
varnames
,
objects
);
}
...
...
@@ -565,8 +565,8 @@ void QVLCMenu::ExtensionsMenu( intf_thread_t *p_intf, QMenu *extMenu )
**/
QMenu
*
QVLCMenu
::
AudioMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
v
ector
<
vlc_object_t
*>
objects
;
v
ector
<
const
char
*>
varnames
;
QV
ector
<
vlc_object_t
*>
objects
;
QV
ector
<
const
char
*>
varnames
;
audio_output_t
*
p_aout
;
input_thread_t
*
p_input
;
...
...
@@ -624,8 +624,8 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current, bool b_subtit
{
vout_thread_t
*
p_vout
;
input_thread_t
*
p_input
;
v
ector
<
vlc_object_t
*>
objects
;
v
ector
<
const
char
*>
varnames
;
QV
ector
<
vlc_object_t
*>
objects
;
QV
ector
<
const
char
*>
varnames
;
if
(
current
->
isEmpty
()
)
{
...
...
@@ -702,8 +702,8 @@ QMenu *QVLCMenu::RebuildNavigMenu( intf_thread_t *p_intf, QMenu *menu )
{
/* */
input_thread_t
*
p_object
;
v
ector
<
vlc_object_t
*>
objects
;
v
ector
<
const
char
*>
varnames
;
QV
ector
<
vlc_object_t
*>
objects
;
QV
ector
<
const
char
*>
varnames
;
/* Get the input and hold it */
p_object
=
THEMIM
->
getInput
();
...
...
@@ -748,8 +748,8 @@ QMenu *QVLCMenu::HelpMenu( QWidget *parent )
delete menu; menu = NULL; \
if( !show ) \
return; \
v
ector<vlc_object_t *> objects; \
v
ector<const char *> varnames; \
QV
ector<vlc_object_t *> objects; \
QV
ector<const char *> varnames; \
input_thread_t *p_input = THEMIM->getInput();
#define CREATE_POPUP \
...
...
@@ -914,7 +914,7 @@ void QVLCMenu::MiscPopupMenu( intf_thread_t *p_intf, bool show )
if
(
p_input
)
{
varnames
.
push_back
(
"audio-es"
);
varnames
.
append
(
"audio-es"
);
InputAutoMenuBuilder
(
p_input
,
objects
,
varnames
);
menu
->
addSeparator
();
}
...
...
@@ -1020,13 +1020,13 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
vlc_object_t
*
p_object
=
p_intf
->
p_parent
;
objects
.
clear
();
varnames
.
clear
();
objects
.
push_back
(
p_object
);
varnames
.
push_back
(
"intf-skins"
);
objects
.
append
(
p_object
);
varnames
.
append
(
"intf-skins"
);
Populate
(
p_intf
,
submenu
,
varnames
,
objects
);
objects
.
clear
();
varnames
.
clear
();
objects
.
push_back
(
p_object
);
varnames
.
push_back
(
"intf-skins-interactive"
);
objects
.
append
(
p_object
);
varnames
.
append
(
"intf-skins-interactive"
);
Populate
(
p_intf
,
submenu
,
varnames
,
objects
);
}
else
...
...
@@ -1105,8 +1105,8 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
*************************************************************************/
QMenu
*
QVLCMenu
::
Populate
(
intf_thread_t
*
p_intf
,
QMenu
*
current
,
v
ector
<
const
char
*>
&
varnames
,
v
ector
<
vlc_object_t
*>
&
objects
)
QV
ector
<
const
char
*>
&
varnames
,
QV
ector
<
vlc_object_t
*>
&
objects
)
{
QMenu
*
menu
=
current
;
assert
(
menu
);
...
...
modules/gui/qt4/menus.hpp
View file @
b7cf7dda
...
...
@@ -30,7 +30,7 @@
#include <QObject>
#include <QAction>
#include <QMenu>
#include <
v
ector>
#include <
QV
ector>
using
namespace
std
;
...
...
@@ -131,7 +131,7 @@ private:
/* Generic automenu methods */
static
QMenu
*
Populate
(
intf_thread_t
*
,
QMenu
*
current
,
vector
<
const
char
*>&
,
v
ector
<
vlc_object_t
*>&
);
QVector
<
const
char
*>&
,
QV
ector
<
vlc_object_t
*>&
);
static
void
CreateAndConnect
(
QMenu
*
,
const
char
*
,
const
QString
&
,
const
QString
&
,
int
,
vlc_object_t
*
,
...
...
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