X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=099e5e6f47adf648ef671290dd1733b6f941d772;hb=a505bf603895074e638b374097e6d5c649e2292e;hp=b716c0996a61af31bc7d48c0989a3a51ff1781f4;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;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 b716c09..099e5e6 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 @@ -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 @@ -219,12 +215,12 @@ private: bool OnBackingTouched(Actor actor, const TouchEvent& event); /** - * Signal occurs when the mouse wheel event is occured on dimmed backing for the Popup. - * @param[in] actor The Actor got mouse wheel - * @param[in] event The Mouse Wheel Event. + * Signal occurs when the wheel event is occured on dimmed backing for the Popup. + * @param[in] actor The Actor got wheel + * @param[in] event The Wheel Event. * @return Whether to consume event or not. */ - bool OnBackingMouseWheelEvent(Actor actor, const MouseWheelEvent& event); + bool OnBackingWheelEvent(Actor actor, const WheelEvent& event); /** * Signal occurs when the dialog has been touched. @@ -251,9 +247,14 @@ private: virtual void OnControlChildAdd( Actor& child ); /** - * @copydoc Control::OnRelayout() + * @copydoc Control::OnRelayOut() + */ + virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + + /** + * @copydoc Control::OnSetResizePolicy() */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); + virtual void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension ); /** * @copydoc Control::OnKeyEvent() @@ -278,7 +279,12 @@ private: /** * @copydoc Control::GetNextKeyboardFocusableActor() */ - Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::Control::KeyboardFocusNavigationDirection direction, bool loopEnabled); + Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled); + + /** + * Create the root actor for the footer + */ + void CreateFooter(); private: @@ -303,19 +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::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 - 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.