Change-Id: I291f30fd4e144cf935742afff44a4cad850a8ed1
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
13 files changed:
%define _unpackaged_files_terminate_build 0
Name: wifi-efl-ug
Summary: Wi-Fi UI Gadget for TIZEN
%define _unpackaged_files_terminate_build 0
Name: wifi-efl-ug
Summary: Wi-Fi UI Gadget for TIZEN
Release: 1
Group: App/Network
License: Flora-1.1
Release: 1
Group: App/Network
License: Flora-1.1
g_eap_entry_itc.func.state_get = NULL;
g_eap_entry_itc.func.del = _gl_eap_entry_item_del;
g_eap_entry_itc.func.state_get = NULL;
g_eap_entry_itc.func.del = _gl_eap_entry_item_del;
- g_eap_chkbox_itc.item_style = "1line";
+ g_eap_chkbox_itc.item_style = WIFI_GENLIST_1LINE_TEXT_ICON_STYLE;
g_eap_chkbox_itc.func.text_get = _gl_eap_chkbox_item_text_get;
g_eap_chkbox_itc.func.content_get = _gl_eap_chkbox_item_content_get;
g_eap_chkbox_itc.func.state_get = NULL;
g_eap_chkbox_itc.func.text_get = _gl_eap_chkbox_item_text_get;
g_eap_chkbox_itc.func.content_get = _gl_eap_chkbox_item_content_get;
g_eap_chkbox_itc.func.state_get = NULL;
auth_type = __common_eap_connect_popup_get_auth_type(ap);
item = common_utils_add_2_line_txt_disabled_item(view_list,
auth_type = __common_eap_connect_popup_get_auth_type(ap);
item = common_utils_add_2_line_txt_disabled_item(view_list,
+ WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
sc(str_pkg_name, I18N_TYPE_EAP_method),
list_eap_type[eap_type].name);
eap_info_list_data->eap_method_item = item;
sc(str_pkg_name, I18N_TYPE_EAP_method),
list_eap_type[eap_type].name);
eap_info_list_data->eap_method_item = item;
if (eap_type == EAP_SEC_TYPE_PEAP ||
eap_type == EAP_SEC_TYPE_TTLS) {
/* Add EAP phase2 authentication */
if (eap_type == EAP_SEC_TYPE_PEAP ||
eap_type == EAP_SEC_TYPE_TTLS) {
/* Add EAP phase2 authentication */
- item = common_utils_add_2_line_txt_disabled_item(
- view_list, "2line.top",
+ item = common_utils_add_2_line_txt_disabled_item(view_list,
+ WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
sc(str_pkg_name, I18N_TYPE_Phase_2_authentication),
list_eap_auth[auth_type].name);
eap_info_list_data->eap_auth_item = item;
sc(str_pkg_name, I18N_TYPE_Phase_2_authentication),
list_eap_auth[auth_type].name);
eap_info_list_data->eap_auth_item = item;
I18N_TYPE_Unspecified));
}
I18N_TYPE_Unspecified));
}
- item = common_utils_add_2_line_txt_disabled_item(
- view_list, "2line.top",
+ item = common_utils_add_2_line_txt_disabled_item(view_list,
+ WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
sc(str_pkg_name, I18N_TYPE_User_Certificate),
temp_str);
eap_info_list_data->user_cert_item = item;
sc(str_pkg_name, I18N_TYPE_User_Certificate),
temp_str);
eap_info_list_data->user_cert_item = item;
bool is_paswd_set;
temp_str = NULL;
wifi_ap_get_eap_passphrase(ap, &temp_str, &is_paswd_set);
bool is_paswd_set;
temp_str = NULL;
wifi_ap_get_eap_passphrase(ap, &temp_str, &is_paswd_set);
- item = common_utils_add_2_line_txt_disabled_item(view_list, "2line.top",
- sc(str_pkg_name, I18N_TYPE_Identity), temp_str);
+ item = common_utils_add_2_line_txt_disabled_item(view_list,
+ WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
+ sc(str_pkg_name, I18N_TYPE_Identity),
+ temp_str);
eap_info_list_data->id_item = item;
g_free(temp_str);
eap_info_list_data->id_item = item;
g_free(temp_str);
static char *_gl_wps_text_get(void *data, Evas_Object *obj, const char *part)
{
static char *_gl_wps_text_get(void *data, Evas_Object *obj, const char *part)
{
- if (!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, (int)data));
return g_strdup(dgettext(PACKAGE, buf));
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, (int)data));
return g_strdup(dgettext(PACKAGE, buf));
elm_scroller_content_min_limit(genlist, EINA_FALSE, EINA_TRUE);
evas_object_smart_callback_add(genlist, "realized", _gl_realized, NULL);
elm_scroller_content_min_limit(genlist, EINA_FALSE, EINA_TRUE);
evas_object_smart_callback_add(genlist, "realized", _gl_realized, NULL);
- wps_itc.item_style = "1line";
+ wps_itc.item_style = WIFI_GENLIST_1LINE_TEXT_STYLE;
wps_itc.func.text_get = _gl_wps_text_get;
wps_itc.func.content_get = NULL;
wps_itc.func.state_get = NULL;
wps_itc.func.text_get = _gl_wps_text_get;
wps_itc.func.content_get = NULL;
wps_itc.func.state_get = NULL;
evas_object_show(genlist);
evas_object_show(genlist);
- eext_object_event_callback_add(popup, EA_CALLBACK_BACK,
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
popup_info->cancel_cb, popup_info->cb_data);
elm_object_content_set(popup, genlist);
evas_object_show(popup);
popup_info->cancel_cb, popup_info->cb_data);
elm_object_content_set(popup, genlist);
evas_object_show(popup);
static char *_passwd_popup_wps_item_text_get(void *data, Evas_Object *obj,
const char *part)
{
static char *_passwd_popup_wps_item_text_get(void *data, Evas_Object *obj,
const char *part)
{
- if (!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_WPS));
return strdup(buf);
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_WPS));
return strdup(buf);
Evas_Object *obj, const char *part)
{
Evas_Object *icon = NULL;
Evas_Object *obj, const char *part)
{
Evas_Object *icon = NULL;
- Evas_Object *ic = NULL;
-
- ic = elm_layout_add(obj);
- retvm_if(NULL == ic, NULL);
-
- if (!g_strcmp0(part, "elm.icon.1")) {
- elm_layout_theme_set(ic, "layout", "list/B/type.3", "default");
+ if (!strcmp("elm.swallow.icon", part)) {
- icon = elm_image_add(ic);
+ icon = elm_image_add(obj);
retvm_if(NULL == icon, NULL);
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, "wifi_icon_wps.png");
evas_object_color_set(icon, 2, 61, 132, 153);
retvm_if(NULL == icon, NULL);
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, "wifi_icon_wps.png");
evas_object_color_set(icon, 2, 61, 132, 153);
- evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_part_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, DEFAULT_BUTTON_CIRCLE_SIZE, DEFAULT_BUTTON_CIRCLE_SIZE);
}
static void _entry_edit_mode_show_cb(void *data, Evas *e, Evas_Object *obj,
}
static void _entry_edit_mode_show_cb(void *data, Evas *e, Evas_Object *obj,
static char *_gl_pswd_check_box_item_text_get(void *data, Evas_Object *obj,
const char *part)
{
static char *_gl_pswd_check_box_item_text_get(void *data, Evas_Object *obj,
const char *part)
{
- if (!g_strcmp0(part, "elm.text")) {
+ if (!strcmp("elm.text", part)) {
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Show_password));
return strdup(buf);
char buf[1024];
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Show_password));
return strdup(buf);
Evas_Object *check = NULL;
pswd_popup_t *pswd_popup_data = (pswd_popup_t *)data;
Evas_Object *check = NULL;
pswd_popup_t *pswd_popup_data = (pswd_popup_t *)data;
- if(!g_strcmp0(part, "elm.swallow.end")) {
+ if (!strcmp("elm.swallow.end", part)) {
check = elm_check_add(obj);
evas_object_propagate_events_set(check, EINA_FALSE);
check = elm_check_add(obj);
evas_object_propagate_events_set(check, EINA_FALSE);
Evas_Object *passpopup = NULL;
Evas_Object *genlist = NULL;
Evas_Object *btn_ok = NULL;
Evas_Object *passpopup = NULL;
Evas_Object *genlist = NULL;
Evas_Object *btn_ok = NULL;
- Evas_Object *box = NULL;
elm_access_info_set(ao, ELM_ACCESS_INFO, popup_info->title);
#endif
elm_access_info_set(ao, ELM_ACCESS_INFO, popup_info->title);
#endif
- box = elm_box_add(passpopup);
- evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
- genlist = elm_genlist_add(box);
+ genlist = elm_genlist_add(passpopup);
elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
elm_scroller_content_min_limit(genlist, EINA_FALSE, EINA_TRUE);
evas_object_size_hint_weight_set(genlist,
elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
elm_scroller_content_min_limit(genlist, EINA_FALSE, EINA_TRUE);
evas_object_size_hint_weight_set(genlist,
NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
/* Checkbox genlist item */
NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
/* Checkbox genlist item */
- g_check_box_itc.item_style = "type1";
+ g_check_box_itc.item_style = WIFI_GENLIST_1LINE_TEXT_ICON_STYLE;
g_check_box_itc.func.text_get = _gl_pswd_check_box_item_text_get;
g_check_box_itc.func.content_get = _gl_pswd_check_box_item_content_get;
g_check_box_itc.func.state_get = NULL;
g_check_box_itc.func.text_get = _gl_pswd_check_box_item_text_get;
g_check_box_itc.func.content_get = _gl_pswd_check_box_item_content_get;
g_check_box_itc.func.state_get = NULL;
if (popup_info->show_wps_btn) {
/* WPS options genlist item */
if (popup_info->show_wps_btn) {
/* WPS options genlist item */
- g_wps_itc.item_style = "1line";
+ g_wps_itc.item_style = WIFI_GENLIST_1LINE_TEXT_ICON_STYLE;
g_wps_itc.func.text_get = _passwd_popup_wps_item_text_get;
g_wps_itc.func.content_get = _passwd_popup_wps_item_content_get;
g_wps_itc.func.state_get = NULL;
g_wps_itc.func.text_get = _passwd_popup_wps_item_text_get;
g_wps_itc.func.content_get = _passwd_popup_wps_item_content_get;
g_wps_itc.func.state_get = NULL;
}
evas_object_show(genlist);
}
evas_object_show(genlist);
- elm_box_pack_end(box, genlist);
- evas_object_size_hint_min_set(box, -1, ELM_SCALE_SIZE(100));
- elm_object_content_set(passpopup, box);
+
+ elm_object_content_set(passpopup, genlist);
evas_object_smart_callback_add(passpopup, "show,finished",
popup_animation_finish_cb, entry_item);
evas_object_smart_callback_add(passpopup, "show,finished",
popup_animation_finish_cb, entry_item);
static char *__common_utils_2line_text_get(void *data, Evas_Object *obj, const char *part)
{
two_line_disp_data_t *item_data = (two_line_disp_data_t *)data;
static char *__common_utils_2line_text_get(void *data, Evas_Object *obj, const char *part)
{
two_line_disp_data_t *item_data = (two_line_disp_data_t *)data;
- if (!g_strcmp0(part, "elm.text.sub.left.bottom")) {
- return g_strdup(item_data->info_str);
- } else if (!g_strcmp0(part, "elm.text.main.left.top")) {
+ if (!strcmp("elm.text", part)) {
return g_strdup(item_data->title_str);
return g_strdup(item_data->title_str);
+ } else if (!strcmp("elm.text.sub", part)) {
+ return g_strdup(item_data->info_str);
layout = elm_layout_add(navi_frame);
elm_layout_theme_set(layout, "layout", "application", "noindicator");
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
layout = elm_layout_add(navi_frame);
elm_layout_theme_set(layout, "layout", "application", "noindicator");
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
- Evas_Object* bg = elm_bg_add(layout);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_style_set(bg, "group_list");
- elm_object_part_content_set(layout, "elm.swallow.bg", bg);
-
evas_object_show(layout);
return layout;
evas_object_show(layout);
return layout;
if (popup_data->btn1_cb) {
evas_object_smart_callback_add(btn_1, "clicked",
popup_data->btn1_cb, popup_data->btn1_data);
if (popup_data->btn1_cb) {
evas_object_smart_callback_add(btn_1, "clicked",
popup_data->btn1_cb, popup_data->btn1_data);
- eext_object_event_callback_add(popup, EA_CALLBACK_BACK,
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
popup_data->btn1_cb, popup_data->btn1_data);
} else {
evas_object_smart_callback_add(btn_1, "clicked",
__common_utils_del_popup, popup);
popup_data->btn1_cb, popup_data->btn1_data);
} else {
evas_object_smart_callback_add(btn_1, "clicked",
__common_utils_del_popup, popup);
- eext_object_event_callback_add(popup, EA_CALLBACK_BACK,
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
__common_utils_del_popup, popup);
}
}
__common_utils_del_popup, popup);
}
}
#define WIFI_GENLIST_MULTILINE_TEXT_STYLE "multiline"
#define WIFI_GENLIST_GROUP_INDEX_STYLE "group_index"
#define WIFI_GENLIST_MULTILINE_TEXT_STYLE "multiline"
#define WIFI_GENLIST_GROUP_INDEX_STYLE "group_index"
+/* Icon Size*/
+#define DEFAULT_BG_SIZE 96
+#define DEFAULT_BUTTON_CIRCLE_SIZE 40
+
typedef enum {
UG_VIEW_DEFAULT = 0,
UG_VIEW_SETUP_WIZARD
typedef enum {
UG_VIEW_DEFAULT = 0,
UG_VIEW_SETUP_WIZARD
#include <vconf.h>
#include <vconf-keys.h>
#include <vconf.h>
#include <vconf-keys.h>
#include <app_control_internal.h>
#include <efl_extension.h>
#include <app_control_internal.h>
#include <efl_extension.h>
struct _private_data g_pd;
/* Prototype */
struct _private_data g_pd;
/* Prototype */
-static char *_gl_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_network_notification_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_sort_by_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_sort_by_sub_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_network_notification_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_sort_by_text_get(void *data, Evas_Object *obj, const char *part);
static char *_gl_sort_by_sub_text_get(void *data, Evas_Object *obj, const char *part);
-static char *_gl_never_text_get(void *data, Evas_Object *obj,const char *part);
-static char *_gl_keep_wifi_on_during_sleep_text_get(void *data, Evas_Object *obj,const char *part);
static Evas_Object *_gl_content_get_network_noti(void *data, Evas_Object *obj, const char *part);
static Evas_Object *_gl_content_get_network_noti(void *data, Evas_Object *obj, const char *part);
-static Evas_Object *_gl_content_get_keep_wifi_sub(void *data, Evas_Object *obj, const char *part);
static Evas_Object *_gl_content_get_sort_by_sub(void *data, Evas_Object *obj, const char *part);
static char *_gl_install_certificate_text_get(void *data, Evas_Object *obj, const char *part);
static Evas_Object *_gl_content_get_sort_by_sub(void *data, Evas_Object *obj, const char *part);
static char *_gl_install_certificate_text_get(void *data, Evas_Object *obj, const char *part);
+#if TIZEN_SLEEP_POLICY
+static char *_gl_text_get(void *data, Evas_Object *obj, const char *part);
+static char *_gl_never_text_get(void *data, Evas_Object *obj,const char *part);
+static char *_gl_keep_wifi_on_during_sleep_text_get(void *data, Evas_Object *obj,const char *part);
+static Evas_Object *_gl_content_get_keep_wifi_sub(void *data, Evas_Object *obj, const char *part);
+#endif
/* Global variables for elm_genlist itc */
static Elm_Genlist_Item_Class itc_network_noti = {
/* Global variables for elm_genlist itc */
static Elm_Genlist_Item_Class itc_network_noti = {
- .item_style = "multiline_sub.main.1icon",
+ .item_style = WIFI_GENLIST_MULTILINE_TEXT_STYLE,
.func.text_get = _gl_network_notification_text_get,
.func.content_get = _gl_content_get_network_noti
};
.func.text_get = _gl_network_notification_text_get,
.func.content_get = _gl_content_get_network_noti
};
static Elm_Genlist_Item_Class itc_keep_wifi = {
static Elm_Genlist_Item_Class itc_keep_wifi = {
- .item_style = "2line.top",
+ .item_style = WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
.func.text_get = _gl_keep_wifi_on_during_sleep_text_get,
};
static Elm_Genlist_Item_Class itc_keep_wifi_sub = {
.func.text_get = _gl_keep_wifi_on_during_sleep_text_get,
};
static Elm_Genlist_Item_Class itc_keep_wifi_sub = {
+ .item_style = WIFI_GENLIST_1LINE_TEXT_ICON_STYLE,
.func.text_get = _gl_text_get,
.func.content_get = _gl_content_get_keep_wifi_sub,
};
static Elm_Genlist_Item_Class itc_keep_wifi_sub_never = {
.func.text_get = _gl_text_get,
.func.content_get = _gl_content_get_keep_wifi_sub,
};
static Elm_Genlist_Item_Class itc_keep_wifi_sub_never = {
- .item_style = "2line.top",
+ .item_style = WIFI_GENLIST_2LINE_TOP_TEXT_ICON_STYLE,
.func.text_get = _gl_never_text_get,
.func.content_get = _gl_content_get_keep_wifi_sub,
};
.func.text_get = _gl_never_text_get,
.func.content_get = _gl_content_get_keep_wifi_sub,
};
static Elm_Genlist_Item_Class itc_sort_by = {
static Elm_Genlist_Item_Class itc_sort_by = {
- .item_style = "2line.top",
+ .item_style = WIFI_GENLIST_2LINE_TOP_TEXT_STYLE,
.func.text_get = _gl_sort_by_text_get,
};
static Elm_Genlist_Item_Class itc_sort_by_sub = {
.func.text_get = _gl_sort_by_text_get,
};
static Elm_Genlist_Item_Class itc_sort_by_sub = {
+ .item_style = WIFI_GENLIST_1LINE_TEXT_ICON_STYLE,
.func.text_get = _gl_sort_by_sub_text_get,
.func.content_get = _gl_content_get_sort_by_sub,
};
static Elm_Genlist_Item_Class itc_install_cert = {
.func.text_get = _gl_sort_by_sub_text_get,
.func.content_get = _gl_content_get_sort_by_sub,
};
static Elm_Genlist_Item_Class itc_install_cert = {
+ .item_style = WIFI_GENLIST_1LINE_TEXT_STYLE,
.func.text_get = _gl_install_certificate_text_get,
};
.func.text_get = _gl_install_certificate_text_get,
};
- if (!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Install_certificate));
return strdup(buf);
}
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Install_certificate));
return strdup(buf);
}
elm_genlist_item_selected_set(g_pd.item_install_cert, EINA_FALSE);
}
elm_genlist_item_selected_set(g_pd.item_install_cert, EINA_FALSE);
}
static int _convert_wifi_keep_value_to_vconf(int i18n_key)
{
switch (i18n_key) {
static int _convert_wifi_keep_value_to_vconf(int i18n_key)
{
switch (i18n_key) {
int _convert_sort_by_value_to_vconf(int i18n_key)
{
int _convert_sort_by_value_to_vconf(int i18n_key)
{
const char *part)
{
char buf[1024];
const char *part)
{
char buf[1024];
- if (!g_strcmp0(part, "elm.text.main.left.top")||!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
}
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
}
- } else if (!g_strcmp0(part, "elm.text.sub.left.bottom")) {
+ } else if (!strcmp("elm.text.sub", part)) {
int value;
value = _convert_vconf_to_sort_by_value(
int value;
value = _convert_vconf_to_sort_by_value(
static char *_gl_sort_by_sub_text_get(void *data, Evas_Object *obj, const char *part)
{
char buf[1024];
static char *_gl_sort_by_sub_text_get(void *data, Evas_Object *obj, const char *part)
{
char buf[1024];
- if (!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
- if (!g_strcmp0(part, "elm.text.main")) {
+ if (!strcmp("elm.text", part)) {
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Network_notification));
return strdup(buf);
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Network_notification));
return strdup(buf);
- } else if (!g_strcmp0(part, "elm.text.multiline")) {
- snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Network_notify_me_later));
+ } else if (!strcmp("elm.text.multiline", part)) {
+ snprintf(buf, 1023, "<font_size=30>%s</font_size>",
+ sc(PACKAGE, I18N_TYPE_Network_notify_me_later));
return strdup(buf);
}
return NULL;
}
return strdup(buf);
}
return NULL;
}
static char *_gl_text_get(void *data, Evas_Object *obj,
const char *part)
{
char buf[1024];
static char *_gl_text_get(void *data, Evas_Object *obj,
const char *part)
{
char buf[1024];
- if (!g_strcmp0(part, "elm.text.main.left")) {
+ if (!strcmp("elm.text", part)) {
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
if ((int) data != 0) {
snprintf(buf, 1023, "%s", sc(PACKAGE, (int) data));
return strdup(buf);
- if(!strcmp(part, "elm.text.main.left.top")) {
+ if (!strcmp("elm.text", part)) {
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Keep_WIFI_on_during_sleep));
return strdup(buf);
snprintf(buf, 1023, "%s", sc(PACKAGE, I18N_TYPE_Keep_WIFI_on_during_sleep));
return strdup(buf);
- }
-
- if(!strcmp(part, "elm.text.sub.left.bottom")) {
+ } else if (!strcmp("elm.text.sub", part)) {
int value;
value = _convert_vconf_to_wifi_keep_value(
common_util_get_system_registry(VCONF_SLEEP_POLICY));
int value;
value = _convert_vconf_to_wifi_keep_value(
common_util_get_system_registry(VCONF_SLEEP_POLICY));
static char *_gl_never_text_get(void *data, Evas_Object *obj,
const char *part)
{
static char *_gl_never_text_get(void *data, Evas_Object *obj,
const char *part)
{
- if (!g_strcmp0(part, "elm.text.main.left.top")) {
+ if (!strcmp("elm.text", part)) {
return g_strdup(sc(PACKAGE, I18N_TYPE_Donot_Use));
return g_strdup(sc(PACKAGE, I18N_TYPE_Donot_Use));
- } else if (!g_strcmp0(part, "elm.text.sub.left.bottom")) {
+ } else if (!strcmp("elm.text.sub", part)) {
return g_strdup(sc(PACKAGE, I18N_TYPE_Increases_Data_Usage));
}
return NULL;
}
return g_strdup(sc(PACKAGE, I18N_TYPE_Increases_Data_Usage));
}
return NULL;
}
static void _gl_changed_network_noti(void *data, Evas_Object *obj,
void *event_info)
static void _gl_changed_network_noti(void *data, Evas_Object *obj,
void *event_info)
Evas_Object *toggle_btn = NULL;
int ret;
Evas_Object *toggle_btn = NULL;
int ret;
-
- if (!strncmp(part, "elm.icon", strlen(part))) {
+ if (!strcmp("elm.swallow.end", part)) {
toggle_btn = elm_check_add(obj);
evas_object_size_hint_align_set(toggle_btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(toggle_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
toggle_btn = elm_check_add(obj);
evas_object_size_hint_align_set(toggle_btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(toggle_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
static void _gl_changed_keep_wifi_sub(void *data, Evas_Object *obj,
void *event_info)
{
static void _gl_changed_keep_wifi_sub(void *data, Evas_Object *obj,
void *event_info)
{
__COMMON_FUNC_ENTER__;
Evas_Object *radio;
int value;
__COMMON_FUNC_ENTER__;
Evas_Object *radio;
int value;
- Evas_Object *content = elm_layout_add(obj);
+ Evas_Object *content = NULL;
if (!g_pd.keep_wifi_radio_group) {
g_pd.keep_wifi_radio_group = elm_radio_add(obj);
elm_radio_state_value_set (g_pd.keep_wifi_radio_group, -1);
}
if (!g_pd.keep_wifi_radio_group) {
g_pd.keep_wifi_radio_group = elm_radio_add(obj);
elm_radio_state_value_set (g_pd.keep_wifi_radio_group, -1);
}
- if (!g_strcmp0(part, "elm.icon.2")) {
+ if (!strcmp("elm.swallow.end", part)) {
+ content = elm_layout_add(obj);
+
elm_layout_theme_set(content, "layout", "list/C/type.2", "default");
radio = elm_radio_add(content);
#ifdef ACCESSIBLITY_FEATURE
elm_layout_theme_set(content, "layout", "list/C/type.2", "default");
radio = elm_radio_add(content);
#ifdef ACCESSIBLITY_FEATURE
__COMMON_FUNC_EXIT__;
return content;
}
__COMMON_FUNC_EXIT__;
return content;
}
static void _gl_changed_sort_by_sub(void *data, Evas_Object *obj,
void *event_info)
static void _gl_changed_sort_by_sub(void *data, Evas_Object *obj,
void *event_info)
Evas_Object *radio;
int value;
Evas_Object *radio;
int value;
- Evas_Object *content = elm_layout_add(obj);
+ Evas_Object *content = NULL;
if (!g_pd.sort_by_radio_group) {
g_pd.sort_by_radio_group = elm_radio_add(obj);
elm_radio_state_value_set (g_pd.sort_by_radio_group, -1);
}
if (!g_pd.sort_by_radio_group) {
g_pd.sort_by_radio_group = elm_radio_add(obj);
elm_radio_state_value_set (g_pd.sort_by_radio_group, -1);
}
- if (!g_strcmp0(part, "elm.icon.2")) {
+ if (!strcmp("elm.swallow.end", part)) {
+ content = elm_layout_add(obj);
+
elm_layout_theme_set(content, "layout", "list/C/type.2", "default");
radio = elm_radio_add(content);
#ifdef ACCESSIBLITY_FEATURE
elm_layout_theme_set(content, "layout", "list/C/type.2", "default");
radio = elm_radio_add(content);
#ifdef ACCESSIBLITY_FEATURE
static void _gl_keep_wifi(void *data, Evas_Object *obj, void *event_info)
{
__COMMON_FUNC_ENTER__;
Evas_Object *genlist;
g_pd.keep_wifi_popup = elm_popup_add(obj);
static void _gl_keep_wifi(void *data, Evas_Object *obj, void *event_info)
{
__COMMON_FUNC_ENTER__;
Evas_Object *genlist;
g_pd.keep_wifi_popup = elm_popup_add(obj);
- eext_object_event_callback_add(g_pd.keep_wifi_popup, EA_CALLBACK_BACK, eext_popup_back_cb, NULL);
+ eext_object_event_callback_add(g_pd.keep_wifi_popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
elm_object_domain_translatable_part_text_set(g_pd.keep_wifi_popup,
"title,text", PACKAGE, "IDS_ST_BODY_KEEP_WI_FI_ON_DURING_SLEEP");
elm_popup_align_set(g_pd.keep_wifi_popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
elm_object_domain_translatable_part_text_set(g_pd.keep_wifi_popup,
"title,text", PACKAGE, "IDS_ST_BODY_KEEP_WI_FI_ON_DURING_SLEEP");
elm_popup_align_set(g_pd.keep_wifi_popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
elm_genlist_item_selected_set(g_pd.item_keep_wifi_switch, EINA_FALSE);
__COMMON_FUNC_EXIT__;
}
elm_genlist_item_selected_set(g_pd.item_keep_wifi_switch, EINA_FALSE);
__COMMON_FUNC_EXIT__;
}
static void _gl_sort_by(void *data, Evas_Object *obj, void *event_info)
{
static void _gl_sort_by(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *genlist = NULL;
g_pd.sort_by_popup = elm_popup_add(obj);
Evas_Object *genlist = NULL;
g_pd.sort_by_popup = elm_popup_add(obj);
- eext_object_event_callback_add(g_pd.sort_by_popup, EA_CALLBACK_BACK, eext_popup_back_cb, NULL);
+ eext_object_event_callback_add(g_pd.sort_by_popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
elm_object_domain_translatable_part_text_set(g_pd.sort_by_popup,
"title,text", PACKAGE, "IDS_WIFI_BODY_SORT_BY");
elm_popup_align_set(g_pd.sort_by_popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
elm_object_domain_translatable_part_text_set(g_pd.sort_by_popup,
"title,text", PACKAGE, "IDS_WIFI_BODY_SORT_BY");
elm_popup_align_set(g_pd.sort_by_popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
(const void *) I18N_TYPE_Network_notification, NULL,
ELM_GENLIST_ITEM_NONE, _gl_changed_network_noti, NULL);
(const void *) I18N_TYPE_Network_notification, NULL,
ELM_GENLIST_ITEM_NONE, _gl_changed_network_noti, NULL);
/* Keep WI-FI on during sleep */
g_pd.item_keep_wifi_switch = elm_genlist_item_append(gl, &itc_keep_wifi,
(const void *) I18N_TYPE_Keep_WIFI_on_during_sleep, NULL,
ELM_GENLIST_ITEM_NONE, _gl_keep_wifi, NULL);
/* Keep WI-FI on during sleep */
g_pd.item_keep_wifi_switch = elm_genlist_item_append(gl, &itc_keep_wifi,
(const void *) I18N_TYPE_Keep_WIFI_on_during_sleep, NULL,
ELM_GENLIST_ITEM_NONE, _gl_keep_wifi, NULL);
/* Sort By */
g_pd.item_sort_by= elm_genlist_item_append(gl, &itc_sort_by,
/* Sort By */
g_pd.item_sort_by= elm_genlist_item_append(gl, &itc_sort_by,
elm_ctxpopup_auto_hide_disabled_set(_detail_data->ctxpopup, EINA_TRUE);
elm_object_style_set(_detail_data->ctxpopup, "more/default");
elm_ctxpopup_auto_hide_disabled_set(_detail_data->ctxpopup, EINA_TRUE);
elm_object_style_set(_detail_data->ctxpopup, "more/default");
- eext_object_event_callback_add(_detail_data->ctxpopup, EA_CALLBACK_BACK,
+ eext_object_event_callback_add(_detail_data->ctxpopup, EEXT_CALLBACK_BACK,
- eext_object_event_callback_add(_detail_data->ctxpopup, EA_CALLBACK_MORE,
+ eext_object_event_callback_add(_detail_data->ctxpopup, EEXT_CALLBACK_MORE,
_ctxpopup_del_cb, NULL);
evas_object_smart_callback_add(_detail_data->ctxpopup, "dismissed",
_ctxpopup_dismissed_cb, NULL);
_ctxpopup_del_cb, NULL);
evas_object_smart_callback_add(_detail_data->ctxpopup, "dismissed",
_ctxpopup_dismissed_cb, NULL);
char *tmp = NULL;
char *txt = NULL;
char *tmp = NULL;
char *txt = NULL;
- if (!strcmp("elm.text.sub", part)) {
- ret = (char*) g_strdup(dgettext(PACKAGE, "IDS_WIFI_BODY_NAME"));
- } else if (!strcmp("elm.text", part)) {
+ if (!strcmp("elm.text", part)) {
_detail_data = (view_detail_data *)data;
retvm_if(NULL == _detail_data, NULL);
_detail_data = (view_detail_data *)data;
retvm_if(NULL == _detail_data, NULL);
view_detail_data *_detail_data = (view_detail_data *)data;
_detail_data = (view_detail_data *)data;
Evas_Object* icon = NULL;
view_detail_data *_detail_data = (view_detail_data *)data;
_detail_data = (view_detail_data *)data;
Evas_Object* icon = NULL;
- Evas_Object* ic = NULL;
if (!strcmp("elm.swallow.end", part)) {
char *temp_str = NULL;
if (!strcmp("elm.swallow.end", part)) {
char *temp_str = NULL;
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/C/type.1", "default");
- icon = elm_image_add(ic);
+ icon = elm_image_add(obj);
retvm_if(NULL == icon, NULL);
if (_detail_data->ap_image_path != NULL) {
retvm_if(NULL == icon, NULL);
if (_detail_data->ap_image_path != NULL) {
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, temp_str);
g_free(temp_str);
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, temp_str);
g_free(temp_str);
- evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(DEFAULT_BUTTON_CIRCLE_SIZE), ELM_SCALE_SIZE(DEFAULT_BUTTON_CIRCLE_SIZE));
+
}
static void _remove_all(view_detail_data *_detail_data)
}
static void _remove_all(view_detail_data *_detail_data)
#include "ug_wifi.h"
#include "view_ime_hidden.h"
#include "ug_wifi.h"
#include "view_ime_hidden.h"
{
char* det = NULL;
char* buf = NULL;
{
char* det = NULL;
char* buf = NULL;
- int r = 0, g = 0, b = 0, a = 0;
ug_genlist_data_t* gdata = (ug_genlist_data_t*) data;
retvm_if(NULL == gdata || NULL == gdata->device_info, NULL);
ug_genlist_data_t* gdata = (ug_genlist_data_t*) data;
retvm_if(NULL == gdata || NULL == gdata->device_info, NULL);
gdata->device_info->ssid);
assertm_if(NULL == det, "NULL!!");
if (VIEWER_ITEM_RADIO_MODE_CONNECTED == gdata->radio_mode) {
gdata->device_info->ssid);
assertm_if(NULL == det, "NULL!!");
if (VIEWER_ITEM_RADIO_MODE_CONNECTED == gdata->radio_mode) {
- edje_color_class_get("T024S",&r, &g, &b, &a,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL);
buf = g_strdup_printf("<color=#%s>%s</color>",
buf = g_strdup_printf("<color=#%s>%s</color>",
- ConvertRGBAtoHex(r, g, b, a), det);
+ ConvertRGBAtoHex(2, 61, 132, 255), det);
Evas_Object *icon = NULL;
Evas_Object *btn = NULL;
Evas_Object *icon = NULL;
Evas_Object *btn = NULL;
- Evas_Object *ic = NULL;
if (gdata->device_info->ap_image_path == NULL) {
/* if there is no ap_image_path (NO AP Found situation) */
DEBUG_LOG(UG_NAME_ERR, "Fatal: Image path is NULL");
} else if (!strcmp("elm.swallow.icon", part)) {
if (gdata->device_info->ap_image_path == NULL) {
/* if there is no ap_image_path (NO AP Found situation) */
DEBUG_LOG(UG_NAME_ERR, "Fatal: Image path is NULL");
} else if (!strcmp("elm.swallow.icon", part)) {
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/B/type.3", "default");
-
- icon = elm_image_add(ic);
+ icon = elm_image_add(obj);
retvm_if(NULL == icon, NULL);
/* for strength */
retvm_if(NULL == icon, NULL);
/* for strength */
g_free(temp_str);
evas_object_color_set(icon, 2, 61, 132, 204);
g_free(temp_str);
evas_object_color_set(icon, 2, 61, 132, 204);
-
- evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(DEFAULT_BUTTON_CIRCLE_SIZE), ELM_SCALE_SIZE(DEFAULT_BUTTON_CIRCLE_SIZE));
} else if (!strcmp("elm.swallow.end", part)) {
if (VIEWER_ITEM_RADIO_MODE_CONNECTING == gdata->radio_mode ||
VIEWER_ITEM_RADIO_MODE_CONFIGURATION == gdata->radio_mode) {
} else if (!strcmp("elm.swallow.end", part)) {
if (VIEWER_ITEM_RADIO_MODE_CONNECTING == gdata->radio_mode ||
VIEWER_ITEM_RADIO_MODE_CONFIGURATION == gdata->radio_mode) {
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/C/type.2", "default");
- icon = elm_progressbar_add(ic);
+ icon = elm_progressbar_add(obj);
elm_object_style_set(icon, "process_medium");
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
elm_object_style_set(icon, "process_medium");
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
evas_object_propagate_events_set(icon, EINA_FALSE);
} else {
evas_object_propagate_events_set(icon, EINA_FALSE);
} else {
}
static void _gl_listview_del(void *data, Evas_Object *obj)
}
static void _gl_listview_del(void *data, Evas_Object *obj)
if (g_strcmp0(key, "Scanning") == 0) {
value = g_variant_get_boolean(var);
if (value) {
if (g_strcmp0(key, "Scanning") == 0) {
value = g_variant_get_boolean(var);
if (value) {
- if (header_mode != HEADER_MODE_CONNECTING) {
- viewer_manager_show(VIEWER_WINSET_SEARCHING_GRP_TITLE);
- viewer_manager_header_mode_set(HEADER_MODE_SEARCHING);
- }
+ viewer_manager_header_mode_set(HEADER_MODE_SEARCHING);
+ viewer_manager_show(VIEWER_WINSET_SEARCHING);
*/
#include <tethering.h>
*/
#include <tethering.h>
#include "common.h"
#include "ug_wifi.h"
#include "common.h"
#include "ug_wifi.h"
#include "common.h"
#include "wlan_manager.h"
#include "common.h"
#include "wlan_manager.h"
devpkr_gl_data_t *gdata = (devpkr_gl_data_t *) data;
Evas_Object* icon = NULL;
devpkr_gl_data_t *gdata = (devpkr_gl_data_t *) data;
Evas_Object* icon = NULL;
- Evas_Object *ic = NULL;
if (!strcmp("elm.swallow.icon", part)) {
char *temp_str = NULL;
if (!strcmp("elm.swallow.icon", part)) {
char *temp_str = NULL;
- ic = elm_layout_add(obj);
- icon = elm_image_add(ic);
+ icon = elm_image_add(obj);
retvm_if(NULL == icon, NULL);
retvm_if(NULL == icon, NULL);
- elm_layout_theme_set(ic, "layout", "list/B/type.3", "default");
-
temp_str = g_strdup_printf("%s.png", gdata->dev_info->ap_image_path);
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, temp_str);
g_free(temp_str);
evas_object_color_set(icon, 2, 61, 132, 204);
temp_str = g_strdup_printf("%s.png", gdata->dev_info->ap_image_path);
elm_image_file_set(icon, CUSTOM_EDITFIELD_PATH, temp_str);
g_free(temp_str);
evas_object_color_set(icon, 2, 61, 132, 204);
+ evas_object_size_hint_min_set(icon, DEFAULT_BUTTON_CIRCLE_SIZE, DEFAULT_BUTTON_CIRCLE_SIZE);
- evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
} else if (!strcmp("elm.swallow.end", part)) {
if (gdata->connection_mode == ITEM_CONNECTION_MODE_CONNECTING ||
gdata->connection_mode == ITEM_CONNECTION_MODE_CONFIGURATION) {
} else if (!strcmp("elm.swallow.end", part)) {
if (gdata->connection_mode == ITEM_CONNECTION_MODE_CONNECTING ||
gdata->connection_mode == ITEM_CONNECTION_MODE_CONFIGURATION) {
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/C/type.2", "default");
icon = elm_progressbar_add(obj);
elm_object_style_set(icon, "process_medium");
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
icon = elm_progressbar_add(obj);
elm_object_style_set(icon, "process_medium");
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_progressbar_pulse(icon, TRUE);
-
- elm_layout_content_set(ic, "elm.swallow.content", icon);
}
static void _gl_list_del(void* data, Evas_Object* obj)
}
static void _gl_list_del(void* data, Evas_Object* obj)