4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * GirishAshok Joshi <girish.joshi@samsung.com>
8 * DoHyun Pyun <dh79.pyun@samsung.com>
10 * Licensed under the Flora License, Version 1.1 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.tizenopensource.org/license
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 #include <app_extension.h>
27 #include "bt-share-ui-widget.h"
28 #include "bt-share-ui-main.h"
29 #include <app_extension.h>
31 Evas_Object *_bt_create_bg(Evas_Object *parent, char *style)
33 retvm_if(parent == NULL, NULL, "Invalid argument: parent is NULL\n");
35 Evas_Object *bg = elm_bg_add(parent);
37 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
41 elm_object_style_set(bg, style);
43 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
45 elm_win_resize_object_add(parent, bg);
51 Evas_Object *_bt_create_layout(Evas_Object *parent, char *edj, char *content)
55 retvm_if(parent == NULL, NULL, "Invalid argument: parent is NULL\n");
57 layout = elm_layout_add(parent);
59 if (edj != NULL && content != NULL)
60 elm_layout_file_set(layout, edj, content);
62 elm_layout_theme_set(layout, "layout", "application",
64 evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
68 evas_object_show(layout);
73 Evas_Object *_bt_create_conformant(Evas_Object *parent, Evas_Object *content)
75 Evas_Object *conform = NULL;
77 elm_win_conformant_set(parent, 1);
78 conform = elm_conformant_add(parent);
80 evas_object_size_hint_weight_set(conform, EVAS_HINT_EXPAND,
82 elm_win_resize_object_add(parent, conform);
83 /* elm_object_style_set(conform, "internal_layout"); */
84 evas_object_show(conform);
87 elm_object_content_set(conform, content);
92 void _bt_share_genlist_item_text_update(Elm_Object_Item *git,
94 ret_if(git == NULL || part == NULL);
95 elm_genlist_item_fields_update(git, part, ELM_GENLIST_ITEM_FIELD_TEXT);
98 void _bt_share_genlist_item_content_update(Elm_Object_Item *git,
100 ret_if(git == NULL || part == NULL);
101 elm_genlist_item_fields_update(git, part, ELM_GENLIST_ITEM_FIELD_CONTENT);