X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fcontrol%2Fcontrol-data-impl.h;h=561460fe8ed40ab5ef33e88044a595a6817e9205;hb=71d09612f906da516226b6d2040d509ab6f5c754;hp=634e7f605ec566b4f18d4d59bb3ac7049984f3f2;hpb=1b032e3f72c144d2da593a1c20d15041a3de00a3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/control/control-data-impl.h b/dali-toolkit/internal/controls/control/control-data-impl.h index 634e7f6..561460f 100755 --- a/dali-toolkit/internal/controls/control/control-data-impl.h +++ b/dali-toolkit/internal/controls/control/control-data-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_CONTROL_DATA_IMPL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -21,13 +21,15 @@ // EXTERNAL INCLUDES #include #include +#include +#include #include // INTERNAL INCLUDES #include #include +#include #include -#include #include #include #include @@ -333,40 +335,45 @@ public: bool FilterKeyEvent( const KeyEvent& event ); /** - * @brief Get the layout associated with this control, if any. - * - * @return A pointer to the layout, or NULL. + * @copydoc DevelControl::VisualEventSignal() */ - Toolkit::Internal::LayoutItemPtr GetLayout() const; + DevelControl::VisualEventSignalType& VisualEventSignal(); /** - * @brief Set the layout on this control. - * @param[in] layout Pointer to the layout + * @brief Sets whether the Autofill functionality is enabled. + * @param[in] autofillEnabled Set true when Autofill should be enabled. */ - void SetLayout( Toolkit::Internal::LayoutItem& layout ); + void SetAutofillEnabled( bool autofillEnabled ); /** - * @brief Remove the layout from this control - * - * @note This does not remove any children from this control, nor does it strip - * layouts from them but it does remove them from the layout hierarchy. + * @brief Check if the Autofill framework is enabled. + * @return True if Autofill is enabled */ - void RemoveLayout(); + bool IsAutofillEnabled(); /** - * @copydoc DevelControl::SetLayoutingRequired + * @brief Sets AutofillItemHandle + * @param item AutofillItem handle */ - void SetLayoutingRequired( bool layoutingRequired ); + void SetAutofillItemHandle( Dali::AutofillItem item ); /** - * @copydoc DevelControl::IsLayoutingRequired() + * @brief Gets AutofillItemHandle + * @return AutofillItem handle */ - bool IsLayoutingRequired(); + Dali::AutofillItem GetAutofillItemHandle(); /** - * @copydoc DevelControl::VisualEventSignal() + * @brief Sets AutofillContainer which this control belongs to. + * @param[in] container */ - DevelControl::VisualEventSignalType& VisualEventSignal(); + void SetAutofillContainer( Toolkit::AutofillContainer container ); + + /** + * @brief Gets AutofillContainer that the control belongs to. + * @return AutofillContainer handle + */ + Toolkit::AutofillContainer GetAutofillContainer(); private: @@ -413,9 +420,6 @@ public: DevelControl::State mState; std::string mSubStateName; - // Layout - Toolkit::Internal::LayoutItemPtr mLayout; - int mLeftFocusableActorId; ///< Actor ID of Left focusable control. int mRightFocusableActorId; ///< Actor ID of Right focusable control. int mUpFocusableActorId; ///< Actor ID of Up focusable control. @@ -443,11 +447,13 @@ public: TooltipPtr mTooltip; InputMethodContext mInputMethodContext; + AutofillItem mAutofillItem; + Toolkit::AutofillContainer mAutofillContainer; ControlBehaviour mFlags : CONTROL_BEHAVIOUR_FLAG_COUNT; ///< Flags passed in from constructor. bool mIsKeyboardNavigationSupported :1; ///< Stores whether keyboard navigation is supported by the control. bool mIsKeyboardFocusGroup :1; ///< Stores whether the control is a focus group. - bool mIsLayoutingRequired :1; ///< Stores whether the control needs to be Layout + bool mIsAutofillEnabled : 1; ///< Stroes whether the Autofill functionality is enabled. RegisteredVisualContainer mRemoveVisuals; ///< List of visuals that are being replaced by another visual once ready