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
b5416045
Commit
b5416045
authored
Apr 19, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Add entries to the popupMenu.
parent
06e1acc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+3
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+7
-6
No files found.
modules/gui/qt4/main_interface.cpp
View file @
b5416045
...
...
@@ -621,6 +621,7 @@ void MainInterface::stop()
{
THEMIM
->
stop
();
}
void
MainInterface
::
play
()
{
if
(
playlist_IsEmpty
(
THEPL
)
)
...
...
@@ -632,10 +633,12 @@ void MainInterface::play()
}
THEMIM
->
togglePlayPause
();
}
void
MainInterface
::
prev
()
{
THEMIM
->
prev
();
}
void
MainInterface
::
next
()
{
THEMIM
->
next
();
...
...
modules/gui/qt4/menus.cpp
View file @
b5416045
...
...
@@ -165,7 +165,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf,
bool
playlist
,
bool
adv_controls_enabled
,
bool
visual_selector_enabled
)
{
#ifndef WIN32
#ifndef WIN32
/* Ugly klugde
* Remove SIGCHLD from the ignored signal the time to initialise
* Qt because it call gconf to get the icon theme */
...
...
@@ -195,7 +195,6 @@ void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf,
QMenu
*
QVLCMenu
::
FileMenu
()
{
QMenu
*
menu
=
new
QMenu
();
/* DP_SADD( qtr("Quick &Open File...") , "", "", simpleOpenDialog() );*/
DP_SADD
(
qtr
(
"Open &File..."
),
""
,
""
,
openFileDialog
(),
"Ctrl+O"
);
DP_SADD
(
qtr
(
"Open &Disc..."
),
""
,
""
,
openDiscDialog
(),
"Ctrl+D"
);
DP_SADD
(
qtr
(
"Open &Network..."
),
""
,
""
,
openNetDialog
(),
"Ctrl+N"
);
...
...
@@ -416,9 +415,6 @@ QMenu *QVLCMenu::HelpMenu()
#define POPUP_STATIC_ENTRIES \
vlc_value_t val; \
MIM_SADD( qtr("Stop"), "", "", stop() ); \
MIM_SADD( qtr("Previous"), "", "", prev() ); \
MIM_SADD( qtr("Next"), "", "", next() ); \
if( p_input ) \
{ \
var_Get( p_input, "state", &val ); \
...
...
@@ -428,8 +424,12 @@ QMenu *QVLCMenu::HelpMenu()
MIM_SADD( qtr("Pause"), "", "", togglePlayPause() ) \
} \
else if( THEPL->items.i_size && THEPL->i_enabled ) \
MIM_SADD( qtr("Play"), "", "", togglePlayPause() )
\
MIM_SADD( qtr("Play"), "", "", togglePlayPause() )
;
\
\
MIM_SADD( qtr("Stop"), "", "", stop() ); \
MIM_SADD( qtr("Previous"), "", "", prev() ); \
MIM_SADD( qtr("Next"), "", "", next() ); \
menu->addSeparator(); \
QMenu *intfmenu = InterfacesMenu( p_intf, NULL ); \
intfmenu->setTitle( qtr("Interfaces" ) ); \
menu->addMenu( intfmenu ); \
...
...
@@ -437,6 +437,7 @@ QMenu *QVLCMenu::HelpMenu()
QMenu *toolsmenu = ToolsMenu( p_intf, NULL, false, false ); \
toolsmenu->setTitle( qtr("Tools" ) ); \
menu->addMenu( toolsmenu ); \
DP_SADD( qtr("Quit"), "", "", quit() , NULL );
void
QVLCMenu
::
VideoPopupMenu
(
intf_thread_t
*
p_intf
)
{
...
...
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