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
66dbf82c
Commit
66dbf82c
authored
Nov 11, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - A to B Loop implementation.
parent
34c9ee45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+36
-2
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+3
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
66dbf82c
...
...
@@ -237,6 +237,10 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
ABButton
->
setIconSize
(
QSize
(
20
,
20
)
);
advLayout
->
addWidget
(
ABButton
);
BUTTON_SET_ACT
(
ABButton
,
"AB"
,
qtr
(
"A to B"
),
fromAtoB
()
);
timeA
=
0
;
timeB
=
0
;
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
AtoBLoop
(
float
,
int
,
int
)
);
//FIXME Frame by frame function
frameButton
=
new
QPushButton
(
"Fr"
);
...
...
@@ -282,10 +286,40 @@ void AdvControlsWidget::snapshot()
if
(
p_vout
)
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
}
void
AdvControlsWidget
::
frame
(){}
void
AdvControlsWidget
::
fromAtoB
(){}
void
AdvControlsWidget
::
frame
()
{
}
void
AdvControlsWidget
::
fromAtoB
()
{
if
(
!
timeA
)
{
timeA
=
var_GetTime
(
THEMIM
->
getInput
(),
"time"
);
ABButton
->
setText
(
"A->..."
);
return
;
}
if
(
!
timeB
)
{
timeB
=
var_GetTime
(
THEMIM
->
getInput
(),
"time"
);
var_SetTime
(
THEMIM
->
getInput
(),
"time"
,
timeA
);
ABButton
->
setText
(
"A<=>B"
);
return
;
}
timeA
=
0
;
timeB
=
0
;
ABButton
->
setText
(
"AB"
);
}
void
AdvControlsWidget
::
record
(){}
void
AdvControlsWidget
::
AtoBLoop
(
float
f_pos
,
int
i_time
,
int
i_length
)
{
if
(
timeB
)
{
if
(
i_time
==
(
int
)(
timeB
/
1000000
)
)
var_SetTime
(
THEMIM
->
getInput
(),
"time"
,
timeA
);
}
}
/*****************************
* DA Control Widget !
*****************************/
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
66dbf82c
...
...
@@ -125,11 +125,14 @@ private:
QPushButton
*
recordButton
,
*
ABButton
;
QPushButton
*
snapshotButton
,
*
frameButton
;
mtime_t
timeA
,
timeB
;
private
slots
:
void
snapshot
();
void
frame
();
void
fromAtoB
();
void
record
();
void
AtoBLoop
(
float
,
int
,
int
);
};
/* Button Bar */
...
...
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