X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-popup.h;h=3d6d5d0eb9b8c67c8615b3aecc8591ef79c9b9f9;hb=2d1ba388f9a941d273e95d729b9662cc1cdad822;hp=2243f2d92d14a67231c1445f7e1083168efc12a2;hpb=c3cac93143d2055fcc4fe6531cbdb1afbd25cfb7;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h index 2243f2d..3d6d5d0 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h @@ -27,6 +27,8 @@ namespace Dali namespace Toolkit { +class TextSelectionPopupCallbackInterface; + namespace Internal DALI_INTERNAL { class TextSelectionPopup; @@ -46,6 +48,17 @@ class DALI_IMPORT_API TextSelectionPopup : public Control { public: + enum Buttons + { + CUT = 1u << 0, + COPY = 1u << 1, + PASTE = 1u << 2, + SELECT = 1u << 3, + SELECT_ALL = 1u << 4, + CLIPBOARD = 1u << 5, + NONE = 1u << 6, + }; + /** * @brief The start and end property ranges for this control. */ @@ -56,15 +69,17 @@ public: }; /** - * @brief An enumeration of properties belonging to the TextLabel class. + * @brief An enumeration of properties belonging to the TextSelectionPopup class. */ struct Property { enum { - - POPUP_MAX_SIZE, ///< name "popup-max-size", The max size the Popup can be, type VECTOR2 - POPUP_BACKGROUND_IMAGE, ///< name "popup-background-image", The image to display for popup background type STRING + POPUP_MAX_SIZE = PROPERTY_START_INDEX, ///< name "popup-max-size", maximum size the Popup can be, type VECTOR2 + POPUP_MIN_SIZE, ///< name "popup-min-size", minimum size the Popup can be, type VECTOR2 + OPTION_MAX_SIZE, ///< name "option-max-size", maximum size an option can be, type VECTOR2 + OPTION_MIN_SIZE, ///< name "option-min-size", minimum size an option can be, type VECTOR2 + OPTION_DIVIDER_SIZE, ///< name "option-divider-size", size of the divider between options type VECTOR2 POPUP_CLIPBOARD_BUTTON_ICON_IMAGE, ///< name "popup-clipboard-button-image", The image to use as the popup clipboard icon, type STRING POPUP_CUT_BUTTON_ICON_IMAGE, ///< name "popup-cut-button-image", The image to use as the popup cut icon, type STRING POPUP_COPY_BUTTON_ICON_IMAGE, ///< name "popup-copy-button-image", The image to use as the popup copy icon, type STRING @@ -75,10 +90,13 @@ public: }; /** - * Create the TextSelectionPopup control. + * Create the TextSelectionPopup control with the given set of buttons. + * @param[in] enabledButtons The given set of buttons to enable + * @param[in] callbackInterface The text popup callback interface which receives the button click callbacks. * @return A handle to the TextSelectionPopup control. */ - static TextSelectionPopup New(); + static TextSelectionPopup New( Buttons enabledButtons, + TextSelectionPopupCallbackInterface* callbackInterface ); /** * @brief Creates an empty handle. @@ -138,6 +156,6 @@ public: // Not intended for application developers } // namespace Toolkit -} // namepsace Dali +} // namespace Dali #endif // __DALI_TOOLKIT_TEXT_SELECTION_POPUP_H__