X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftransition%2Ftransition-base-impl.h;h=b194e52a81690aa7f10dccff043a7854f457811d;hb=1de9cb6e0d9afd29e17819a6ed4b13f010faf8c3;hp=b3289ec4d0b97e37e8d964011259de98c1eae69c;hpb=82f0fa0fcdede94b7114bef9b15277ba5e41ad4a;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 b3289ec..b194e52 100644 --- a/dali-toolkit/internal/transition/transition-base-impl.h +++ b/dali-toolkit/internal/transition/transition-base-impl.h @@ -101,15 +101,32 @@ public: mIsAppearingTransition = appearingTransition; } -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 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. @@ -166,11 +183,12 @@ protected: } /** - * @brief Returns whether this transition is appearing transition or not + * @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. */ - bool IsAppearingTransition() const + void SetPairTransition(bool pairTransition) { - return mIsAppearingTransition; + mIsPairTransition = pairTransition; } protected: @@ -206,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 @@ -243,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. @@ -252,6 +268,7 @@ private: ///< 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