summaryrefslogtreecommitdiff
path: root/lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp')
-rwxr-xr-xlib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp43
1 files changed, 7 insertions, 36 deletions
diff --git a/lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp b/lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp
index 502ee8e..61d6b36 100755
--- a/lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp
+++ b/lib-contact/ct-detail/src/CtInputViewBasicInfoItem.cpp
@@ -78,7 +78,6 @@ CtInputViewBasicInfoItem::~CtInputViewBasicInfoItem()
void CtInputViewBasicInfoItem::__initialize()
{
- __focusEntry = NULL;
__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
__oldBaseInfoExpanded = false;
__baseInfoExpanded = true;
@@ -141,7 +140,7 @@ void CtInputViewBasicInfoItem::__initialize()
__addOrganization = false;
}
__updateItem = false;
- __isRealized = false;
+
__subItemSize = 0;
}
@@ -575,12 +574,8 @@ Evas_Object* CtInputViewBasicInfoItem::__createPhoneticFirstNameField(CtInputVie
evas_object_smart_callback_add(entry, "preedit,changed", __basicInfoPhoneticFirstNameChangedCb, item);
evas_object_smart_callback_add(entry, "activated", __activatedCb, item);
if (INPUT_ADDED_ITEM_INDEX_PHONETIC_INFO == item->__addedIndex ) {
- if (item->__isRealized) {
- elm_object_focus_set(entry, EINA_TRUE);
- item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
- } else {
- item->__focusEntry = entry;
- }
+ elm_object_focus_set(entry, EINA_TRUE);
+ item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
}
setEntryText(entry, phoneticName);
@@ -711,12 +706,8 @@ Evas_Object* CtInputViewBasicInfoItem::__createNicknameField(CtInputViewBasicInf
evas_object_smart_callback_add(entry, "preedit,changed", __basicInfoNicknameChangedCb, item);
evas_object_smart_callback_add(entry, "activated", __activatedCb, item);
if (INPUT_ADDED_ITEM_INDEX_NICKNAME == item->__addedIndex ) {
- if (item->__isRealized) {
- elm_object_focus_set(entry, EINA_TRUE);
- item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
- } else {
- item->__focusEntry = entry;
- }
+ elm_object_focus_set(entry, EINA_TRUE);
+ item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
}
setEntryText(entry, nickname);
@@ -763,12 +754,8 @@ Evas_Object* CtInputViewBasicInfoItem::__createCompanyField(CtInputViewBasicInfo
evas_object_smart_callback_add(entry, "preedit,changed", __basicInfoCompanyChangedCb, item);
evas_object_smart_callback_add(entry, "activated", __activatedCb, item);
if (INPUT_ADDED_ITEM_INDEX_ORGANIZATION == item->__addedIndex ) {
- if (item->__isRealized) {
- elm_object_focus_set(entry, EINA_TRUE);
- item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
- } else {
- item->__focusEntry = entry;
- }
+ elm_object_focus_set(entry, EINA_TRUE);
+ item->__addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
}
setEntryText(entry, company);
@@ -1498,19 +1485,3 @@ void CtInputViewBasicInfoItem::setAddedIndex(int addedIndex)
{
__addedIndex = addedIndex;
}
-
-void CtInputViewBasicInfoItem::onRealized()
-{
- __isRealized = true;
- if (__focusEntry) {
- elm_object_focus_set(__focusEntry, EINA_TRUE);
- __focusEntry = NULL;
- __addedIndex = INPUT_ADDED_ITEM_INDEX_NONE;
- }
-}
-
-void CtInputViewBasicInfoItem::onUnrealized()
-{
- __isRealized = false;
- __focusEntry = NULL;
-}