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=7309781029248c04c71c9762b910a61858092614;hp=fb85e95438f31f9ffce99dd71803be78532cd2bf;hb=a705c754f9d19640969ed75213884756e764a465;hpb=8c18e2ceb273e1db22547264a4466fa565081a29 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 fb85e95..7309781 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 @@ -20,6 +20,7 @@ // INTERNAL INCLUDES #include +#include #include #include @@ -69,26 +70,41 @@ public: static Property::Value GetProperty( BaseObject* object, Property::Index index ); /** - * @copydoc TextSelectionToolbar::AddOption + * @copydoc Toolkit::TextSelectionToolbar::AddOption() */ void AddOption( Actor& option ); /** - * @copydoc TextSelectionToolbar::AddDivider + * @copydoc Toolkit::TextSelectionToolbar::AddDivider() */ void AddDivider( Actor& divider ); /** - * @copydoc ResizeDividers + * @copydoc Toolkit::TextSelectionToolbar::ResizeDividers() */ void ResizeDividers( Size& size ); + /** + * @copydoc Toolkit::TextSelectionToolbar::RaiseAbove() + */ + void RaiseAbove( Layer target ); + private: // From Control /** * @copydoc Control::OnInitialize() */ - virtual void OnInitialize(); + virtual void OnInitialize(); + + /** + * @copydoc Control::OnRelayout() + */ + virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + + /** + * @copydoc Control::OnStageConnection() + */ + virtual void OnStageConnection( int depth ); /** * @brief Set max size of Popup @@ -103,10 +119,28 @@ private: // From Control const Dali::Vector2& GetPopupMaxSize() const; /** + * @brief Set up scrollview to scroll Toolbar horizontally + * @param[out] scrollView scrollview to setup + */ + void SetUpScrollView( Toolkit::ScrollView& scrollView ); + + /** * @brief Set up the parts that make the Toolbar */ void SetUp(); + /** + * Toolbar has started to scroll + * @param[in] position current scroll view position + */ + void OnScrollStarted( const Vector2& position ); + + /** + * Toolbar has stopped scrolling + * @param[in] position current scroll view position + */ + void OnScrollCompleted( const Vector2& position ); + private: // Implementation /** @@ -127,12 +161,13 @@ private: private: // Data - Dali::Toolkit::TableView mTableOfButtons; // Actor which holds all the buttons, sensitivity can be set on buttons via this actor - Layer mStencilLayer; // Layer to enable clipping when buttons exceed popup - - Size mMaxSize; // Max size of the Toolbar - unsigned int mIndexInTable; // Index in table to add option - Dali::Vector< unsigned int > mDividerIndexes; // Vector of indexes in the Toolbar that contain dividers. + Layer mStencilLayer; ///< The stencil layer + 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. + RulerPtr mRulerX; ///< Ruler to clamp horizontal scrolling. Updates on Relayout + Size mMaxSize; ///< Max size of the Toolbar + unsigned int mIndexInTable; ///< Index in table to add option + Dali::Vector< unsigned int > mDividerIndexes; ///< Vector of indexes in the Toolbar that contain dividers. };