Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Gui::TimelineScrollArea Class Reference

#include <Gui/Timeline/TimelineScrollArea.hpp>

+ Collaboration diagram for Ra::Gui::TimelineScrollArea:

Public Slots

void onDrawRuler (int width)
 Force redraw with the given width.
 

Signals

void stepChanged (Scalar step)
 
void addKeyFrame ()
 Emitted when [i] is pressed.
 
void removeKeyFrame ()
 Emitted when [del] / [shift]+[i] is pressed.
 
void previousKeyFrame ()
 Emitted when [left_arrow] is pressed or [shift] + [wheel-up].
 
void nextKeyFrame ()
 Emitted when [right_arrow] is pressed or [shift] + [wheel-down].
 
void durationIncrement ()
 Emitted when [up_arrow] is pressed.
 
void durationDecrement ()
 Emitted when [down_arrow] is pressed.
 
void togglePlayPause ()
 Emitted when [space] is pressed.
 
void undo ()
 Emitted when [crtl] + [z] / [u] key is pressed.
 
void redo ()
 Emitted when [crtl] + [shift] + [z] / [r] key is pressed.
 

Public Member Functions

 TimelineScrollArea (QWidget *parent=nullptr)
 
Scalar getMaxDuration ()
 
void setMaxDuration (Scalar duration)
 Set the end of the Timeline's playzone.
 
Scalar getStep ()
 
int getNbInterval ()
 
Scalar getPixPerSec ()
 
int getZero ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 

Detailed Description

The TimelineScrollArea class manages the ScrollArea for the Timeline's frame display.

It offers display info for its sub-widgets (size, zoom level, scroll shift...).

Definition at line 15 of file TimelineScrollArea.hpp.

Constructor & Destructor Documentation

◆ TimelineScrollArea()

Ra::Gui::TimelineScrollArea::TimelineScrollArea ( QWidget * parent = nullptr)
explicit

Definition at line 13 of file TimelineScrollArea.cpp.

Member Function Documentation

◆ getMaxDuration()

Scalar Ra::Gui::TimelineScrollArea::getMaxDuration ( )
Returns
the end of the Timeline's playzone.

Definition at line 38 of file TimelineScrollArea.cpp.

◆ getNbInterval()

int Ra::Gui::TimelineScrollArea::getNbInterval ( )
Returns
the number of scale graduations.

Definition at line 34 of file TimelineScrollArea.cpp.

◆ getPixPerSec()

Scalar Ra::Gui::TimelineScrollArea::getPixPerSec ( )
Returns
the number of pixels used to display 1 second on the scale.

Definition at line 50 of file TimelineScrollArea.cpp.

◆ getStep()

Scalar Ra::Gui::TimelineScrollArea::getStep ( )
Returns
the step between two scale graduations.

Definition at line 54 of file TimelineScrollArea.cpp.

◆ getZero()

int Ra::Gui::TimelineScrollArea::getZero ( )
Returns
the pixel corresponding to time 0.

Definition at line 46 of file TimelineScrollArea.cpp.

◆ keyPressEvent()

void Ra::Gui::TimelineScrollArea::keyPressEvent ( QKeyEvent * event)
overrideprotected

Definition at line 76 of file TimelineScrollArea.cpp.

◆ mouseMoveEvent()

void Ra::Gui::TimelineScrollArea::mouseMoveEvent ( QMouseEvent * event)
overrideprotected

Definition at line 177 of file TimelineScrollArea.cpp.

◆ mousePressEvent()

void Ra::Gui::TimelineScrollArea::mousePressEvent ( QMouseEvent * event)
overrideprotected

Definition at line 165 of file TimelineScrollArea.cpp.

◆ mouseReleaseEvent()

void Ra::Gui::TimelineScrollArea::mouseReleaseEvent ( QMouseEvent * event)
overrideprotected

Definition at line 173 of file TimelineScrollArea.cpp.

◆ onDrawRuler

void Ra::Gui::TimelineScrollArea::onDrawRuler ( int width)
slot

Force redraw with the given width.

Definition at line 58 of file TimelineScrollArea.cpp.

+ Here is the call graph for this function:

◆ setMaxDuration()

void Ra::Gui::TimelineScrollArea::setMaxDuration ( Scalar duration)

Set the end of the Timeline's playzone.

Definition at line 42 of file TimelineScrollArea.cpp.

◆ stepChanged

void Ra::Gui::TimelineScrollArea::stepChanged ( Scalar step)
signal
Todo
use keymapping manager here Emitted when zoomed in/out or resized.

◆ wheelEvent()

void Ra::Gui::TimelineScrollArea::wheelEvent ( QWheelEvent * event)
overrideprotected

Definition at line 126 of file TimelineScrollArea.cpp.


The documentation for this class was generated from the following files: