Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
4df1f424
Commit
4df1f424
authored
Jul 16, 2021
by
Jean-Baptiste Mardelle
Browse files
Timeremap: make it work with clip not starting at 0 and adjust view on clip resize
parent
8ac4374b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/dialogs/timeremap.cpp
View file @
4df1f424
This diff is collapsed.
Click to expand it.
src/dialogs/timeremap.h
View file @
4df1f424
...
...
@@ -54,6 +54,8 @@ public:
int
position
()
const
;
int
getKeyframePosition
()
const
;
int
remapDuration
()
const
;
int
remapMax
()
const
;
bool
movingKeyframe
()
const
;
void
refreshOnDurationChanged
(
int
remapDuration
);
QTimer
timer
;
...
...
@@ -64,7 +66,10 @@ protected:
void
mousePressEvent
(
QMouseEvent
*
event
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
event
)
override
;
std
::
shared_ptr
<
Mlt
::
Link
>
m_remapLink
;
/** @brief The position of the clip in timeline, used to seek to correct place */
int
m_startPos
;
/** @brief The in frame of the clip in timeline, used to correctly offset keyframes */
int
m_inFrame
;
public
slots
:
void
updateInPos
(
int
pos
);
...
...
@@ -121,7 +126,7 @@ signals:
void
selectedKf
(
std
::
pair
<
int
,
int
>
,
std
::
pair
<
double
,
double
>
);
/** When the cursor position changes inform parent if we are on a keyframe or not. */
void
atKeyframe
(
bool
);
void
updateKeyframes
();
void
updateKeyframes
(
bool
resize
);
void
updateMaxDuration
(
int
duration
);
};
...
...
@@ -143,7 +148,8 @@ public:
const
QString
&
currentClip
()
const
;
private
slots
:
void
updateKeyframes
();
void
updateKeyframes
(
bool
resize
=
true
);
void
checkClipUpdate
(
const
QModelIndex
&
topLeft
,
const
QModelIndex
&
bottomRight
,
const
QVector
<
int
>&
roles
);
private:
std
::
shared_ptr
<
Mlt
::
Link
>
m_splitRemap
;
...
...
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