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
8d5ee287
Commit
8d5ee287
authored
Feb 22, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: provide a way to jump forward and backward programatically without going through hotkeys.
parent
87bbbc45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+22
-0
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+3
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
8d5ee287
...
...
@@ -791,6 +791,28 @@ void InputManager::setRate( int new_rate )
var_SetInteger
(
p_input
,
"rate"
,
new_rate
);
}
void
InputManager
::
jumpFwd
()
{
int
i_interval
=
config_GetInt
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
vlc_value_t
val
;
val
.
i_time
=
(
mtime_t
)(
i_interval
)
*
1000000L
;
var_Set
(
p_input
,
"time-offset"
,
val
);
}
}
void
InputManager
::
jumpBwd
()
{
int
i_interval
=
config_GetInt
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
vlc_value_t
val
;
val
.
i_time
=
-
1
*
(
mtime_t
)(
i_interval
)
*
1000000L
;
var_Set
(
p_input
,
"time-offset"
,
val
);
}
}
void
InputManager
::
setAtoB
()
{
if
(
!
timeA
)
...
...
modules/gui/qt4/input_manager.hpp
View file @
8d5ee287
...
...
@@ -147,6 +147,9 @@ public slots:
void
faster
();
void
normalRate
();
void
setRate
(
int
);
/* Jumping */
void
jumpFwd
();
void
jumpBwd
();
/* Menus */
void
sectionNext
();
void
sectionPrev
();
...
...
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