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
luyikei
VLMC
Commits
015a7937
Commit
015a7937
authored
Dec 10, 2009
by
Clement CHAVANCE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creating clip from the preview widget is done
parent
cb97a475
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/GUI/PreviewWidget.cpp
src/GUI/PreviewWidget.cpp
+14
-0
src/GUI/PreviewWidget.h
src/GUI/PreviewWidget.h
+1
-0
No files found.
src/GUI/PreviewWidget.cpp
View file @
015a7937
...
...
@@ -176,3 +176,17 @@ void PreviewWidget::markerStopClicked()
{
m_ui
->
rulerWidget
->
setMarker
(
PreviewRuler
::
STOP
);
}
void
PreviewWidget
::
createNewClipFromMarkers
()
{
Media
*
selectedMedia
=
m_renderer
->
getMedia
();
qint64
beg
=
m_ui
.
rulerWidget
->
getMarker
(
PreviewRuler
::
Start
);
qint64
end
=
m_ui
.
rulerWidget
->
getMarker
(
PreviewRuler
::
Stop
);
beg
=
beg
<
0
?
0
:
beg
;
Clip
*
part
=
new
Clip
(
selectedMedia
,
beg
,
end
);
//Adding the newly created clip to the media
selectedMedia
->
addClip
(
part
);
return
;
}
src/GUI/PreviewWidget.h
View file @
015a7937
...
...
@@ -68,6 +68,7 @@ private slots:
void
endReached
();
void
markerStartClicked
();
void
markerStopClicked
();
void
createNewClipFromMarkers
();
};
#endif // PREVIEWWIDGET_H
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