X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=ccf7ebb7134ac5e17bb2c5960784a88de008c0eb;hb=2b4be89fbaad622c93c957ad425a485ba0cc8bd4;hp=6a6fc0e005d7081d98384909ad0a1e19669acc6d;hpb=306d2f61a1b64179e801fa8a0bb2bd7b4e9dd682;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/popup/popup-impl.h b/dali-toolkit/internal/controls/popup/popup-impl.h index 6a6fc0e..ccf7ebb 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.h +++ b/dali-toolkit/internal/controls/popup/popup-impl.h @@ -25,7 +25,9 @@ // INTERNAL INCLUDES #include -#include +#include +#include +#include #include namespace Dali @@ -85,7 +87,7 @@ public: /** * @copydoc Toolkit::Popup::GetTitle */ - const std::string& GetTitle() const; + std::string GetTitle() const; /** * @copydoc Toolkit::Popup::AddButton @@ -117,7 +119,6 @@ public: */ void HideTail(); - /** * Sets the style of the popup * @param[in] style The style of the popup @@ -246,14 +247,14 @@ private: virtual void OnControlChildAdd( Actor& child ); /** - * @copydoc Toolkit::Control::OnControlSizeSet( const Vector3& size ) + * @copydoc Control::OnRelayOut() */ - virtual void OnControlSizeSet( const Vector3& size ); + virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); /** - * @copydoc Control::OnRelayOut() + * @copydoc Control::OnSetResizePolicy() */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); + virtual void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ); /** * @copydoc Control::OnKeyEvent() @@ -280,6 +281,11 @@ private: */ Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::Control::KeyboardFocusNavigationDirection direction, bool loopEnabled); + /** + * Create the root actor for the footer + */ + void CreateFooter(); + private: // Undefined @@ -303,18 +309,19 @@ private: bool mShowing; ///< Popup is showing or not Layer mLayer; ///< Popup Layer (i.e. Dim backing and PopupBg reside in this) - Actor mPopupBg; ///< Popup Background (i.e. dialog reside in this) + Toolkit::TableView mPopupLayout; ///< Popup layout (i.e. dialog reside in this) ImageActor mBacking; ///< Backing actor (dim effect) Actor mPreviousFocusedActor; ///< Store the previous focused actor to restore the focus when popup hide Actor mBackgroundImage; ///< Stores the background image. Actor mButtonAreaImage; ///< Stores the button background image. + Toolkit::TextLabel mTitle; ///< Stores the text title. Actor mContent; ///< Stores popup's content. Actor mBottomBg; ///< bottom button bar background. ImageActor is replaced with Actor due to hidden image. Actor mTailImage; ///< Stores the tail image - ActorContainer mButtons; ///< Keeps track of the buttons added to this popup. + std::vector< Actor > mButtons; ///< Keeps track of the buttons added to this popup. Toolkit::Popup::PopupState mState; ///< Popup current state. Animation mAnimation; ///< The animation instance managing state changing. bool mAlterAddedChild; ///< Flag used to control whether children are reparented or not.