2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
20 * Created on: Oct 9, 2013
24 #ifndef SETTING_HOMESCREEN_H_
25 #define SETTING_HOMESCREEN_H_
27 #include <Elementary.h>
31 #define HOME_MENU_COUNT 3
32 #define VIEWTYPE_COUNT 2
33 #define BG_COLOR_COUNT 12
34 #define HOME_BG_LIST_COUNT 3
35 #define NUM_MAX_THUMB_IN_PAGES 2
36 #define NUM_DEFAULT_THUMB_BUTTON 2
37 #define DEFAULT_WALLPAPER_COUNT 6
38 #define WALLPAPER_CNT_PER_PAGE 4
39 #define SETTING_DEFAULT_WALLPAPER_PATH "/opt/share/settings/Wallpapers"
40 #define CROPPED_GALLERY_DEFAULT_WALLPAPER_PATH "/opt/usr/media/.bgwallpaper.jpg"
42 struct _homescreen_menu_item {
46 void (*func)(void *data, Evas_Object *obj, void *event_info);
49 struct _homebg_menu_item {
51 void (*func)(void *data, Evas_Object *obj, void *event_info);
54 typedef struct _Homescreen_Item_Data
57 Elm_Object_Item *item;
58 } Homescreen_Item_Data;
60 typedef struct _page_data page_data;
63 Evas_Object *mapbuf[BG_COLOR_COUNT/2];
74 typedef struct _wallpaper_page_data wallpaper_page_data;
75 struct _wallpaper_page_data
77 Evas_Object *mapbuf[DEFAULT_WALLPAPER_COUNT/NUM_MAX_THUMB_IN_PAGES];
80 char * _get_homeview_type_subtitle();
81 char * _gl_homescreen_title_get(void *data, Evas_Object *obj, const char *part);
82 Evas_Object * _gl_homescreen_check_get(void *data, Evas_Object *obj, const char *part);
83 Evas_Object* _create_homescreen_list(void* data);
84 void _homescreen_gl_viewtype_cb(void *data, Evas_Object *obj, void *event_info);
85 void _homescreen_gl_homebg_cb(void *data, Evas_Object *obj, void *event_info);
86 void _homescreen_gl_edit_home_cb(void *data, Evas_Object *obj, void *event_info);
87 void _homescreen_gl_edit_apps_cb(void *data, Evas_Object *obj, void *event_info);
88 void _show_bg_slide_cb(void *data, Evas_Object *obj, void *event_info);
89 void _wallpaper_gl_cb(void *data, Evas_Object *obj, void *event_info);
90 void _gallery_gl_cb(void *data, Evas_Object *obj, void *event_info);
91 void _clear_homescreen_cb(void *data , Evas *e, Evas_Object *obj, void *event_info);
93 Evas_Object *create_wallpaper_list(void *data);
95 #endif /* SETTING_HOMESCREEN_H_ */