|
Krita Source Code Documentation
|
Krita's Animation Curves Docker. This is the GUI heart of Krita's scalar animation workflow. More...
#include <KisAnimCurvesDocker.h>
Inheritance diagram for KisAnimCurvesDocker:Classes | |
| struct | Private |
Public Slots | |
| void | handleFrameRateChange () |
| void | slotNodeActivated (KisNodeSP node) |
| void | slotScrollerStateChanged (QScroller::State state) |
| void | updateFrameRegister () |
Public Member Functions | |
| KisAnimCurvesDocker () | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | setPlaybackEngine (KisPlaybackEngine *playbackEngine) |
| void | setViewManager (KisViewManager *kisview) override |
| void | unsetCanvas () override |
| ~KisAnimCurvesDocker () 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 Slots | |
| void | requestChannelMenuAt (const QPoint &point) |
| void | resetChannelTreeSelection () |
| void | slotActiveNodeUpdate (const QModelIndex index) |
| void | slotAddAllEnabledKeys () |
| void | slotAddOpacityKey () |
| void | slotListRowsInserted (const QModelIndex &parentIndex, int first, int last) |
| void | slotRemoveOpacityKey () |
| void | slotRemoveSelectedKeys () |
| void | slotUpdateIcons () |
| void | slotValueRegisterChanged (double value) |
Private Member Functions | |
| void | addKeyframeCommandToParent (const QString &channelIdentity, KUndo2Command *parentCMD) |
| void | addKeyframeQuick (const QString &channelIdentity) |
| void | removeKeyframe (const QString &channel) |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members |
Krita's Animation Curves Docker. This is the GUI heart of Krita's scalar animation workflow.
Definition at line 77 of file KisAnimCurvesDocker.h.
| KisAnimCurvesDocker::KisAnimCurvesDocker | ( | ) |
Definition at line 263 of file KisAnimCurvesDocker.cpp.
References connect(), KisKineticScroller::createPreconfiguredScroller(), m_d, requestChannelMenuAt(), resetChannelTreeSelection(), slotListRowsInserted(), and slotScrollerStateChanged().
|
override |
Definition at line 358 of file KisAnimCurvesDocker.cpp.
|
private |
Definition at line 566 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), KisImage::animationInterface(), Private::canvas, KisAnimUtils::createKeyframeCommand(), KisImageAnimationInterface::currentTime(), KisCanvas2::image(), m_d, and KisCanvas2::viewManager().
|
private |
Definition at line 577 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), KisImage::animationInterface(), Private::canvas, KisAnimUtils::createKeyframeLazy(), KisImageAnimationInterface::currentTime(), KisCanvas2::image(), m_d, and KisCanvas2::viewManager().
|
slot |
Definition at line 640 of file KisAnimCurvesDocker.cpp.
References KisImage::animationInterface(), KisImageAnimationInterface::framerate(), KisImageAnimationInterface::image(), and m_d.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 84 of file KisAnimCurvesDocker.h.
|
private |
Definition at line 588 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), Private::canvas, m_d, KisAnimUtils::removeKeyframe(), and KisCanvas2::viewManager().
|
privateslot |
Definition at line 795 of file KisAnimCurvesDocker.cpp.
References KisAnimCurvesChannelsModel::CurveRole, and m_d.
|
privateslot |
Definition at line 809 of file KisAnimCurvesDocker.cpp.
References m_d.
|
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 361 of file KisAnimCurvesDocker.cpp.
References KisImage::animationInterface(), Private::canvas, connect(), KisImageAnimationInterface::currentTime(), KisImageAnimationInterface::documentPlaybackRange(), KisTimeSpan::end(), KisImageAnimationInterface::framerate(), handleFrameRateChange(), KisImageAnimationInterface::image(), m_d, PLAYING, KisAnimCurvesModel::ScalarValueRole, KisShapeController::setImage(), KisDocument::shapeController, KisImageAnimationInterface::sigPlaybackRangeChanged(), KisCanvasAnimationState::sigPlaybackStateChanged(), slotNodeActivated(), KisTimeSpan::start(), and updateFrameRegister().
| void KisAnimCurvesDocker::setPlaybackEngine | ( | KisPlaybackEngine * | playbackEngine | ) |
Definition at line 549 of file KisAnimCurvesDocker.cpp.
|
overridevirtual |
Implements KisMainwindowObserver.
Definition at line 467 of file KisAnimCurvesDocker.cpp.
References KisViewManager::actionManager(), KisAnimCurvesView::applyBezierMode(), KisAnimCurvesView::applyConstantMode(), KisAnimCurvesView::applyLinearMode(), KisAnimCurvesView::applySharpMode(), KisAnimCurvesView::applySmoothMode(), connect(), KisActionManager::createAction(), KisIconUtils::loadIcon(), m_d, KisViewManager::mainWindow(), slotAddAllEnabledKeys(), slotRemoveSelectedKeys(), slotUpdateIcons(), KisAnimCurvesView::zoomToFitChannel(), and KisAnimCurvesView::zoomToFitCurve().
|
privateslot |
Definition at line 782 of file KisAnimCurvesDocker.cpp.
References m_d, and KisAnimCurvesModel::ScalarValueRole.
|
privateslot |
Definition at line 652 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), addKeyframeCommandToParent(), KisStrokeJobData::BARRIER, Private::canvas, KisStrokeJobData::EXCLUSIVE, KoID::id(), KIS_SAFE_ASSERT_RECOVER_RETURN, kundo2_i18n(), m_d, KisKeyframeChannel::Opacity, KisKeyframeChannel::PositionX, KisKeyframeChannel::PositionY, KisKeyframeChannel::RotationX, KisKeyframeChannel::RotationY, KisKeyframeChannel::RotationZ, KisProcessingApplicator::runSingleCommandStroke(), KisKeyframeChannel::ScaleX, KisKeyframeChannel::ScaleY, KisKeyframeChannel::ShearX, KisKeyframeChannel::ShearY, KisBaseNode::supportsKeyframeChannel(), and KisCanvas2::viewManager().
|
privateslot |
Definition at line 692 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), addKeyframeQuick(), Private::canvas, KoID::id(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KisKeyframeChannel::Opacity, KisBaseNode::supportsKeyframeChannel(), and KisCanvas2::viewManager().
|
privateslot |
Definition at line 762 of file KisAnimCurvesDocker.cpp.
References m_d.
Definition at line 613 of file KisAnimCurvesDocker.cpp.
References m_d, KisKeyframeChannel::Opacity, KisKeyframeChannel::PositionX, KisKeyframeChannel::PositionY, KisKeyframeChannel::RotationX, KisKeyframeChannel::RotationY, KisKeyframeChannel::RotationZ, KisKeyframeChannel::ScaleX, KisKeyframeChannel::ScaleY, KisKeyframeChannel::ShearX, KisKeyframeChannel::ShearY, and KisBaseNode::supportsKeyframeChannel().
|
privateslot |
Definition at line 750 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), Private::canvas, KoID::id(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KisKeyframeChannel::Opacity, removeKeyframe(), KisBaseNode::supportsKeyframeChannel(), and KisCanvas2::viewManager().
|
privateslot |
Definition at line 705 of file KisAnimCurvesDocker.cpp.
References KisViewManager::activeNode(), Private::canvas, KisAnimCurvesModel::ChannelIdentifier, KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KisAnimUtils::removeKeyframes(), and KisCanvas2::viewManager().
|
slot |
Definition at line 608 of file KisAnimCurvesDocker.cpp.
References m_d, and KisKineticScroller::updateCursor().
|
privateslot |
Definition at line 648 of file KisAnimCurvesDocker.cpp.
|
privateslot |
Definition at line 771 of file KisAnimCurvesDocker.cpp.
References m_d, KisAnimCurvesModel::ScalarValueRole, and value().
|
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 462 of file KisAnimCurvesDocker.cpp.
References setCanvas().
|
slot |
Definition at line 629 of file KisAnimCurvesDocker.cpp.
References m_d.
|
private |
Definition at line 123 of file KisAnimCurvesDocker.h.