2 * Copyright (c) 2009 - 2015 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.
22 #define PROG_PART_SHOW_HIDE(part_name)\
24 name: "show,"part_name;\
25 signal: "show,"part_name;\
27 action: STATE_SET "default" 0.0;\
31 name: "hide,"part_name;\
32 signal: "hide,"part_name;\
34 action: STATE_SET "hidden" 0.0;\
38 #define TEXTBLOCK(rel1_x, rel1_y, rel2_x, rel2_y, font_style)\
40 name: "textblock.title";\
45 state: "default" 0.0;\
49 relative: rel1_x rel1_y;\
53 relative: rel2_x rel2_y;\
66 relative: rel1_x rel1_y;\
70 relative: rel2_x rel2_y;\
74 style: "title_style_ellipsis";\
78 #define PROGRAM_SIGNAL_EMIT_CLICK(part_name, singal_name)\
80 name: "send_click_event_"part_name;\
81 signal: "mouse,clicked,1";\
83 action: SIGNAL_EMIT singal_name "";\
84 after: "touch_snd_"part_name;\
87 name: "touch_snd_"part_name;\
88 action: PLAY_SAMPLE "touch_sound" 1.0;\
91 #define PROGRAMS_ELLIPSIS()\
93 name: "show.textblock";\
94 signal: "show,dim,textblock.title";\
95 source: "textblock.title";\
96 action: STATE_SET "show" 0.0;\
97 target: "textblock.title";\
100 name: "default.textblock";\
101 signal: "hide,dim,textblock.title";\
102 source: "textblock.title";\
103 action: STATE_SET "default" 0.0;\
104 target: "textblock.title";\
107 #define TEXTBLOCK_TEST(block_name, rel1_x, rel1_y, rel2_x, rel2_y, font_style)\
109 name: "textblock_test.title."block_name;\
114 state: "default" 0.0;\
118 relative: rel1_x rel1_y;\
122 relative: rel2_x rel2_y;\
133 name: "rect.textblock_test.title."block_name;\
138 state: "default" 0.0;\
140 rel1.to: "textblock_test.title."block_name;\
141 rel2.to: "textblock_test.title."block_name;\
148 name: "title_style_ellipsis";
149 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=68 align=left valign=bottom color=#ffffffff style=shadow shadow_color=#0000007f wrap="" ellipsis=1.0";
151 tag: "hilight" "+ color=#ffff";
152 tag: "b" "+ color=#ffff";
158 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=85 align=left valign=bottom color=#ffffffff style=shadow shadow_color=#0000007f wrap=""";
160 tag: "hilight" "+ color=#ffff";
161 tag: "b" "+ color=#ffff";
168 name: "color_theme1";
169 color: 246 128 142 255;
172 name: "color_theme2";
173 color: 1 129 174 255;
176 name: "color_theme3";
177 color: 255 255 255 255;
180 name: "color_theme4";
181 color: 246 193 78 216;
184 name: "color_theme5";
185 color: 157 157 157 255;
188 name: "color_theme6";
189 color: 228 243 178 255;
193 #define LOCK_TITLE()\
194 TEXTBLOCK(42/WIDTH, 218/HEIGHT, (WIDTH-42)/WIDTH, (218+96)/HEIGHT, "title_style");