2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
18 #ifndef __DEF_STRING_H_
19 #define __DEF_STRING_H_
21 /* share between EDC and C code. */
22 /* #define NEW_RECORDING_LAYOUT */
24 #define INVALID_INDEX -1
26 #define CAM_COMMON_STRING_LEN 80
28 #define CAM_UI_LOG(fmt, args...) cam_debug(LOG_UI, fmt, ##args)
38 #define UI_TEST_LOG(fmt, args...) \
40 printf("\x1b[%dm\x1b[%dm[CAM_UI_LOG] [%s:%d] : "fmt, BG_BLACK, FG_GREEN, __func__, __LINE__, ##args); \
41 printf("\x1b[0m\n"); \
46 #define VER_MAIN_W MAIN_H
47 #define VER_MAIN_H MAIN_W
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
56 #define TOOLBAR_RIGHT_ITEM_H 225
59 #define CAMERA_FOCUS_W 150
60 #define CAMERA_FOCUS_H 97
62 #define SETTINGS_TAB_BACK_W 71
63 #define SETTINGS_TAB_BACK_H 71
65 #define INDICATOR_GPS "INDICATOR_GPS"
66 #define INDICATOR_BATTERY "INDICATOR_BATTERY"
67 #define INDICATOR_NUM "INDICATOR_NUM"
68 #define INDICATOR_STORAGE "INDICATOR_STORAGE"
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"
77 #define RECORDING_IMAGE "recording_image"
78 #define RECORDING_TEXT "recording_text"
79 #define RECORDING_LEFT_TEXT "recording_left_text"
82 #define HAPTIC_SIG_SRC "HAPTIC_SIG_SRC"
83 #define HAPTIC_SIG "HAPTIC_SIG"
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"
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"
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
101 #define FONT_NAME "font=SLP:style=Roman"
102 #define FONT_COLOR COLOR_1