Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
45505b07
Commit
45505b07
authored
Mar 30, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subs Speed Rate controls.
parent
3ccc2863
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+34
-1
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+3
-0
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
45505b07
...
...
@@ -1168,8 +1168,8 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
QToolButton
*
moinsAV
,
*
plusAV
;
QToolButton
*
moinssubs
,
*
plussubs
;
QToolButton
*
moinssubSpeed
,
*
plussubSpeed
;
int64_t
i_delay
;
QVBoxLayout
*
vboxLayout
=
new
QVBoxLayout
(
this
);
...
...
@@ -1234,6 +1234,32 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
"the subtitles are ahead of the video"
)
);
subsSpin
->
setSuffix
(
"s"
);
subsLayout
->
addWidget
(
subsSpin
,
1
,
1
,
1
,
1
);
moinssubSpeed
=
new
QToolButton
;
moinssubSpeed
->
setToolButtonStyle
(
Qt
::
ToolButtonTextOnly
);
moinssubSpeed
->
setAutoRaise
(
true
);
moinssubSpeed
->
setText
(
"-"
);
subsLayout
->
addWidget
(
moinssubSpeed
,
3
,
0
,
1
,
1
);
plussubSpeed
=
new
QToolButton
;
plussubSpeed
->
setToolButtonStyle
(
Qt
::
ToolButtonTextOnly
);
plussubSpeed
->
setAutoRaise
(
true
);
plussubSpeed
->
setText
(
"+"
);
subsLayout
->
addWidget
(
plussubSpeed
,
3
,
2
,
1
,
1
);
QLabel
*
subSpeedLabel
=
new
QLabel
;
subSpeedLabel
->
setText
(
qtr
(
"Speed of the subtitles"
)
);
subsLayout
->
addWidget
(
subSpeedLabel
,
2
,
0
,
1
,
3
);
subSpeedSpin
=
new
QDoubleSpinBox
;
subSpeedSpin
->
setAlignment
(
Qt
::
AlignRight
|
Qt
::
AlignTrailing
|
Qt
::
AlignVCenter
);
subSpeedSpin
->
setDecimals
(
3
);
subSpeedSpin
->
setMinimum
(
1
);
subSpeedSpin
->
setMaximum
(
100
);
subSpeedSpin
->
setSingleStep
(
0.2
);
subsLayout
->
addWidget
(
subSpeedSpin
,
3
,
1
,
1
,
1
);
vboxLayout
->
addWidget
(
subsBox
);
/* Various Connects */
...
...
@@ -1245,12 +1271,19 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
CONNECT
(
subsSpin
,
valueChanged
(
double
),
this
,
advanceSubs
(
double
)
)
;
/* Set it */
update
();
}
void
SyncControls
::
update
()
{
int64_t
i_delay
;
if
(
THEMIM
->
getInput
()
)
{
i_delay
=
var_GetTime
(
THEMIM
->
getInput
(),
"spu-delay"
);
AVSpin
->
setValue
(
(
(
double
)
i_delay
)
/
1000000
);
i_delay
=
var_GetTime
(
THEMIM
->
getInput
(),
"audio-delay"
);
subsSpin
->
setValue
(
(
(
double
)
i_delay
)
/
1000000
);
subSpeedSpin
->
setValue
(
var_GetFloat
(
THEMIM
->
getInput
(),
"sub-fps"
)
);
}
}
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
45505b07
...
...
@@ -160,6 +160,9 @@ private:
intf_thread_t
*
p_intf
;
QDoubleSpinBox
*
AVSpin
;
QDoubleSpinBox
*
subsSpin
;
QDoubleSpinBox
*
subSpeedSpin
;
public
slots
:
void
update
();
private
slots
:
void
advanceAudio
(
double
);
void
advanceSubs
(
double
);
...
...
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