2#include <Gui/Timeline/Configurations.hpp>
4#include <QDoubleSpinBox>
11#include <Core/CoreMacros.hpp>
51 void onChangeEnd( Scalar time,
bool internal =
true );
111 void onMoveKeyFrame( Scalar time0, Scalar time1,
bool internal =
true );
139 void onMoveKeyFrames( Scalar time, Scalar offset,
bool internal =
true );
217 void onSlideLeftSlider(
int deltaX );
225 void onSlideRightSlider(
int deltaX );
231 void onSetCursorToStart();
237 void onSetCursorToEnd();
243 void onSetCursorToPreviousKeyFrame();
249 void onSetCursorToNextKeyFrame();
252 virtual void paintEvent( QPaintEvent* event )
override;
254 void mousePressEvent( QMouseEvent* event )
override;
255 void mouseMoveEvent( QMouseEvent* event )
override;
256 void mouseReleaseEvent( QMouseEvent* event )
override;
260 void updateStartSpin();
263 void updateEndSpin();
266 void updateCursorSpin();
269 void updateDurationSpin();
272 void updateNbKeyFrameSpin();
279 Scalar nearestStep( Scalar time )
const;
286 void deleteZone( Scalar time, Scalar time2 );
291 void redrawPlayZone();
307 bool m_mouseLeftClicked {
false };
310 Scalar m_keyFrameFlash;
313 int m_updateKeyFrameFlash { 0 };
316 QTimer* m_timer {
nullptr };
319 Ui::Timeline* m_timelineUI {
nullptr };
void keyFrameChanged(size_t i)
void onAddingKeyFrame(Scalar time=-1.0, bool internal=true)
void onMoveKeyFrame(Scalar time0, Scalar time1, bool internal=true)
void onChangeDuration(Scalar time, bool internal=true)
void onChangeCursor(Scalar time, bool internal=true)
void durationChanged(Scalar time)
void cursorChanged(Scalar time)
void keyFrameAdded(Scalar time)
void keyFrameMoved(size_t i, Scalar time1)
void onChangeStart(Scalar time, bool internal=true)
void endChanged(Scalar time)
void onMoveKeyFrames(Scalar time, Scalar offset, bool internal=true)
void keyFrameDeleted(size_t i)
void keyFramesMoved(size_t first, Scalar offset)
void onDeletingKeyFrame(bool internal=true)
void onChangeEnd(Scalar time, bool internal=true)
void setTimelineUi(Ui::Timeline *ui)
Registers the Timeline's UI for update.
void startChanged(Scalar time)