#include <Elementary.h>
#include <vconf.h>
#include <wifi-direct.h>
+#include <efl_extension.h>
#include "wfd_ug.h"
#include "wfd_ug_view.h"
elm_object_focus_set(entry, EINA_FALSE);
}
}
+
static char *__wfd_main_rename_desc_label_get(void *data, Evas_Object *obj,
const char *part)
{
return NULL;
}
- if (!strcmp(part, "elm.text.multiline")) {
- return g_strdup(_("IDS_ST_POP_DEVICE_NAMES_ARE_DISPLAYED_TO_DISTINGUISH_EACH_OF_THE_DEVICES_AVAILABLE_MSG"));
+ if (!strcmp("elm.text.multiline", part)) {
+ char buf[WFD_GLOBALIZATION_STR_LENGTH] = {0, };
+ snprintf(buf, WFD_GLOBALIZATION_STR_LENGTH, "<font_size=30>%s</font_size>",
+ _("IDS_ST_POP_DEVICE_NAMES_ARE_DISPLAYED_TO_DISTINGUISH_EACH_OF_THE_DEVICES_AVAILABLE_MSG"));
+ return g_strdup(buf);
}
__FUNC_EXIT__;
return NULL;
if (!strcmp(part, "elm.icon.entry")) {
name_value = elm_entry_utf8_to_markup(ugd->dev_name);
- entry = ea_editfield_add(obj, EA_EDITFIELD_SCROLL_SINGLELINE);
+ entry = elm_entry_add(obj);
+ elm_entry_single_line_set(entry, EINA_TRUE);
+ elm_object_style_set(entry, "editfield");
+ elm_entry_scrollable_set(entry, EINA_TRUE);
limit_filter_data.max_char_count = WSC_SPEC_DEVICE_NAME_MAX_LEN;
elm_entry_markup_filter_append(entry, elm_entry_filter_limit_size, &limit_filter_data);
evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
- ea_entry_selection_back_event_allow_set(entry, EINA_TRUE);
+ eext_entry_selection_back_event_allow_set(entry, EINA_TRUE);
elm_object_signal_emit(entry, "elm,action,hide,search_icon", "");
elm_object_domain_translatable_part_text_set(entry, "elm.guide",
PACKAGE, "IDS_STU_HEADER_ENTER_DEVICE_NAME");
Evas_Object *layout = NULL;
Elm_Object_Item *git = NULL;
- popup = elm_popup_add(ugd->layout);
-// elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
- ea_object_event_callback_add(popup, EA_CALLBACK_BACK, _rename_popup_cancel_cb, ugd);
+ popup = elm_popup_add(ugd->base);
+ elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, _rename_popup_cancel_cb, ugd);
evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_domain_translatable_part_text_set(popup, "title,text",
PACKAGE, "IDS_ST_HEADER_RENAME_DEVICE");
/* Entry genlist item */
ugd->rename_entry_itc = elm_genlist_item_class_new();
- WFD_RET_IF(ugd->rename_entry_itc == NULL, "rename_entry_itc is NULL\n");
- ugd->rename_entry_itc->item_style = "entry";
- ugd->rename_entry_itc->func.text_get = NULL;
- ugd->rename_entry_itc->func.content_get = __wfd_main_rename_entry_icon_get;
- ugd->rename_entry_itc->func.state_get = NULL;
- ugd->rename_entry_itc->func.del = NULL;
-
- elm_genlist_item_append(genlist, ugd->rename_entry_itc, ugd,
- NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ if(ugd->rename_entry_itc != NULL) {
+ ugd->rename_entry_itc->item_style = "entry";
+ ugd->rename_entry_itc->func.text_get = NULL;
+ ugd->rename_entry_itc->func.content_get = __wfd_main_rename_entry_icon_get;
+ ugd->rename_entry_itc->func.state_get = NULL;
+ ugd->rename_entry_itc->func.del = NULL;
+
+ elm_genlist_item_append(genlist, ugd->rename_entry_itc, ugd,
+ NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ }
ugd->rename_desc_itc = elm_genlist_item_class_new();
- WFD_RET_IF(ugd->rename_desc_itc == NULL, "rename_desc_itc is NULL\n");
- ugd->rename_desc_itc->item_style = "multiline_sub";
- ugd->rename_desc_itc->func.text_get = __wfd_main_rename_desc_label_get;
- ugd->rename_desc_itc->func.content_get = NULL;
- ugd->rename_desc_itc->func.state_get = NULL;
- ugd->rename_desc_itc->func.del = NULL;
-
- git = elm_genlist_item_append(genlist, ugd->rename_desc_itc, NULL, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
- if(git != NULL)
- elm_genlist_item_select_mode_set(git,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ if(ugd->rename_desc_itc != NULL) {
+ ugd->rename_desc_itc->item_style = WFD_GENLIST_MULTILINE_TEXT_STYLE;
+ ugd->rename_desc_itc->func.text_get = __wfd_main_rename_desc_label_get;
+ ugd->rename_desc_itc->func.content_get = NULL;
+ ugd->rename_desc_itc->func.state_get = NULL;
+ ugd->rename_desc_itc->func.del = NULL;
+
+ git = elm_genlist_item_append(genlist, ugd->rename_desc_itc, NULL, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ if(git != NULL)
+ elm_genlist_item_select_mode_set(git,
+ ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ }
button = elm_button_add(popup);
elm_object_style_set(button, "popup");
elm_object_part_content_set(popup, "button2", button);
evas_object_smart_callback_add(button, "clicked", _rename_popup_ok_cb, ugd);
ugd->rename_button = button;
- evas_object_show(button);
elm_genlist_realization_mode_set(genlist, EINA_TRUE);
evas_object_show(genlist);
evas_object_show(popup);
elm_object_focus_set(ugd->rename_entry, EINA_TRUE);
ugd->rename_popup = popup;
- evas_object_show(button);
__FUNC_EXIT__;
}