X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-field-devel.h;h=a5b1df3bd16a28473ce29a3152e9839ce524670e;hp=bc199ad247984064b950a1f991f7e84e4e8d962d;hb=5afa211a27080c036cadec6ab3acc3300de82b12;hpb=24d391fe222bd0fd5910e3b3481124fa23b796be diff --git a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h index bc199ad..a5b1df3 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h @@ -32,7 +32,7 @@ namespace DevelTextField namespace Property { - enum Type + enum { RENDERING_BACKEND = Dali::Toolkit::TextField::Property::RENDERING_BACKEND, TEXT = Dali::Toolkit::TextField::Property::TEXT, @@ -81,54 +81,24 @@ namespace Property INPUT_EMBOSS = Dali::Toolkit::TextField::Property::INPUT_EMBOSS, OUTLINE = Dali::Toolkit::TextField::Property::OUTLINE, INPUT_OUTLINE = Dali::Toolkit::TextField::Property::INPUT_OUTLINE, + HIDDEN_INPUT_SETTINGS = Dali::Toolkit::TextField::Property::HIDDEN_INPUT_SETTINGS, + PIXEL_SIZE = Dali::Toolkit::TextField::Property::PIXEL_SIZE, + ENABLE_SELECTION = Dali::Toolkit::TextField::Property::ENABLE_SELECTION, + PLACEHOLDER = Dali::Toolkit::TextField::Property::PLACEHOLDER, + ELLIPSIS = Dali::Toolkit::TextField::Property::ELLIPSIS, /** - * @brief Hides the input characters and instead shows a default character for password or pin entry. - * @details name "hiddenInputSettings", type map. - * @note Optional. - * This property is currently being used for some applications, so it can't be changed. - * @see HiddenInput + * @brief Enables Text selection using Shift key. + * @details Name "enableShiftSelection", type Property::BOOLEAN. */ - HIDDEN_INPUT_SETTINGS = INPUT_OUTLINE + 1, + ENABLE_SHIFT_SELECTION = ELLIPSIS + 1, /** - * @brief The size of font in pixels. - * - * Conversion from Point size to Pixel size : - * Pixel size = Point size * DPI / 72 - * @details name "pixelSize", type float + * @brief Enables the grab handles for text selection. + * @details Name "enableGrabHandle", type Property::BOOLEAN. + * @note The default value is true, which means the grab handles are enabled by default. */ - PIXEL_SIZE = INPUT_OUTLINE + 2, - - /** - * @brief Enables Text selection, such as the cursor, handle, clipboard, and highlight color. - * @details name "enableSelection", type bool - */ - ENABLE_SELECTION = INPUT_OUTLINE + 3, - - /** - * @brief Sets the placeholder : text, color, font family, font style, point size, and pixel size. - * - * @code - * Property::Map propertyMap; - * propertyMap["placeholderText"] = "Setting Placeholder Text"; - * propertyMap["placeholderTextFocused"] = "Setting Placeholder Text Focused"; - * propertyMap["placeholderColor"] = Color::RED; - * propertyMap["placeholderFontFamily"] = "Arial"; - * propertyMap["placeholderPointSize"] = 12.0f; - * - * Property::Map fontStyleMap; - * fontStyleMap.Insert( "weight", "bold" ); - * fontStyleMap.Insert( "width", "condensed" ); - * fontStyleMap.Insert( "slant", "italic" ); - * propertyMap["placeholderFontStyle"] = fontStyleMap; - * - * field.SetProperty( DevelTextField::Property::PLACEHOLDER, propertyMap ); - * @endcode - * - * @details name "placeholder", type MAP - */ - PLACEHOLDER = INPUT_OUTLINE + 4 + ENABLE_GRAB_HANDLE = ELLIPSIS + 2 }; } // namespace Property