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
2257a1a2
Commit
2257a1a2
authored
Mar 30, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connect the buttons to the actions.
Renamings.
parent
45505b07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+24
-9
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+1
-0
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
2257a1a2
...
...
@@ -1165,32 +1165,34 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
QWidget
(
_parent
)
,
p_intf
(
_p_intf
)
{
QGroupBox
*
AVBox
,
*
subsBox
;
QToolButton
*
moinsAV
,
*
plusAV
;
QToolButton
*
moinsAV
,
*
plusAV
;
QToolButton
*
moinssubs
,
*
plussubs
;
QToolButton
*
moinssubSpeed
,
*
plussubSpeed
;
QToolButton
*
updateButton
;
Q
VBoxLayout
*
vboxLayout
=
new
QVBox
Layout
(
this
);
Q
GridLayout
*
mainLayout
=
new
QGrid
Layout
(
this
);
/* AV sync */
AVBox
=
new
QGroupBox
(
qtr
(
"Audio/Video"
)
);
QGridLayout
*
grid
Layout
=
new
QGridLayout
(
AVBox
);
QGridLayout
*
AV
Layout
=
new
QGridLayout
(
AVBox
);
moinsAV
=
new
QToolButton
;
moinsAV
->
setToolButtonStyle
(
Qt
::
ToolButtonTextOnly
);
moinsAV
->
setAutoRaise
(
true
);
moinsAV
->
setText
(
"-"
);
grid
Layout
->
addWidget
(
moinsAV
,
1
,
0
,
1
,
1
);
AV
Layout
->
addWidget
(
moinsAV
,
1
,
0
,
1
,
1
);
plusAV
=
new
QToolButton
;
plusAV
->
setToolButtonStyle
(
Qt
::
ToolButtonTextOnly
);
plusAV
->
setAutoRaise
(
true
);
plusAV
->
setText
(
"+"
);
grid
Layout
->
addWidget
(
plusAV
,
1
,
2
,
1
,
1
);
AV
Layout
->
addWidget
(
plusAV
,
1
,
2
,
1
,
1
);
QLabel
*
AVLabel
=
new
QLabel
;
AVLabel
->
setText
(
qtr
(
"Advance of audio over video"
)
);
grid
Layout
->
addWidget
(
AVLabel
,
0
,
0
,
1
,
3
);
AV
Layout
->
addWidget
(
AVLabel
,
0
,
0
,
1
,
3
);
AVSpin
=
new
QDoubleSpinBox
;
AVSpin
->
setAlignment
(
Qt
::
AlignRight
|
Qt
::
AlignTrailing
|
Qt
::
AlignVCenter
);
...
...
@@ -1201,10 +1203,11 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
AVSpin
->
setToolTip
(
qtr
(
"A positive value means that
\n
"
"the audio is ahead of the video"
)
);
AVSpin
->
setSuffix
(
"s"
);
grid
Layout
->
addWidget
(
AVSpin
,
1
,
1
,
1
,
1
);
vboxLayout
->
addWidget
(
AVBox
);
AV
Layout
->
addWidget
(
AVSpin
,
1
,
1
,
1
,
1
);
mainLayout
->
addWidget
(
AVBox
,
1
,
0
,
1
,
5
);
/* Subs */
subsBox
=
new
QGroupBox
(
qtr
(
"Subtitles/Video"
)
);
QGridLayout
*
subsLayout
=
new
QGridLayout
(
subsBox
);
...
...
@@ -1260,15 +1263,19 @@ SyncControls::SyncControls( intf_thread_t *_p_intf, QWidget *_parent ) :
subSpeedSpin
->
setSingleStep
(
0.2
);
subsLayout
->
addWidget
(
subSpeedSpin
,
3
,
1
,
1
,
1
);
vboxLayout
->
addWidget
(
subsBox
);
mainLayout
->
addWidget
(
subsBox
,
2
,
0
,
1
,
5
);
/* Various Connects */
CONNECT
(
moinsAV
,
clicked
(),
AVSpin
,
stepDown
()
);
CONNECT
(
plusAV
,
clicked
(),
AVSpin
,
stepUp
()
);
CONNECT
(
moinssubs
,
clicked
(),
subsSpin
,
stepDown
()
);
CONNECT
(
plussubs
,
clicked
(),
subsSpin
,
stepUp
()
);
CONNECT
(
moinssubSpeed
,
clicked
(),
subSpeedSpin
,
stepDown
()
);
CONNECT
(
plussubSpeed
,
clicked
(),
subSpeedSpin
,
stepUp
()
);
CONNECT
(
AVSpin
,
valueChanged
(
double
),
this
,
advanceAudio
(
double
)
)
;
CONNECT
(
subsSpin
,
valueChanged
(
double
),
this
,
advanceSubs
(
double
)
)
;
CONNECT
(
subSpeedSpin
,
alueChanged
(
double
),
this
,
adjustSubsSpeed
(
double
)
);
/* Set it */
update
();
...
...
@@ -1309,6 +1316,14 @@ void SyncControls::advanceSubs( double f_advance )
}
}
void
SyncControls
::
adjustSubsSpeed
(
double
f_fps
)
{
if
(
THEMIM
->
getInput
()
)
{
var_SetFloat
(
THEMIM
->
getInput
(),
"sub-fps"
,
f_fps
);
}
}
/**********************************************************************
* Video filters / Adjust
**********************************************************************/
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
2257a1a2
...
...
@@ -166,6 +166,7 @@ public slots:
private
slots
:
void
advanceAudio
(
double
);
void
advanceSubs
(
double
);
void
adjustSubsSpeed
(
double
);
};
#endif
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