X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftransition%2Ftransition-base-impl.h;h=b194e52a81690aa7f10dccff043a7854f457811d;hb=ba2b1aa2e87716f4ef107e0fa627573475e93470;hp=84ef316d33995c86e3fa1f2a704105826e4cfbc6;hpb=dc784926413b23f29d0719578d310fc3a24e46fe;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/transition/transition-base-impl.h b/dali-toolkit/internal/transition/transition-base-impl.h index 84ef316..b194e52 100644 --- a/dali-toolkit/internal/transition/transition-base-impl.h +++ b/dali-toolkit/internal/transition/transition-base-impl.h @@ -92,15 +92,41 @@ public: */ void TransitionFinished(); -protected: /** - * @brief Set property map which will be used as a initial properties. - * @param[in] propertyMap propertyMap that will be used as a start value of transition. + * @brief Set this transition is appearing transition or not. + * @param[in] appearingTransition True if this transition is appearing transition. + */ + void SetAppearingTransition(bool appearingTransition) + { + mIsAppearingTransition = appearingTransition; + } + + /** + * @brief Returns whether this transition is appearing transition or not */ - void SetInitialPropertyMap(const Property::Map& propertyMap) + bool IsAppearingTransition() const { - mInitialPropertyMap = propertyMap; + return mIsAppearingTransition; } + + /** + * @brief Returns whether this transition is a transition from a Control to another Control or effect to appearing or disappearing. + */ + bool IsPairTransition() const + { + return mIsPairTransition; + } + + /** + * @brief Returns target which will be transition. + */ + const Dali::Toolkit::Control GetTarget() const + { + return mTarget; + } + +protected: + /** * @brief Set property map which will be used as a animation start properties. * @param[in] propertyMap propertyMap that will be used as a start value of transition. @@ -151,11 +177,20 @@ protected: /** * @brief Returns whether this transition will be applied to children of target or not. */ - bool IsTransitionWithChild() + bool IsTransitionWithChild() const { return mTransitionWithChild; } + /** + * @brief Set whether this transition is a transition from a Control to another Control or effect to appearing or disappearing. + * @param[in] pairTransition True if this transition is appearing transition. + */ + void SetPairTransition(bool pairTransition) + { + mIsPairTransition = pairTransition; + } + protected: /** * Construct a new TransitionBase. @@ -189,11 +224,10 @@ private: * @brief Adds a property on an animation between sourceValue and destimationValue. * @param[in] target target control to be animated. * @param[in] index property index for animation. - * @param[in] initialValue initial value of animation. * @param[in] sourceValue source value of animation. * @param[in] destinationValue destination value of animation. */ - void AnimateBetween(Dali::Toolkit::Control target, Property::Index index, Property::Value initialValue, Property::Value sourceValue, Property::Value destinationValue); + void AnimateBetween(Dali::Toolkit::Control target, Property::Index index, Property::Value sourceValue, Property::Value destinationValue); /** * @brief Copy target to make clone for the child Actors @@ -226,7 +260,6 @@ private: Dali::Actor mCopiedActor; ///< Copied View that will replace mTarget during transition Dali::Animation mAnimation; ///< Property animations for the transition of mTarget AlphaFunction mAlphaFunction; ///< Alpha function that will applied for the property animation - Property::Map mInitialPropertyMap; ///< Initial properties to be animated. (world transform) Property::Map mStartPropertyMap; ///< Start properties to be animated. (world transform) Property::Map mFinishPropertyMap; ///< Finish properties to be animated. (world transform) Property::Map mOriginalPropertyMap; ///< Original properties of mTarget to be used to restore after the transition is finished. @@ -234,6 +267,8 @@ private: bool mTransitionWithChild; ///< True, if mTarget transition is inherit to its child Actors. ///< If this is false, the child Actors are moved to the child of mCopiedActor that will have original properties of target Actor during Transition. bool mMoveTargetChildren; ///< Flag, if mTransitionWithChild is false and mTarget has children than True. + bool mIsAppearingTransition; ///< True, if this transition is appearing transition. + bool mIsPairTransition; ///< True, if this transition is started from a Control to another Control. }; } // namespace Internal