projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Add AutofillContainer class and autofill implementation
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
control
/
control-data-impl.h
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
(executable)
--- 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
/*
#define DALI_TOOLKIT_CONTROL_DATA_IMPL_H
/*
- * Copyright (c) 201
8
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
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.
*
* 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 <dali/public-api/object/type-registry.h>
#include <dali-toolkit/devel-api/controls/control-devel.h>
// EXTERNAL INCLUDES
#include <dali/public-api/object/type-registry.h>
#include <dali-toolkit/devel-api/controls/control-devel.h>
+#include <dali/devel-api/adaptor-framework/autofill-item.h>
+#include <dali/devel-api/adaptor-framework/autofill-manager.h>
#include <string>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/visuals/visual-event-observer.h>
#include <dali-toolkit/public-api/controls/control-impl.h>
#include <string>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/visuals/visual-event-observer.h>
#include <dali-toolkit/public-api/controls/control-impl.h>
+#include <dali-toolkit/devel-api/controls/text-controls/autofill-container.h>
#include <dali/devel-api/common/owner-container.h>
#include <dali/devel-api/common/owner-container.h>
-#include <dali-toolkit/devel-api/layouting/layout-item-impl.h>
#include <dali-toolkit/devel-api/visual-factory/visual-base.h>
#include <dali-toolkit/internal/controls/tooltip/tooltip.h>
#include <dali-toolkit/internal/builder/style.h>
#include <dali-toolkit/devel-api/visual-factory/visual-base.h>
#include <dali-toolkit/internal/controls/tooltip/tooltip.h>
#include <dali-toolkit/internal/builder/style.h>
@@
-333,40
+335,45
@@
public:
bool FilterKeyEvent( const KeyEvent& event );
/**
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 Set
s whether the Autofill functionality is enabled
.
+ * @param[in]
autofillEnabled Set true when Autofill should be enabled.
*/
*/
- void Set
Layout( Toolkit::Internal::LayoutItem& layout
);
+ void Set
AutofillEnabled( 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 Set
LayoutingRequired( bool layoutingRequired
);
+ void Set
AutofillItemHandle( 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:
private:
@@
-413,9
+420,6
@@
public:
DevelControl::State mState;
std::string mSubStateName;
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.
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;
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.
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 mIs
LayoutingRequired :1; ///< Stores whether the control needs to be Layout
+ bool mIs
AutofillEnabled : 1; ///< Stroes whether the Autofill functionality is enabled.
RegisteredVisualContainer mRemoveVisuals; ///< List of visuals that are being replaced by another visual once ready
RegisteredVisualContainer mRemoveVisuals; ///< List of visuals that are being replaced by another visual once ready