Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
86eb9083
Commit
86eb9083
authored
May 28, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When the workflow is beeing rendered as a preview, the slider moves accordingly
parent
c56fd547
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
src/Workflow/MainWorkflow.cpp
src/Workflow/MainWorkflow.cpp
+2
-0
src/Workflow/MainWorkflow.h
src/Workflow/MainWorkflow.h
+7
-0
src/gui/RenderPreviewWidget.cpp
src/gui/RenderPreviewWidget.cpp
+7
-1
src/gui/RenderPreviewWidget.h
src/gui/RenderPreviewWidget.h
+1
-0
No files found.
src/Workflow/MainWorkflow.cpp
View file @
86eb9083
...
...
@@ -54,6 +54,7 @@ unsigned char* MainWorkflow::getOutput()
unsigned
char
*
ret
=
m_tracks
[
0
]
->
getOutput
(
m_currentFrame
);
++
m_currentFrame
;
emit
frameChanged
(
m_currentFrame
);
emit
positionChanged
(
(
float
)
m_currentFrame
/
(
float
)
m_length
);
return
ret
;
}
...
...
@@ -64,6 +65,7 @@ void MainWorkflow::setPosition( float pos )
m_tracks
[
0
]
->
setPosition
(
pos
);
m_currentFrame
=
frame
;
emit
frameChanged
(
frame
);
//Do not emit a signal for the RenderWidget, since it's the one that triggered that call...
}
qint64
MainWorkflow
::
getLength
()
const
...
...
src/Workflow/MainWorkflow.h
View file @
86eb9083
...
...
@@ -61,7 +61,14 @@ class MainWorkflow : public QObject
qint64
m_length
;
signals:
/**
* \brief Used to notify a change to the timeline cursor
*/
void
frameChanged
(
qint64
currentFrame
);
/**
* \brief Used to nofify a change to the PreviewWidget
*/
void
positionChanged
(
float
pos
);
};
#endif // MAINWORKFLOW_H
src/gui/RenderPreviewWidget.cpp
View file @
86eb9083
...
...
@@ -50,6 +50,7 @@ RenderPreviewWidget::RenderPreviewWidget( MainWorkflow* mainWorkflow, QWidget* r
connect
(
m_mediaPlayer
,
SIGNAL
(
playing
()
),
this
,
SLOT
(
__videoPlaying
()
)
);
connect
(
m_mediaPlayer
,
SIGNAL
(
paused
()
),
this
,
SLOT
(
__videoPaused
()
)
);
connect
(
m_mainWorkflow
,
SIGNAL
(
positionChanged
(
float
)
),
this
,
SLOT
(
__positionChanged
(
float
)
)
);
}
...
...
@@ -114,7 +115,12 @@ void RenderPreviewWidget::__endReached()
void
RenderPreviewWidget
::
__positionChanged
()
{
qDebug
()
<<
"RenderPreviewWidget::__positionChanged: Unimplemented"
;
qFatal
(
"This should never be used ! Get out of here !"
);
}
void
RenderPreviewWidget
::
__positionChanged
(
float
pos
)
{
emit
positionChanged
(
pos
);
}
void
RenderPreviewWidget
::
__videoPaused
()
...
...
src/gui/RenderPreviewWidget.h
View file @
86eb9083
...
...
@@ -60,6 +60,7 @@ class RenderPreviewWidget : public GenericPreviewWidget
public
slots
:
void
__positionChanged
();
void
__positionChanged
(
float
pos
);
void
__videoPaused
();
void
__videoPlaying
();
void
__endReached
();
...
...
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