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
8574a659
Commit
8574a659
authored
Aug 31, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Menus: small changes, mainly cosmetic.
parent
f206e051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+15
-10
No files found.
modules/gui/qt4/menus.cpp
View file @
8574a659
...
...
@@ -242,7 +242,7 @@ QMenu *QVLCMenu::PlaylistMenu( MainInterface *mi, intf_thread_t *p_intf )
QMenu
*
menu
=
new
QMenu
();
menu
->
addMenu
(
SDMenu
(
p_intf
)
);
menu
->
addAction
(
QIcon
(
":/pixmaps/vlc_playlist_16px.png"
),
qtr
(
"Show Playlist"
),
mi
,
SLOT
(
p
laylist
()
)
);
qtr
(
"Show Playlist"
),
mi
,
SLOT
(
toggleP
laylist
()
)
);
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
I_PL_LOAD
),
""
,
""
,
openPlaylist
(),
"Ctrl+X"
);
...
...
@@ -285,7 +285,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
if
(
mi
)
{
QAction
*
adv
=
menu
->
addAction
(
qtr
(
"Advanced controls"
),
mi
,
SLOT
(
a
dvanced
()
)
);
mi
,
SLOT
(
toggleA
dvanced
()
)
);
adv
->
setCheckable
(
true
);
if
(
adv_controls_enabled
)
adv
->
setChecked
(
true
);
...
...
@@ -300,7 +300,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
if( visual_selector_enabled ) adv->setChecked( true );
#endif
menu
->
addAction
(
QIcon
(
":/pixmaps/vlc_playlist_16px.png"
),
qtr
(
"Playlist"
),
mi
,
SLOT
(
p
laylist
()
),
qtr
(
"Playlist"
),
mi
,
SLOT
(
toggleP
laylist
()
),
qtr
(
"Ctrl+L"
)
);
}
DP_SADD
(
menu
,
qtr
(
I_MENU_EXT
),
""
,
":/pixmaps/vlc_settings_16px.png"
,
...
...
@@ -487,9 +487,9 @@ QMenu *QVLCMenu::HelpMenu()
i_last_separator = 0;
#define POPUP_PLAY_ENTRIES( menu )\
vlc_value_t val; \
if( p_input ) \
{ \
vlc_value_t val; \
var_Get( p_input, "state", &val ); \
if( val.i_int == PLAYING_S ) \
MIM_SADD( menu, qtr("Pause"), "", ":/pixmaps/vlc_pause_16px.png", \
...
...
@@ -507,10 +507,7 @@ QMenu *QVLCMenu::HelpMenu()
prev() ); \
MIM_SADD( menu, qtr("Next"), "", ":/pixmaps/vlc_next_16px.png", next() );
#define POPUP_STATIC_ENTRIES \
POPUP_PLAY_ENTRIES( menu ); \
\
menu->addSeparator(); \
#define POPUP_STATIC_ENTRIES( menu ) \
QMenu *intfmenu = InterfacesMenu( p_intf, NULL ); \
intfmenu->setTitle( qtr("Interfaces" ) ); \
menu->addMenu( intfmenu ); \
...
...
@@ -581,7 +578,9 @@ void QVLCMenu::AudioPopupMenu( intf_thread_t *p_intf )
/* Navigation stuff, and general menus (open) */
void
QVLCMenu
::
MiscPopupMenu
(
intf_thread_t
*
p_intf
)
{
vlc_value_t
val
;
POPUP_BOILERPLATE
;
if
(
p_input
)
{
vlc_object_yield
(
p_input
);
...
...
@@ -592,8 +591,12 @@ void QVLCMenu::MiscPopupMenu( intf_thread_t *p_intf )
QMenu
*
menu
=
new
QMenu
();
Populate
(
p_intf
,
menu
,
varnames
,
objects
);
menu
->
addSeparator
();
POPUP_STATIC_ENTRIES
;
POPUP_PLAY_ENTRIES
(
menu
);
menu
->
addSeparator
();
POPUP_STATIC_ENTRIES
(
menu
);
p_intf
->
p_sys
->
p_popup_menu
=
menu
;
menu
->
popup
(
QCursor
::
pos
()
);
...
...
@@ -643,7 +646,9 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
QMenu
*
menu
=
new
QMenu
();
Populate
(
p_intf
,
menu
,
varnames
,
objects
);
menu
->
addSeparator
();
POPUP_STATIC_ENTRIES
;
POPUP_PLAY_ENTRIES
(
menu
);
menu
->
addSeparator
();
POPUP_STATIC_ENTRIES
(
menu
);
p_intf
->
p_sys
->
p_popup_menu
=
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