Updating INI configuration file to work with most cameras.
[profile/ivi/camera.git] / include / edc_string.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_STRING_H_
19 #define __DEF_STRING_H_
20
21 /*  share between EDC and C code. */
22
23 #define ENABLE_HAPTIC 0
24
25 /* #define NEW_RECORDING_LAYOUT */
26
27 #define INVALID_INDEX -1
28
29 #define CAM_COMMON_STRING_LEN 80
30
31 #define CAM_UI_LOG(fmt, args...)        cam_debug(LOG_UI, fmt, ##args)
32
33 #define BG_BLACK        40
34 #define FG_RED          31
35 #define FG_GREEN        32
36 #define FG_YELLOW       33
37 #define FG_PUPPLE       35
38 #define FG_CYAN         36
39 #define FG_BLUE         34
40
41 #define UI_TEST_LOG(fmt, args...) \
42         do { \
43                 printf("\x1b[%dm\x1b[%dm[CAM_UI_LOG] [%s:%d] : "fmt, BG_BLACK, FG_GREEN, __func__, __LINE__, ##args); \
44                 printf("\x1b[0m\n"); \
45         } while (0)
46
47 #define MAIN_W 1280
48 #define MAIN_H 720
49 #define VER_MAIN_W MAIN_H
50 #define VER_MAIN_H MAIN_W
51
52 #define MAIN_W_AUTO 800
53 #define MAIN_H_AUTO 480
54 #define VER_MAIN_W_AUTO MAIN_H_AUTO
55 #define VER_MAIN_H_AUTO MAIN_W_AUTO
56
57
58 #define TOOLBAR_W 128
59 #define TOOLBAR_RIGHT_ITEM_H 225
60
61 /* camera focus */
62 #define CAMERA_FOCUS_W  150
63 #define CAMERA_FOCUS_H  97
64
65 #define SETTINGS_TAB_BACK_W 71
66 #define SETTINGS_TAB_BACK_H 71
67
68 #define INDICATOR_BATTERY "INDICATOR_BATTERY"
69 #define INDI_REC_BATTERY "INDI_REC_BATTERY"
70
71 /* recording */
72 #define RECORDING_IMAGE "recording_image"
73 #define RECORDING_TEXT "recording_text"
74 #define RECORDING_LEFT_TEXT "recording_left_text"
75
76 #define RECORDING_STOP_BUTTON "recording_stop_button"
77
78 #define REC_PAUSE "rec_pause"
79 #define REC_REC "rec_rec"
80 #define REC_STOP "rec_stop"
81 #define REC_REC_SIG "rec_rec_sig"
82 #define REC_PAUSE_SIG "rec_pause_sig"
83 #define REC_STOP_SIG "rec_stop_sig"
84 #define REC_SIG_SRC "rec_sig_src"
85
86 /* haptic */
87 #define HAPTIC_SIG_SRC "HAPTIC_SIG_SRC"
88 #define HAPTIC_SIG "HAPTIC_SIG"
89
90 #define CONTI_REVIEW_BACK "conti_review_back"
91 #define CONTI_REVIEW_THUMB "conti_review_thumb"
92 #define CONTI_REVIEW_BTN_SIG_SRC "conti_review_sig_source"
93 #define CONTI_REVIEW_BACK_BTN_SIG "conti_review_back_SIG"
94
95 /* captured image */
96 #define CAPTURED_IMAGE_SCREEN "captured_image_screen"
97 #define CAPTURED_IMAGE_SAVE "captured_image_save_btn"
98 #define CAPTURED_IMAGE_RETRY "capture_image_save_bnt"
99
100 /* Font related */
101 #define COLOR_1 255 255 255 255
102 #define COLOR_2 0 0 0 255
103 #define COLOR_65        164 215 255 255
104 #define COLOR_73        150 150 150 255
105
106 #define FONT_NAME                       "font=SLP:style=Roman"
107 #define FONT_COLOR                      COLOR_1
108
109 #endif