2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _CST_WIDGET_H_
18 #define _CST_WIDGET_H_
20 #include <Elementary.h>
21 #include "cst-common.h"
23 #define BOTTOM_PADDING_CONTENT_SIGNAL "elm,layout,content,bottom_padding"
24 #define DEFAULT_CONTENT_SIGNAL "elm,layout,content,default"
25 #define BOTTOM_PADDING_CONTENT_SOURCE "layout"
27 Evas_Object *_cst_create_error_popup(Evas_Object *parent, int error_code);
28 Evas_Object *_cst_create_2btn_popup(Evas_Object *parent, CstGlItemData_t *item_data);
29 Evas_Object *_cst_create_navi_control_bar(Evas_Object *parent,
30 char *label1, const char *icon1, Evas_Smart_Cb cb1,
31 char *label2, const char *icon2, Evas_Smart_Cb cb2,
32 void *data, Elm_Object_Item *navi_it,
33 Elm_Object_Item ** c_item);
34 void _cst_create_genlist_separator(Evas_Object *genlist, Eina_Bool need_item_data);
35 void _cst_create_genlist_separator_no_line(Evas_Object *genlist);
36 void _cst_create_genlist_underline(Evas_Object *genlist);
37 Elm_Object_Item *_cst_create_genlist_update_underline(Evas_Object *genlist);
38 Evas_Object *_cst_create_progressbar(Evas_Object *parent);
39 Evas_Object *_cst_get_navifr_prev_btn(Evas_Object *nf);
40 void _cst_create_selectinfo(CstUgData_t *ugd, Evas_Object *layout, const char *label);
41 void _cst_del_selectinfo(CstUgData_t *ugd);
42 Evas_Object *_cst_create_onoff_button(Evas_Object *obj,
43 int state_value, Evas_Smart_Cb cb_func, void *cb_data);
44 Evas_Object *_cst_create_radio_icon(Evas_Object *obj,
45 Evas_Object *rdg, int value, int offset, const char *vconf_key);
46 Evas_Object *_cst_create_title_btn(Evas_Object *parent,
47 const char *text, Evas_Smart_Cb func, void *data);
48 void _cst_remove_naviframe(Evas_Object *nf);
49 Evas_Object *_cst_create_ime_editfield(CstUgData_t *ugd,
50 Evas_Object *parent, CstImeType_t ime_type, char *input_string);
51 Evas_Object *_cst_create_ime_btn_layout(Evas_Object *parent,
52 Evas_Object *ef, Evas_Smart_Cb cb, void *cb_data);