Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
eef168a3
Commit
eef168a3
authored
Feb 28, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add UI for play-and-exit activation. Just a menu for now.
Close partly #2237
parent
0ba671da
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+5
-0
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+8
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
eef168a3
...
...
@@ -983,6 +983,11 @@ void MainInputManager::togglePlayPause()
getIM
()
->
togglePlayPause
();
}
void
MainInputManager
::
activatePlayQuit
(
bool
b_exit
)
{
var_SetBool
(
THEPL
,
"play-and-exit"
,
b_exit
);
}
/* Static callbacks for MIM */
static
int
PLItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
...
...
modules/gui/qt4/input_manager.hpp
View file @
eef168a3
...
...
@@ -237,6 +237,7 @@ public slots:
void
stop
();
void
next
();
void
prev
();
void
activatePlayQuit
(
bool
);
signals:
void
inputChanged
(
input_thread_t
*
);
...
...
modules/gui/qt4/menus.cpp
View file @
eef168a3
...
...
@@ -432,6 +432,14 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
if
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
)
action
->
setChecked
(
true
);
if
(
with_intf
)
// I don't want to manage consistency between menus, so no popup-menu
{
action
=
menu
->
addAction
(
qtr
(
"Quit after Playback"
)
);
action
->
setCheckable
(
true
);
CONNECT
(
action
,
triggered
(
bool
),
THEMIM
,
activatePlayQuit
(
bool
)
);
}
#if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ),
mi, SLOT( visual() ) );
...
...
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