#include <Gui/Timeline/TimelineFrameSelector.hpp>
The TimelineFrameSelector manages the display of keyframes in the Timeline. It also manages the update of the Timeline UI.
Definition at line 23 of file TimelineFrameSelector.hpp.
◆ TimelineFrameSelector()
Ra::Gui::TimelineFrameSelector::TimelineFrameSelector |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ ~TimelineFrameSelector()
Ra::Gui::TimelineFrameSelector::~TimelineFrameSelector |
( |
| ) |
|
|
override |
◆ cursorChanged
void Ra::Gui::TimelineFrameSelector::cursorChanged |
( |
Scalar | time | ) |
|
|
signal |
Emitted when the playzone current time has been changed though
- the user changing the current time of the Timeline's playzone,
- the user offsetting a set of KeyFrames,
- the user deleting an entire timezone.
◆ durationChanged
void Ra::Gui::TimelineFrameSelector::durationChanged |
( |
Scalar | time | ) |
|
|
signal |
Emitted when the playzone duration has been changed though an internal call to onChangeDuration().
◆ endChanged
void Ra::Gui::TimelineFrameSelector::endChanged |
( |
Scalar | time | ) |
|
|
signal |
Emitted when the playzone end has been changed though
- the user changing the end point of the Timeline's playzone,
- the user offsetting a set of KeyFrames,
- the user deleting an entire timezone containing the playzone end.
◆ keyFrameAdded
void Ra::Gui::TimelineFrameSelector::keyFrameAdded |
( |
Scalar | time | ) |
|
|
signal |
◆ keyFrameChanged
void Ra::Gui::TimelineFrameSelector::keyFrameChanged |
( |
size_t | i | ) |
|
|
signal |
◆ keyFrameDeleted
void Ra::Gui::TimelineFrameSelector::keyFrameDeleted |
( |
size_t | i | ) |
|
|
signal |
Emitted when a KeyFrame has been deleted through
- the user deleting a single KeyFrame.
- the user deleting an entire timezone containing a KeyFrame.
- Note
- Emitted for each suppressed KeyFrame.
◆ keyFrameMoved
void Ra::Gui::TimelineFrameSelector::keyFrameMoved |
( |
size_t | i, |
|
|
Scalar | time1 ) |
|
signal |
Emitted when a KeyFrame has been added through an internal call to onMoveKeyFrame().
◆ keyFramesMoved
void Ra::Gui::TimelineFrameSelector::keyFramesMoved |
( |
size_t | first, |
|
|
Scalar | offset ) |
|
signal |
Emitted when a KeyFrame has been added through
- the user offsetting a set of keyframes.
- the user deleting an entire timezone preceding KeyFrames.
◆ mouseMoveEvent()
void Ra::Gui::TimelineFrameSelector::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void Ra::Gui::TimelineFrameSelector::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void Ra::Gui::TimelineFrameSelector::mouseReleaseEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ onAddingKeyFrame
void Ra::Gui::TimelineFrameSelector::onAddingKeyFrame |
( |
Scalar | time = -1.0, |
|
|
bool | internal = true ) |
|
slot |
Adds a KeyFrame at the given time.
- Parameters
-
time | the time to add a KeyFrame at. |
internal | whether the call has been made internally by the Timeline, e.g. through the UI; or externally, e.g. by setting Keyrames in the Timeline. |
- Note
- If
time
is set to its default value, then it is considered as the current time.
-
If there already is a KeyFrame at time
time
, then it will be replaced, and the KeyFrame display will Flash.
-
If
internal
is set to true:
Definition at line 202 of file TimelineFrameSelector.cpp.
◆ onChangeCursor()
void Ra::Gui::TimelineFrameSelector::onChangeCursor |
( |
Scalar | time, |
|
|
bool | internal = true ) |
◆ onChangeDuration()
void Ra::Gui::TimelineFrameSelector::onChangeDuration |
( |
Scalar | time, |
|
|
bool | internal = true ) |
◆ onChangeEnd()
void Ra::Gui::TimelineFrameSelector::onChangeEnd |
( |
Scalar | time, |
|
|
bool | internal = true ) |
◆ onChangeStart()
void Ra::Gui::TimelineFrameSelector::onChangeStart |
( |
Scalar | time, |
|
|
bool | internal = true ) |
◆ onClearKeyFrames
void Ra::Gui::TimelineFrameSelector::onClearKeyFrames |
( |
| ) |
|
|
slot |
◆ onDeletingKeyFrame
void Ra::Gui::TimelineFrameSelector::onDeletingKeyFrame |
( |
bool | internal = true | ) |
|
|
slot |
Removes the KeyFrame at the current time, if any.
- Parameters
-
internal | whether the call has been made internally by the Timeline, e.g. through the UI; or externally. |
- Note
- If
internal
is set to true, the signal keyFrameDeleted() will be emitted if a KeyFrame has been effectively removed.
Definition at line 236 of file TimelineFrameSelector.cpp.
◆ onMoveKeyFrame
void Ra::Gui::TimelineFrameSelector::onMoveKeyFrame |
( |
Scalar | time0, |
|
|
Scalar | time1, |
|
|
bool | internal = true ) |
|
slot |
Removes the KeyFrame at time time0
and adds a new one at time time1
.
- Parameters
-
time0 | the time to remove the KeyFrame at. |
time1 | the time to add the KeyFrame at. |
internal | whether the call has been made internally by the Timeline, e.g. through the UI; or externally. |
- Note
- If
time0
== time1
, does nothing.
-
If
internal
is set to true, the signal keyFrameMoved() will be emitted if the KeyFrame has been effectively moved.
Definition at line 253 of file TimelineFrameSelector.cpp.
◆ onMoveKeyFrames
void Ra::Gui::TimelineFrameSelector::onMoveKeyFrames |
( |
Scalar | time, |
|
|
Scalar | offset, |
|
|
bool | internal = true ) |
|
slot |
Offsets the KeyFrames after time time
of an offsets offset
.
- Parameters
-
time | the time from which to offset KeyFrames. |
offset | the offset to offset KeyFrames of. |
internal | whether the call has been made internally by the Timeline, e.g. through the UI; or externally . |
- Note
- If
offset
== 0, or time
has no KeyFrame, does nothing.
-
If
internal
is set to true, the signal keyFramesMoved() will be emitted if the KeyFrames have been effectively moved.
-
If
offset
is negative and offsetting the KeyFrame at time
covers the start point of the Timeline's playzone, this one is offset too. In this case, if internal
is set to true, the signal startChanged() will be emitted.
-
If offsetting the last KeyFrame overtakes the duration, this one comes along. In this case, if
internal
is set to true, the signal durationChanged() will be emitted.
-
If
time
comes before the end point of the Timeline's playzone, this one will be offset too. In this case, if internal
is set to true, the signal endChanged() will be emitted.
-
If
offset
is negative and offsetting the KeyFrame at time
covers the current time, this one will be offset too. In this case, if internal
is set to true, the signal cursorChanged() will be emitted.
Definition at line 274 of file TimelineFrameSelector.cpp.
◆ paintEvent()
void Ra::Gui::TimelineFrameSelector::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotectedvirtual |
◆ setTimelineUi()
void Ra::Gui::TimelineFrameSelector::setTimelineUi |
( |
Ui::Timeline * | ui | ) |
|
◆ startChanged
void Ra::Gui::TimelineFrameSelector::startChanged |
( |
Scalar | time | ) |
|
|
signal |
Emitted when the playzone start has been changed though
- the user changing the start point of the Timeline's playzone,
- the user offsetting a set of KeyFrames,
- the user deleting an entire timezone containing the playzone start.
The documentation for this class was generated from the following files: