apply FSL(Flora Software License)
[apps/core/preloaded/ciss.git] / include / ciss-widget.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  * 
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
7  * 
8  *     http://www.tizenopensource.org/license
9  * 
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.
15  */
16
17 #ifndef _CISS_MMI_VIEW_UTILS_H_
18 #define _CISS_MMI_VIEW_UTILS_H_
19
20 #include <Elementary.h>
21 #include <vconf.h>
22 #include "ciss-types.h"
23
24 #define SK_PORTRAIT_W   (480)
25 #define SK_PORTRAIT_H   (78)
26 #define SK_PORTRAIT_X   (0)
27 #define SK_PORTRAIT_Y   (722)
28
29 #define TB_PORTRAIT_W   (480)
30 #define TB_PORTRAIT_H   (100)
31 #define TB_PORTRAIT_X   (0)
32 #define TB_PORTRAIT_Y   (0)
33
34 typedef enum {
35         OK_ONLY_RIGHT,
36         BACK_ONLY,
37         CANCEL_REPLY,
38         BACK_REPLY,
39         BACK_MORE,
40         HIDE_BACK
41 } ciss_softkey_t;
42
43 enum {
44         CISS_ICON_TYPE_NONE,
45         CISS_ICON_TYPE_ADD,
46         CISS_ICON_TYPE_EDIT,
47         CISS_ICON_TYPE_DONE,
48         CISS_ICON_TYPE_CANCEL,
49         CISS_ICON_TYPE_OTHERS,
50 };
51
52 Evas_Object *_ciss_create_noti_popup(Evas_Object *parent,
53                         char *strtitle, char *strmsg, double t_timeout,void *data);
54 Evas_Object *_ciss_create_error_popup(Evas_Object *parent,
55                         ciss_err_t ciss_error, double t_timeout,void *data);
56 Evas_Object *_ciss_create_popup(Evas_Object *parent, char *msg);
57 Evas_Object *_ciss_create_win(const char *name);
58 Evas_Object *_ciss_create_layout_main( Evas_Object* parent);
59 Evas_Object *_ciss_create_bg(Evas_Object *parent);
60 Evas_Object *_ciss_create_navi_control_bar(Evas_Object *parent,
61                         char *label1, Evas_Smart_Cb cb1,
62                         char *label2, Evas_Smart_Cb cb2,
63                         void *data, Elm_Object_Item *navi_it,
64                         Elm_Object_Item ** c_item);
65 Evas_Object *_cst_create_title_btn(Evas_Object *parent,
66                 const char *text, Evas_Smart_Cb func, void *data);
67 void _ciss_remove_naviframe(Evas_Object *nf);
68
69 /*Callback Functions */
70 Eina_Bool _ciss_on_end_key_down(void *data, int type, void *event);
71 Evas_Object * _ciss_create_result_genlist(const char *result_str, int str_len, Evas_Object *nf, void *data);
72 void _ciss_geinlist_item_class_new(void *data);
73 void _ciss_geinlist_item_class_free(void *data);
74
75 #endif
76