X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=1596a92b9631c4768b1763cb5b5fe3e2e7da1abf;hp=884cab3461c8d4bda9bb77f3aae2e73912bfd615;hb=4107c0f5ea45cd9e4e61d30c30e99de0e00287fc;hpb=678abc1612bf792741f9018c0cb5210738b61113 diff --git a/dali-toolkit/internal/controls/popup/popup-impl.h b/dali-toolkit/internal/controls/popup/popup-impl.h index 884cab3..1596a92 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.h +++ b/dali-toolkit/internal/controls/popup/popup-impl.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_INTERNAL_POPUP_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ */ // EXTERNAL INCLUDES -#include #include #include #include @@ -348,6 +347,11 @@ private: */ void SetExitAnimationData( const Property::Map& map ); + /** + * @briefs Updates the popup background's position and size. + */ + void UpdateBackgroundPositionAndSize(); + public: // Signals /** @@ -397,10 +401,10 @@ private: /** * Signal occurs when the dimmed backing for the Popup is touched. * @param[in] actor The Actor Touched - * @param[in] event The Touch Event. + * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnBackingTouched(Actor actor, const TouchEvent& event); + bool OnBackingTouched(Actor actor, const TouchData& touch); /** * Signal occurs when a mouse wheel event occurs on the dimmed backing. @@ -413,10 +417,10 @@ private: /** * Signal occurs when the dialog has been touched. * @param[in] actor The Actor Touched - * @param[in] event The Touch Event. + * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnDialogTouched(Actor actor, const TouchEvent& event); + bool OnDialogTouched( Actor actor, const TouchData& touch ); /** * @copydoc Toolkit::Control::OnInitialize() @@ -433,13 +437,13 @@ private: /** * Called when the popup is directly or indirectly parented to the stage. */ - virtual void OnControlStageConnection(); + virtual void OnStageConnection( int depth ); /** * From Control; called after a child has been added to the owning actor. * @param[in] child The child which has been added. */ - virtual void OnControlChildAdd( Actor& child ); + virtual void OnChildAdd( Actor& child ); /** * @copydoc Control::OnRelayOut() @@ -478,6 +482,25 @@ private: private: + /** + * Recursively add any focusable actors or layout containers to the provided vector. + * Include the top level actor if it is a layout container. + * + * @param[in] parent The actor to start from + * @param[in/out] focusableActors The vector to add focusable actors to + */ + void AddFocusableChildren( Actor parent, std::vector< Actor >& focusableActors ); + + /** + * Recursively add any focusable actors or layout containers to the provided vector. + * + * @param[in] parent The actor to start from + * @param[in/out] focusableActors The vector to add focusable actors to + */ + void AddFocusableChildrenRecursive( Actor parent, std::vector< Actor >& focusableActors ); + +private: + // Undefined. Popup(const Popup&); @@ -524,7 +547,7 @@ private: bool mBackingEnabled; ///< True if a dimmed backing will be used. Vector4 mBackingColor; ///< The color of the backing. Actor mPopupBackgroundImage; ///< Stores the background image. - Vector4 mBackgroundOuterBorder; ///< Background external border margin size + Rect mBackgroundBorder; ///< Background border. float mMargin; ///< Internal margin for popup contents. std::string mTailUpImage; ///< Image used for the tail for the up direction. std::string mTailDownImage; ///< Image used for the tail for the down direction.