X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-selection-popup-impl.h;h=8e0141a31e3559aa019eb0b4aef073a4f2d935dd;hb=5b3cf0e6742934674bdf62bbe15af00e39eae566;hp=c4099838af698096f096ec529231da48b6dde2a3;hpb=31df2b9472ccbe0ae460a958535be8ef790c96f2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.h b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.h index c409983..8e0141a 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.h @@ -44,7 +44,6 @@ namespace enum PopupCustomisations { POPUP_MAXIMUM_SIZE, - POPUP_MINIMUM_SIZE, OPTION_MAXIMUM_SIZE, OPTION_MINIMUM_SIZE, OPTION_DIVIDER_SIZE @@ -124,6 +123,16 @@ public: */ static Property::Value GetProperty( BaseObject* object, Property::Index index ); + /** + * @copydoc Toolkit::TextSelectionPopup::RaiseAbove() + */ + void RaiseAbove( Layer target ); + + /** + * @copydoc Toolkit::TextSelectionPopup::ShowPopup() + */ + void ShowPopup(); + private: // From Control /** @@ -131,6 +140,11 @@ private: // From Control */ virtual void OnInitialize(); + /** + * @copydoc Control::OnStageConnection() + */ + virtual void OnStageConnection( int depth ); + private: // Implementation /** @@ -206,6 +220,20 @@ private: // Implementation */ Dali::Image GetButtonImage( Toolkit::TextSelectionPopup::Buttons button ); + /** + * @brief Sets the image for the pressed state of a popup option. + * + * @param[in] filename The image filename to use. + */ + void SetPressedImage( const std::string& filename); + + /** + * @brief Gets the image used for the pressed state of a popup option. + * + * @return The image filename used. + */ + std::string GetPressedImage() const; + void CreateOrderedListOfPopupOptions(); void AddOption( const ButtonRequirement& button, bool showDivider, bool showIcons, bool showCaption ); @@ -247,21 +275,19 @@ private: // Data Image mSelectIconImage; Image mSelectAllIconImage; - Size mMaxSize; // Maximum size of the Popup - Size mMinSize; // Minimum size of the Popup - - Size mOptionMaxSize; // Maximum size of an Option button - Size mOptionMinSize; // Minimum size of an Option button - Size mOptionDividerSize; // Size of divider line + Size mOptionMaxSize; // Maximum size of an Option button + Size mOptionMinSize; // Minimum size of an Option button + Size mOptionDividerSize; // Size of divider line std::vector mOrderListOfButtons; // List of buttons in the order to be displayed and a flag to indicate if needed. Toolkit::TextSelectionPopup::Buttons mEnabledButtons; // stores enabled buttons Toolkit::TextSelectionPopupCallbackInterface* mCallbackInterface; - Vector4 mLineColor; // Color of the line around the text input popup - Vector4 mIconColor; // Color of the popup icon. + std::string mPressedImage; // Image used for the popup option when pressed. Vector4 mPressedColor; // Color of the popup option when pressed. + Vector4 mDividerColor; // Color of the divider between buttons + Vector4 mIconColor; // Color of the popup icon. // Priority of Options/Buttons in the Cut and Paste pop-up, higher priority buttons are displayed first, left to right. std::size_t mSelectOptionPriority; // Position of Select Button