tizen 2.3 release
[apps/home/b2-clocksetting.git] / include / setting-homescreen.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11 /*
12  * setting-display.h
13  *
14  *  Created on: Oct 9, 2013
15  *      Author: min-hoyun
16  */
17
18 #ifndef SETTING_HOMESCREEN_H_
19 #define SETTING_HOMESCREEN_H_
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <string.h>
24
25 #define HOME_MENU_COUNT         3
26 #define VIEWTYPE_COUNT  2
27 #define BG_COLOR_COUNT  12
28 #define HOME_BG_LIST_COUNT 3
29 #define NUM_MAX_THUMB_IN_PAGES 2
30 #define NUM_DEFAULT_THUMB_BUTTON 2
31 #define DEFAULT_WALLPAPER_COUNT 6
32 #define WALLPAPER_CNT_PER_PAGE 4
33 #define SETTING_DEFAULT_WALLPAPER_PATH  "/opt/share/settings/Wallpapers"
34 #define CROPPED_GALLERY_DEFAULT_WALLPAPER_PATH          "/opt/usr/media/.bgwallpaper.jpg"
35
36 struct _homescreen_menu_item {
37         char *name;
38         int is_check_type;
39         int state;
40         void (*func)(void *data, Evas_Object *obj, void *event_info);
41 };
42
43 struct _homebg_menu_item {
44         char *name;
45         void (*func)(void *data, Evas_Object *obj, void *event_info);
46 };
47
48 typedef struct _Homescreen_Item_Data
49 {
50         int index;
51         Elm_Object_Item *item;
52 } Homescreen_Item_Data;
53
54 typedef struct _page_data page_data;
55 struct _page_data
56 {
57         Evas_Object *mapbuf[BG_COLOR_COUNT/2];
58 };
59
60 struct _color
61 {
62         int r;
63         int g;
64         int b;
65         char* hex;
66 };
67
68 typedef struct _wallpaper_page_data wallpaper_page_data;
69 struct _wallpaper_page_data
70 {
71         Evas_Object *mapbuf[DEFAULT_WALLPAPER_COUNT/NUM_MAX_THUMB_IN_PAGES];
72 };
73
74 char * _get_homeview_type_subtitle();
75 char * _gl_homescreen_title_get(void *data, Evas_Object *obj, const char *part);
76 Evas_Object * _gl_homescreen_check_get(void *data, Evas_Object *obj, const char *part);
77 Evas_Object* _create_homescreen_list(void* data);
78 void _homescreen_gl_viewtype_cb(void *data, Evas_Object *obj, void *event_info);
79 void _homescreen_gl_homebg_cb(void *data, Evas_Object *obj, void *event_info);
80 void _homescreen_gl_edit_home_cb(void *data, Evas_Object *obj, void *event_info);
81 void _homescreen_gl_edit_apps_cb(void *data, Evas_Object *obj, void *event_info);
82 void _show_bg_slide_cb(void *data, Evas_Object *obj, void *event_info);
83 void _wallpaper_gl_cb(void *data, Evas_Object *obj, void *event_info);
84 void _gallery_gl_cb(void *data, Evas_Object *obj, void *event_info);
85 void _clear_homescreen_cb(void *data , Evas *e, Evas_Object *obj, void *event_info);
86
87 Evas_Object *create_wallpaper_list(void *data);
88
89 #endif /* SETTING_HOMESCREEN_H_ */