X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-selection-toolbar-impl.h;h=5cc4fdad951d206c764e1971d9fd2619af63c688;hp=f5908bb6ab156dd00709621f16ab13ec6e5c5fee;hb=3d655cb57a51fee5d3a887aa36f4c6b8b77c2f7d;hpb=8e7cfd0c114bf778287cc6e67d0f42f3c866e205 diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.h b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.h index f5908bb..5cc4fda 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.h @@ -21,8 +21,8 @@ // INTERNAL INCLUDES #include #include -#include -#include +#include +#include #include // EXTERNAL INCLUDES @@ -83,7 +83,7 @@ public: /** * @copydoc Toolkit::TextSelectionToolbar::RaiseAbove() */ - void RaiseAbove( Layer target ); + void RaiseAbove( Actor target ); /** * Sets the scroll bar padding. @@ -97,17 +97,22 @@ public: */ const Vector2& GetScrollBarPadding() const; + /** + * @copydoc Toolkit::TextSelectionToolbar::ScrollTo() + */ + void ScrollTo( const Vector2& position ); + private: // From Control /** * @copydoc Control::OnInitialize() */ - virtual void OnInitialize(); + void OnInitialize() override; /** * @copydoc Control::OnRelayout() */ - virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + void OnRelayout( const Vector2& size, RelayoutContainer& container ) override; /** * @brief Set max size of Popup @@ -175,7 +180,7 @@ private: private: // Data - Layer mToolbarLayer; ///< The layer used to house the toolbar. + Actor mToolbarActor; ///< The actor used to house the toolbar. Toolkit::TableView mTableOfButtons; ///< Actor which holds all the buttons, sensitivity can be set on buttons via this actor Toolkit::ScrollView mScrollView; ///< Provides scrolling of Toolbar when content does not fit. Toolkit::ScrollBar mScrollBar; ///< An horizontal scroll bar for the text's popup options. @@ -184,6 +189,7 @@ private: // Data Vector2 mScrollBarPadding; ///< The padding used to position the scroll indicator. unsigned int mIndexInTable; ///< Index in table to add option Dali::Vector< unsigned int > mDividerIndexes; ///< Vector of indexes in the Toolbar that contain dividers. + bool mFirstScrollEnd; ///< Used for RTL mirroring. Avoids the overshoot to be shown the first time the popup is shown. }; } // namespace Internal