X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=efdac513d18d86fbe066bb15a803ea84f1ccbdea;hb=b46395d404c2b437c4679975e0ed2c073949ba61;hp=b6ee02beaa11adf181e8d77d0827e85bc5ac3635;hpb=61cec43aa084293be7e3002db0a24de1cd9a2677;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 b6ee02b..efdac51 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.h +++ b/dali-toolkit/internal/controls/popup/popup-impl.h @@ -27,6 +27,8 @@ #include #include #include +#include +#include namespace Dali { @@ -83,14 +85,9 @@ public: void SetTitle( const std::string& text ); /** - * @copydoc Toolkit::Popup::SetTitle( TextView titleActor ) - */ - void SetTitle( Toolkit::TextView titleActor ); - - /** * @copydoc Toolkit::Popup::GetTitle */ - Toolkit::TextView GetTitle() const; + std::string GetTitle() const; /** * @copydoc Toolkit::Popup::AddButton @@ -122,7 +119,6 @@ public: */ void HideTail(); - /** * Sets the style of the popup * @param[in] style The style of the popup @@ -135,6 +131,11 @@ public: */ PopupStylePtr GetStyle() const; + /** + * @copydoc Toolkit::Popup::MarkDirtyForRelayout + */ + void MarkDirtyForRelayout(); + protected: /** @@ -251,14 +252,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 policy, Dimension dimension ); /** * @copydoc Control::OnKeyEvent() @@ -285,6 +286,11 @@ private: */ Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::Control::KeyboardFocusNavigationDirection direction, bool loopEnabled); + /** + * Create the root actor for the footer + */ + void CreateFooter(); + private: // Undefined @@ -308,14 +314,14 @@ 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::TextView mTitle; ///< Stores the text title. + 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