}
}
}
+ group { name: "popup_processingview_wearable";
+#define DEMO_POPUP_PROCESSINGVIEW1BUTTON_CONTENT_MIN 0 120
+ styles {
+ style { name: "popup_processing_text_style_wearable";
+ base: "font=Tizen:style=Regular align=left font_size="50" color=#FFFFFF wrap=mixed ellipsis=1.0 text_class=tizen";
+ tag: "br" "\n";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DEMO_POPUP_PROCESSINGVIEW1BUTTON_CONTENT_MIN;
+ fixed: 1 0;
+ }
+ }
+ part { name: "pad_l";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 32 0;
+ fixed: 1 0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "pad_r";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 32 0;
+ fixed: 1 0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 56;
+ max: 0 56;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "pad_l";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "pad_r";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "pad_after_processing";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 32 120;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.content";
+ }
+ rel2.to: "elm.swallow.content";
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale : 1;
+ description { state: "default" 0.0;
+ min: 1 1;
+ fixed: 0 1;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "pad_after_processing";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "pad_r";
+ }
+ align: 0.0 0.5;
+ text {
+ style: "popup_processing_text_style_wearable";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ }
}
void _callmgr_popup_create_popup_checking(void *data, char *string)
{
CallMgrPopAppData_t *ad = (CallMgrPopAppData_t *)data;
+ char *profile = NULL;
+
ret_if(NULL == ad);
char popup_msg[DEF_BUF_LEN_LONG] = { 0, };
snprintf(popup_msg, DEF_BUF_LEN_LONG, "%s", string);
DBG("msg:[%s]", popup_msg);
- ad->popup = elm_popup_add(ad->win_main);
- elm_popup_align_set(ad->popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
- evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- popup_ly = elm_layout_add(ad->popup);
- elm_layout_file_set(popup_ly, PATH_EDJ, "popup_processingview");
- elm_object_part_text_set(popup_ly, "elm.text", popup_msg);
- evas_object_size_hint_weight_set(popup_ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ system_info_get_platform_string("tizen.org/feature/profile", &profile);
+ if (!profile) {
+ ERR("profile is NULL");
+ return;
+ }
+ DBG("profile: %s", profile);
- progressbar = _callmgr_popup_create_progressbar(ad->popup, "process_medium");
+ if (!g_strcmp0(profile, "mobile")) {
+ ad->popup = elm_popup_add(ad->win_main);
+ elm_popup_align_set(ad->popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
+ evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ popup_ly = elm_layout_add(ad->popup);
+ elm_layout_file_set(popup_ly, PATH_EDJ, "popup_processingview");
+ elm_object_part_text_set(popup_ly, "elm.text", popup_msg);
+ evas_object_size_hint_weight_set(popup_ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+ progressbar = elm_progressbar_add(ad->popup);
+ elm_progressbar_pulse(progressbar, EINA_TRUE);
+ elm_object_style_set(progressbar, "process_medium");
+ elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
+ evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(progressbar);
+
+ elm_object_part_content_set(popup_ly, "elm.swallow.content", progressbar);
+ elm_object_content_set(ad->popup, popup_ly);
- elm_object_part_content_set(popup_ly, "elm.swallow.content", progressbar);
- elm_object_content_set(ad->popup, popup_ly);
+ evas_object_show(ad->popup);
+ } else if (!g_strcmp0(profile, "wearable")) {
+ ad->popup = elm_popup_add(ad->win_main);
+ elm_object_style_set(ad->popup, "circle");
+ elm_popup_align_set(ad->popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
+ evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ popup_ly = elm_layout_add(ad->popup);
+ elm_layout_file_set(popup_ly, PATH_EDJ, "popup_processingview_wearable");
+ elm_object_part_text_set(popup_ly, "elm.text", popup_msg);
+ evas_object_size_hint_weight_set(popup_ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+ progressbar = elm_progressbar_add(ad->popup);
+ elm_progressbar_pulse(progressbar, EINA_TRUE);
+ elm_object_style_set(progressbar, "process/popup/small");
+ elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
+ evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, 0.5);
+ evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(progressbar);
+
+ elm_object_part_content_set(popup_ly, "elm.swallow.content", progressbar);
+ elm_object_content_set(ad->popup, popup_ly);
- evas_object_show(ad->popup);
+ evas_object_show(ad->popup);
+ }
}
void _callmgr_popup_create_toast_msg(void *data, char *string)