Flora license update
[apps/core/preloaded/ug-camera-efl.git] / include / edc_string.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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_STRING_H_
19 #define __DEF_STRING_H_
20
21 /*  share between EDC and C code. */
22 /* #define NEW_RECORDING_LAYOUT */
23
24 #define INVALID_INDEX -1
25
26 #define CAM_COMMON_STRING_LEN 80
27
28 #define CAM_UI_LOG(fmt, args...)        cam_debug(LOG_UI, fmt, ##args)
29
30 #define BG_BLACK        40
31 #define FG_RED          31
32 #define FG_GREEN        32
33 #define FG_YELLOW       33
34 #define FG_PUPPLE       35
35 #define FG_CYAN         36
36 #define FG_BLUE         34
37
38 #define UI_TEST_LOG(fmt, args...) \
39         do { \
40                 printf("\x1b[%dm\x1b[%dm[CAM_UI_LOG] [%s:%d] : "fmt, BG_BLACK, FG_GREEN, __func__, __LINE__, ##args); \
41                 printf("\x1b[0m\n"); \
42         } while (0)
43
44 #define MAIN_W 1280
45 #define MAIN_H 720
46 #define VER_MAIN_W MAIN_H
47 #define VER_MAIN_H MAIN_W
48
49 #define MAIN_W_AUTO 800
50 #define MAIN_H_AUTO 480
51 #define VER_MAIN_W_AUTO MAIN_H_AUTO
52 #define VER_MAIN_H_AUTO MAIN_W_AUTO
53
54
55 #define TOOLBAR_W 160
56 #define TOOLBAR_RIGHT_ITEM_H 225
57
58 /* camera focus */
59 #define CAMERA_FOCUS_W  150
60 #define CAMERA_FOCUS_H  97
61
62 #define SETTINGS_TAB_BACK_W 71
63 #define SETTINGS_TAB_BACK_H 71
64
65 #define INDICATOR_GPS "INDICATOR_GPS"
66 #define INDICATOR_BATTERY "INDICATOR_BATTERY"
67 #define INDICATOR_NUM "INDICATOR_NUM"
68 #define INDICATOR_STORAGE "INDICATOR_STORAGE"
69
70 #define INDI_REC_GPS "INDI_REC_GPS"
71 #define INDI_REC_BATTERY "INDI_REC_BATTERY"
72 #define INDI_REC_STORAGE "INDI_REC_STORAGE"
73 #define INDI_REC_MUTE "INDI_REC_MUTE"
74
75
76 /* recording */
77 #define RECORDING_IMAGE "recording_image"
78 #define RECORDING_TEXT "recording_text"
79 #define RECORDING_LEFT_TEXT "recording_left_text"
80
81 /* haptic */
82 #define HAPTIC_SIG_SRC "HAPTIC_SIG_SRC"
83 #define HAPTIC_SIG "HAPTIC_SIG"
84
85 #define CONTI_REVIEW_BACK "conti_review_back"
86 #define CONTI_REVIEW_THUMB "conti_review_thumb"
87 #define CONTI_REVIEW_BTN_SIG_SRC "conti_review_sig_source"
88 #define CONTI_REVIEW_BACK_BTN_SIG "conti_review_back_SIG"
89
90 /* captured image */
91 #define CAPTURED_IMAGE_SCREEN "captured_image_screen"
92 #define CAPTURED_IMAGE_SAVE "captured_image_save_btn"
93 #define CAPTURED_IMAGE_RETRY "capture_image_save_bnt"
94
95 /* Font related */
96 #define COLOR_1 255 255 255 255
97 #define COLOR_2 0 0 0 255
98 #define COLOR_65        164 215 255 255
99 #define COLOR_73        150 150 150 255
100
101 #define FONT_NAME                       "font=SLP:style=Roman"
102 #define FONT_COLOR                      COLOR_1
103
104 #endif