X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-selection-toolbar-impl.h;h=d44daf0e7058066f0034a72c1b22565167c27509;hb=cd2db445fc95fed65cb9d966e672cb6976a10d0d;hp=3593e7977680c6a8b9512058de9d9b8fd3dad69c;hpb=1e8293a10f62b2038d332efebb8549cec96c1922;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 3593e79..d44daf0 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 @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H__ -#define __DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H__ +#ifndef DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H +#define DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,11 +36,6 @@ namespace Toolkit namespace Internal { -namespace -{ - -} // namespace - class TextSelectionToolbar : public Control { public: @@ -70,20 +65,25 @@ 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 /** @@ -95,6 +95,7 @@ private: // From Control * @copydoc Control::OnRelayout() */ virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + /** * @brief Set max size of Popup * @param[in] maxSize Size (Vector2) @@ -107,11 +108,17 @@ private: // From Control */ const Dali::Vector2& GetPopupMaxSize() const; +private: // Implementation + + /** + * @copydoc Toolkit::TextSelectionToolbar::ConfigureScrollview() + */ + void ConfigureScrollview( const Property::Map& properties ); + /** * @brief Set up scrollview to scroll Toolbar horizontally - * @param[out] scrollView scrollview to setup */ - void SetUpScrollView( Toolkit::ScrollView& scrollView ); + void SetUpScrollView(); /** * @brief Set up the parts that make the Toolbar @@ -130,8 +137,6 @@ private: // From Control */ void OnScrollCompleted( const Vector2& position ); -private: // Implementation - /** * Construct a new TextField. */ @@ -150,12 +155,13 @@ private: private: // Data - 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. + Layer mToolbarLayer; ///< The layer 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. + 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. }; @@ -185,4 +191,4 @@ inline const Toolkit::Internal::TextSelectionToolbar& GetImpl( const Toolkit::Te } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H__ +#endif // DALI_TOOLKIT_INTERNAL_TEXT_SELECTION_TOOLBAR_H