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 #ifndef __BT_WIDGET_H__
25 #define __BT_WIDGET_H__
31 #include "Elementary.h"
32 #include <efl_extension.h>
37 BT_GENLIST_GROUP_SINGLE = 0,
39 BT_GENLIST_GROUP_MIDDLE,
40 BT_GENLIST_GROUP_BOTTOM,
41 } bt_genlist_group_style_t;
46 BT_GENLIST_2LINE_BOTTOM,
49 static inline char* get_genlist_style(bt_genlist_type_t type)
51 if (type == BT_GENLIST_2LINE_BOTTOM)
52 return TIZEN_COMMON ? "2line" : "type2";
53 else if (type == BT_GENLIST_2LINE_TOP)
54 return TIZEN_COMMON ? "2line" : "type1";
56 return TIZEN_COMMON ? "1line" : "type1";
59 #define BT_GENLIST_1LINE_TEXT_STYLE get_genlist_style(BT_GENLIST_1LINE)
60 #define BT_GENLIST_1LINE_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_1LINE)
61 #define BT_GENLIST_2LINE_TOP_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
62 #define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_TOP)
63 #define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
64 #define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE_BOTTOM)
65 #define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
66 #define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
67 #define BT_GENLIST_FULL_CONTENT_STYLE "full"
69 #define BT_GENLIST_ONOFF_ICON_PART "elm.swallow.end"
70 #define BT_GENLIST_ONOFF_ICON_PART_COMMON "elm.icon"
72 #define BT_POPUP_STR_MAX_LEN 512
74 Evas_Object *_bt_create_naviframe(Evas_Object *parent);
76 Evas_Object *_bt_create_icon(Evas_Object *parent, char *img);
78 Evas_Object *_bt_create_progressbar(Evas_Object *parent,
81 void _bt_update_genlist_item(Elm_Object_Item *item);
83 Evas_Object *_bt_main_base_layout_create(Evas_Object *parent, void *data);
85 void _bt_set_popup_text(void *data, Evas_Object *popup);
87 Evas_Object *_bt_create_popup(void *data, void *cb, void *cb_data,
92 #endif /* __BT_WIDGET_H__ */