add language files
[profile/ivi/indicator-win.git] / daemon / indicator_ui.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
18 #ifndef __DEF_indicator_H_
19 #define __DEF_indicator_H_
20
21 #include <Elementary.h>
22 #include <Ecore_X.h>
23
24
25 #if !defined(PACKAGE)
26 #  define PACKAGE "indicator"
27 #endif
28
29 #if !defined(LOCALEDIR)
30 #  define LOCALEDIR "/usr/apps/com.samsung.indicator/res/locale"
31 #endif
32
33 #if !defined(EDJDIR)
34 #  define EDJDIR "/usr/apps/com.samsung.indicator/res/edje"
35 #endif
36
37 #if !defined(ICONDIR)
38 #  define ICONDIR "/usr/apps/com.samsung.indicator/res/icons"
39 #endif
40
41 #define EDJ_FILE EDJDIR"/"PACKAGE".edj"
42 #define ICON_THEME_FILE EDJDIR"/"PACKAGE"_icon_theme.edj"
43 #define ICON_NONFIXED_THEME_FILE EDJDIR"/"PACKAGE"_icon_nonfixed_theme.edj"
44
45 #define _S(str) dgettext("sys_string", str)
46 #define _(str) gettext(str)
47
48 #define HOME_SCREEN_NAME                "com.samsung.live-magazine"
49 #define MENU_SCREEN_NAME                "com.samsung.menu-screen"
50 #define LOCK_SCREEN_NAME                "com.samsung.idle-lock"
51 #define QUICKPANEL_NAME                 "E Popup"
52 #define CALL_NAME                       "com.samsung.call"
53 #define VTCALL_NAME                     "com.samsung.vtmain"
54
55 enum _win_type {
56         /* clock view */
57         TOP_WIN_NORMAL = 0,
58         TOP_WIN_LOCK_SCREEN,
59         /* full line of indicator */
60         /* CAUTION: Don't change order!!!! */
61         TOP_WIN_CALL,
62         TOP_WIN_MENU_SCREEN,
63         TOP_WIN_HOME_SCREEN,
64         TOP_WIN_QUICKPANEL
65 };
66
67 enum indicator_opacity_mode{
68         INDICATOR_OPACITY_OPAQUE = 0,
69         INDICATOR_OPACITY_TRANSLUCENT,
70         INDICATOR_OPACITY_TRANSPARENT,
71 };
72
73 struct appdata {
74         Evas *evas;
75         Evas_Object *win_main;
76         Evas_Object *layout_main;       /* layout widget based on EDJ */
77
78 #ifdef HOME_KEY_EMULATION
79         /* for H/W home key emulation */
80         Ecore_X_Atom atom_hwkey;
81         Ecore_X_Window win_hwkey;
82 #endif /* HOME_KEY_EMULATION */
83
84         int w;
85         int h;
86         double xscale;
87         double yscale;
88         double scale;
89         int angle;
90
91         Eina_Bool lock;
92         Eina_Bool menu;
93         Eina_Bool quickpanel;
94
95         int notifd;
96         Eina_List *evt_handlers;
97
98         enum indicator_opacity_mode opacity_mode;
99
100         enum _win_type top_win;
101         struct {
102                 Eina_Bool trigger;
103                 int x;
104                 int y;
105         } mouse_event;
106
107         void (*update_display) (int);
108 };
109
110 #endif                          /* __DEF_indicator_H__ */