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.
17 #define PAGE_RECT(part_name, row_def, col_def) \
19 name: "item_"part_name"_rect"; \
22 state: "default" 0.0; \
24 rel1 {relative: ((col_def+1)*ROW_SHIFT) ((row_def+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
25 rel2 {relative: ((col_def+1)*ROW_SHIFT) ((row_def+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
26 min: THUMBNAIL_WIDTH THUMBNAIL_HEIGHT; \
27 max: THUMBNAIL_WIDTH THUMBNAIL_HEIGHT; \
32 #define PAGE_SWALLOW(part_name, row_def, col_def, row_prev, col_prev, row_next, col_next) \
34 name: "item_"part_name"_swallow"; \
39 state: "default" 0.0 ;\
41 rel1 {relative: ((col_def+1)*ROW_SHIFT) ((row_def+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
42 rel2 {relative: ((col_def+1)*ROW_SHIFT) ((row_def+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
44 min: THUMBNAIL_WIDTH THUMBNAIL_HEIGHT; \
45 max: THUMBNAIL_WIDTH THUMBNAIL_HEIGHT; \
50 rel1 {relative: ((col_prev+1)*ROW_SHIFT) ((row_prev+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
51 rel2 {relative: ((col_prev+1)*ROW_SHIFT) ((row_prev+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
57 rel1 {relative: ((col_next+1)*ROW_SHIFT) ((row_next+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
58 rel2 {relative: ((col_next+1)*ROW_SHIFT) ((row_next+1)*COL_SHIFT); to: "container"; offset: THUMBNAIL_OFFSET_X THUMBNAIL_OFFSET_Y;} \
63 #define PAGE_PROGRAM(part_name) \
65 name: "page_grid_"part_name"_next"; \
67 source: "item_"part_name"_swallow"; \
68 action: STATE_SET "next" 0.0;\
69 target: "item_"part_name"_swallow"; \
70 transition: DECELERATE 0.20; \
71 after: "page_grid_ani_done_next_"part_name; \
74 name: "page_grid_"part_name"_prev"; \
76 source: "item_"part_name"_swallow"; \
77 action: STATE_SET "prev" 0.0;\
78 target: "item_"part_name"_swallow"; \
79 transition: DECELERATE 0.20; \
80 after: "page_grid_ani_done_prev_"part_name; \
83 name: "page_grid_"part_name"_ani_"; \
85 source: "item_"part_name"_swallow"; \
86 action: STATE_SET "default" 0.0; \
87 target: "item_"part_name"_swallow"; \
90 name: "page_grid_ani_done_prev_"part_name; \
91 action: SIGNAL_EMIT "ani,done,left" "item_"part_name"_swallow"; \
94 name: "page_grid_ani_done_next_"part_name; \
95 action: SIGNAL_EMIT "ani,done,right" "item_"part_name"_swallow"; \
98 name: "program_down_app_grid_"part_name; \
99 source: "item_"part_name"_swallow";\
100 signal: "mouse,down,1";\
101 action: SIGNAL_EMIT "down,part" "item_"part_name"_swallow";\
104 name: "program_up_app_grid_"part_name; \
105 source: "item_"part_name"_swallow";\
106 signal: "mouse,up,1";\
107 action: SIGNAL_EMIT "up,part" "item_"part_name"_swallow";\