- static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN;
- if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
- return profile;
-
- char *profileName;
- system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
- switch (*profileName)
- {
- case 'm':
- case 'M':
- profile = TIZEN_PROFILE_MOBILE;
- break;
- case 'w':
- case 'W':
- profile = TIZEN_PROFILE_WEARABLE;
- break;
- case 't':
- case 'T':
- profile = TIZEN_PROFILE_TV;
- break;
- case 'i':
- case 'I':
- profile = TIZEN_PROFILE_IVI;
- break;
- default: // common or unknown ==> ALL ARE COMMON.
- profile = TIZEN_PROFILE_COMMON;
- }
- free(profileName);
-
- return profile;
-}
+ static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN;
+ if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
+ return profile;
+
+ char *profileName;
+ system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ switch (*profileName)
+ {
+ case 'm':
+ case 'M':
+ profile = TIZEN_PROFILE_MOBILE;
+ break;
+ case 'w':
+ case 'W':
+ profile = TIZEN_PROFILE_WEARABLE;
+ break;
+ case 't':
+ case 'T':
+ profile = TIZEN_PROFILE_TV;
+ break;
+ case 'i':
+ case 'I':
+ profile = TIZEN_PROFILE_IVI;
+ break;
+ default: // common or unknown ==> ALL ARE COMMON.
+ profile = TIZEN_PROFILE_COMMON;
+ }
+ free(profileName);
void _init_app_data(App_Data* app_data);
static void _app_language_changed(app_event_info_h event_info, void *user_data);
void _init_app_data(App_Data* app_data);
static void _app_language_changed(app_event_info_h event_info, void *user_data);
- stt_edj_path = stt_edj_path + STT_EDJ_FILE;
- app_edj_path = app_edj_path + APP_EDJ_FILE;
+ if (_WEARABLE) {
+ stt_edj_path = stt_edj_path + STT_EDJ_FILE_WEARABLE;
+ app_edj_path = app_edj_path + APP_EDJ_FILE_WEARABLE;
+ } else if (_MOBILE) {
+ stt_edj_path = stt_edj_path + STT_EDJ_FILE_MOBILE;
+ app_edj_path = app_edj_path + APP_EDJ_FILE_MOBILE;
+ }
elm_theme_extension_add(NULL, stt_edj_path.c_str());
elm_theme_extension_add(NULL, app_edj_path.c_str());
elm_theme_extension_add(NULL, stt_edj_path.c_str());
elm_theme_extension_add(NULL, app_edj_path.c_str());
unsigned int index = (uintptr_t)data;
const std::vector<TemplateData> template_list = input_template_get_list();
unsigned int index = (uintptr_t)data;
const std::vector<TemplateData> template_list = input_template_get_list();
eina_strbuf_append(buf, template_list[index].text.c_str());
eina_strbuf_replace_all(buf, "\n", "");
eina_strbuf_replace_all(buf, "\r", "");
eina_strbuf_append(buf, template_list[index].text.c_str());
eina_strbuf_replace_all(buf, "\n", "");
eina_strbuf_replace_all(buf, "\r", "");
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
elm_object_style_set(btn, "ime_button_stt");
path_ic = path + "images/w_mode_stt_ic.png";
} else if (!strcmp(first_input_type, "input_emoticon")) {
elm_object_style_set(btn, "ime_button_stt");
path_ic = path + "images/w_mode_stt_ic.png";
} else if (!strcmp(first_input_type, "input_emoticon")) {
evas_object_layer_set(btn, 32000);
} else if (!strcmp(part, "elm.icon.2")){
string path_ic;
evas_object_layer_set(btn, 32000);
} else if (!strcmp(part, "elm.icon.2")){
string path_ic;
elm_object_style_set(btn, "ime_button_stt");
path_ic = path + "images/w_mode_stt_ic.png";
} else if (!strcmp(second_input_type, "input_emoticon")) {
elm_object_style_set(btn, "ime_button_stt");
path_ic = path + "images/w_mode_stt_ic.png";
} else if (!strcmp(second_input_type, "input_emoticon")) {
string path = get_resource_path();
if (!strcmp(part, "elm.icon.1.touch_area")) {
evas_object_layer_set(btn, 32000);
string path = get_resource_path();
if (!strcmp(part, "elm.icon.1.touch_area")) {
evas_object_layer_set(btn, 32000);
evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
} else if (!strcmp(first_input_type, "input_emoticon")) {
evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
} else if (!strcmp(first_input_type, "input_emoticon")) {
evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
}
} else if (!strcmp(part, "elm.icon.2.touch_area")){
evas_object_layer_set(btn, 32000);
}
} else if (!strcmp(part, "elm.icon.2.touch_area")){
evas_object_layer_set(btn, 32000);
evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
} else if (!strcmp(second_input_type, "input_emoticon")) {
evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
} else if (!strcmp(second_input_type, "input_emoticon")) {
evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
Evas_Object* ic = elm_image_add(btn);
elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
string path = get_resource_path();
if (!strcmp(part, "elm.icon.1")) {
elm_object_style_set(btn, "ime_button_stt");
string path_ic = path + "images/w_mode_stt_ic.png";
if (!strcmp(part, "elm.icon.1")) {
elm_object_style_set(btn, "ime_button_stt");
string path_ic = path + "images/w_mode_stt_ic.png";
PRINTFUNC(DLOG_DEBUG, "caller = %s", caller);
app_control_add_extra_data(app_control, "caller_appid", caller);
free(caller);
PRINTFUNC(DLOG_DEBUG, "caller = %s", caller);
app_control_add_extra_data(app_control, "caller_appid", caller);
free(caller);
app_data->res_path = app_get_resource_path();
PRINTFUNC(DLOG_INFO, "set resource path = %s", app_data->res_path);
}
app_data->res_path = app_get_resource_path();
PRINTFUNC(DLOG_INFO, "set resource path = %s", app_data->res_path);
}
app_data->shared_res_path = app_get_shared_resource_path();
PRINTFUNC(DLOG_INFO, "set shared resource path = %s", app_data->shared_res_path);
}
app_data->shared_res_path = app_get_shared_resource_path();
PRINTFUNC(DLOG_INFO, "set shared resource path = %s", app_data->shared_res_path);
}
elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,enable", "elm");
//elm_layout_theme_set(app_data->genlist, "genlist", "base", "focus_bg");
//elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,show", "elm");
elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,enable", "elm");
//elm_layout_theme_set(app_data->genlist, "genlist", "base", "focus_bg");
//elm_object_signal_emit(app_data->genlist, "elm,state,focus_bg,show", "elm");
string path_ic = path + "/images/toast_check_icon.png";
Evas_Object * img = elm_image_add(popup);
elm_image_file_set(img, path_ic.c_str(), NULL);
elm_object_part_content_set(popup, "toast,icon", img);
}
string path_ic = path + "/images/toast_check_icon.png";
Evas_Object * img = elm_image_add(popup);
elm_image_file_set(img, path_ic.c_str(), NULL);
elm_object_part_content_set(popup, "toast,icon", img);
}
PRINTFUNC(DLOG_DEBUG, "launched as STT/EMOTICON mode, So exit here.");
reply_to_sender_by_callback(NULL, NULL);
elm_exit();
}
PRINTFUNC(DLOG_DEBUG, "launched as STT/EMOTICON mode, So exit here.");
reply_to_sender_by_callback(NULL, NULL);
elm_exit();
}
-#ifdef _WEARABLE
- Evas_Object *circle_genlist = (Evas_Object *) evas_object_data_get(app_data->genlist, "circle");
- eext_rotary_object_event_activated_set(circle_genlist, EINA_TRUE);
-#endif
+ if (_WEARABLE) {
+ Evas_Object *circle_genlist = (Evas_Object *) evas_object_data_get(app_data->genlist, "circle");
+ eext_rotary_object_event_activated_set(circle_genlist, EINA_TRUE);
+ }
}
static void _item_realized(void *data, Evas_Object *obj, void *event_info) //called when list scrolled
}
static void _item_realized(void *data, Evas_Object *obj, void *event_info) //called when list scrolled
-#ifdef _WEARABLE
- Evas_Object* circle_object_genlist = eext_circle_object_genlist_add(genlist, app_data->circle_surface);
- eext_circle_object_genlist_scroller_policy_set(circle_object_genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
- evas_object_data_set(genlist, "circle", (void *) circle_object_genlist);
- eext_rotary_object_event_activated_set(circle_object_genlist, EINA_TRUE);
-#endif
+ if (_WEARABLE) {
+ Evas_Object* circle_object_genlist = eext_circle_object_genlist_add(genlist, app_data->circle_surface);
+ eext_circle_object_genlist_scroller_policy_set(circle_object_genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
+ evas_object_data_set(genlist, "circle", (void *) circle_object_genlist);
+ eext_rotary_object_event_activated_set(circle_object_genlist, EINA_TRUE);
+ }
evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
itc1->item_style = "2button_flat";
itc1->func.text_get = NULL;
itc1->func.content_get = __ise_gl_2button_content_get;
itc1->item_style = "2button_flat";
itc1->func.text_get = NULL;
itc1->func.content_get = __ise_gl_2button_content_get;
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
conform = elm_conformant_add(window);
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
conform = elm_conformant_add(window);
elm_win_resize_object_add(window, conform);
elm_object_content_set(conform, layout);
elm_win_resize_object_add(window, conform);
elm_object_content_set(conform, layout);
app_data->win_main = window;
app_data->conform = conform;
app_data->layout_main = layout;
app_data->win_main = window;
app_data->conform = conform;
app_data->layout_main = layout;
app_data->reply_type = REPLY_APP_NORMAL;
ret = app_control_is_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &is_extra_data_array);
app_data->reply_type = REPLY_APP_NORMAL;
ret = app_control_is_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &is_extra_data_array);
ret = app_control_get_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &input_type_array, &input_type_array_len);
g_input_type_data.input_type_array = input_type_array;
g_input_type_data.input_type_array_len = input_type_array_len;
ret = app_control_get_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &input_type_array, &input_type_array_len);
g_input_type_data.input_type_array = input_type_array;
g_input_type_data.input_type_array_len = input_type_array_len;
evas_object_smart_callback_del(app_data->genlist, "elm,item,position,changed", _item_position_changed_cb);
}
evas_object_smart_callback_del(app_data->genlist, "elm,item,position,changed", _item_position_changed_cb);
}