|
Krita Source Code Documentation
|
Krita's Animation Timeline Docker. This is the GUI heart of Krita's traditional animation workflow, and is where artists can configure, edit, scrub and play their animation. More...
#include <KisAnimTimelineDocker.h>
Inheritance diagram for KisAnimTimelineDocker:Classes | |
| struct | Private |
Public Slots | |
| void | handleFrameRateChange () |
| void | handleThemeChange () |
| void | setAutoKey (bool value) |
| void | setImageAnimSettings () |
| void | togglePlayback () |
| void | updateFrameCache () |
| void | updateFrameRegister () |
| void | updatePlaybackStatistics () |
Public Member Functions | |
| KisAnimTimelineDocker () | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | setPlaybackEngine (KisPlaybackEngine *playbackEngine) |
| void | setViewManager (KisViewManager *kisview) override |
| void | unsetCanvas () override |
| ~KisAnimTimelineDocker () override | |
Public Member Functions inherited from KisMainwindowObserver | |
| KisMainwindowObserver () | |
| ~KisMainwindowObserver () override | |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members |
Krita's Animation Timeline Docker. This is the GUI heart of Krita's traditional animation workflow, and is where artists can configure, edit, scrub and play their animation.
Currently interacts with the TimelineFramesView/Model as well as the KisImageAnimationInterface. (TODO: Consider refactoring to streamline this interaction towards Docker -> AnimationPlayer -> ImageAnimInterface)
Definition at line 90 of file KisAnimTimelineDocker.h.
| KisAnimTimelineDocker::KisAnimTimelineDocker | ( | ) |
Definition at line 300 of file KisAnimTimelineDocker.cpp.
|
override |
Definition at line 330 of file KisAnimTimelineDocker.cpp.
|
slot |
Definition at line 756 of file KisAnimTimelineDocker.cpp.
References KisImage::animationInterface(), KisImageAnimationInterface::framerate(), KisImageAnimationInterface::image(), and m_d.
|
slot |
Definition at line 486 of file KisAnimTimelineDocker.cpp.
References m_d.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 97 of file KisAnimTimelineDocker.h.
|
slot |
Definition at line 742 of file KisAnimTimelineDocker.cpp.
References KisImageConfig::autoKeyEnabled(), KisImageConfigNotifier::instance(), KisIconUtils::loadIcon(), m_d, KisImageConfigNotifier::notifyAutoKeyFrameConfigurationChanged(), KisImageConfig::setAutoKeyEnabled(), and value().
|
overridevirtual |
re-implement this method in your canvas observer. It will be called whenever a canvas becomes active. Note that you are responsible for not connecting more than one time to the signals of a canvas or any of the QObjects you can access through the canvas.
Implements KoCanvasObserverBase.
Definition at line 355 of file KisAnimTimelineDocker.cpp.
References KisImage::animationInterface(), Private::canvas, connect(), KisImageAnimationInterface::currentTime(), KisImageAnimationInterface::documentPlaybackRange(), KisTimeSpan::end(), KisImageAnimationInterface::framerate(), handleFrameRateChange(), handleThemeChange(), KisImageAnimationInterface::image(), KisDummiesFacadeBase::image(), m_d, KisNodeManager::nodeDisplayModeAdapter(), KisViewManager::nodeManager(), PLAYING, setImageAnimSettings(), KisDocument::shapeController, KisImageAnimationInterface::sigDocumentRangeChanged(), KisCanvasAnimationState::sigPlaybackStateChanged(), KisTimeSpan::start(), updateFrameCache(), updateFrameRegister(), and KisCanvas2::viewManager().
|
slot |
Definition at line 493 of file KisAnimTimelineDocker.cpp.
References KisImageAnimSettingCommand::id(), m_d, KisProcessingApplicator::NONE, and KUndo2Command::text().
| void KisAnimTimelineDocker::setPlaybackEngine | ( | KisPlaybackEngine * | playbackEngine | ) |
Definition at line 699 of file KisAnimTimelineDocker.cpp.
References connect(), m_d, and togglePlayback().
|
overridevirtual |
Implements KisMainwindowObserver.
Definition at line 595 of file KisAnimTimelineDocker.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), KisAction::ACTIVE_IMAGE, KisImageConfig::autoKeyEnabled(), KisImageConfig::autoKeyModeDuplicate(), KisAnimTimelineDockerTitlebar::btnAddKeyframe, KisAnimTimelineDockerTitlebar::btnDuplicateKeyframe, KisAnimTimelineDockerTitlebar::btnRemoveKeyframe, connect(), KisActionManager::createAction(), KisIconUtils::loadIcon(), m_d, KisViewManager::mainWindow(), KisAction::setActivationFlags(), setAutoKey(), and togglePlayback().
|
slot |
Definition at line 718 of file KisAnimTimelineDocker.cpp.
References KisImage::animationInterface(), KisImageAnimationInterface::currentTime(), KisImageAnimationInterface::image(), m_d, PAUSED, KisCanvasAnimationState::playbackState(), and KisPlaybackEngine::playPause().
|
overridevirtual |
Re-implement to notify the observer that its canvas is no longer among the living. The daisies, it is pushing up. This means you don't have to disconnect, it's dead.
The old canvas should be deleted already, so if you stored a pointer to it, don't touch!
Note that currently there is a bug where in certain specific circumstances unsetCanvas can be called when it shouldn't, see for example KWStatisticsDocker for a workaround for this problem.
Implements KoCanvasObserverBase.
Definition at line 590 of file KisAnimTimelineDocker.cpp.
References setCanvas().
|
slot |
Definition at line 515 of file KisAnimTimelineDocker.cpp.
References m_d.
|
slot |
Definition at line 520 of file KisAnimTimelineDocker.cpp.
References m_d.
|
slot |
NOTE: we update stats on the action, but not on the button itself, so the stats will automatically propagate to all the buttons that use this action, including the one in the curves docker
Definition at line 532 of file KisAnimTimelineDocker.cpp.
References KisConfig::animationDropFrames(), KisAnimUtils::dropFramesActionName, KisPlaybackEngine::PlaybackStats::droppedFramesPortion, KisPlaybackEngine::PlaybackStats::expectedFps, KisIconUtils::loadIcon(), m_d, KisPlaybackEngine::PlaybackStats::realFps, and KritaUtils::toLocalizedOnOff().
|
private |
Definition at line 119 of file KisAnimTimelineDocker.h.