APPLY_RSA
[apps/home/ug-memo-efl.git] / edc / gl_edit_list.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #define EDIT_GL_STYLE(iStyle, iX2TextBlock) \
20 group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
21     alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
22     data.item: "stacking" "above"; \
23     data.item: "selectraise" "on"; \
24     data.item: "texts" "elm.text elm.text.date"; \
25     data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
26     data.item: "treesize" "20"; \
27     parts { \
28         PART_BG("bg") \
29         PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
30         part \
31         { \
32             name: "elm.text"; \
33             type: TEXTBLOCK; \
34             mouse_events: 1; \
35             scale: 1; \
36             description \
37             { \
38                 state: "default" 0.0; \
39                 fixed: 1 0; \
40                 min: (iX2TextBlock-16-96-16) 56; \
41                 max: (iX2TextBlock-16-96-16) 56; \
42                 align: 0 0; \
43                 rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
44                 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
45                 text \
46                 { \
47                     style: "textblock_style_main"; \
48                     min: 1 1; \
49                 } \
50             } \
51         } \
52         PART_TEXT_DATE("elm.text.date", (16+96+16)/720, (128-16-32)/128, "bg", (720-16)/720, (128-16)/128, "bg", "", "SLP:style=Medium", "slp_medium", 32) \
53         PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
54         GENLIST_PART_BOTTOM_LINE \
55         PART_EVENT_RECT("event", "bg") \
56     }/* end parts */ \
57     programs {\
58         program {\
59             name: "init";\
60             signal: "load";\
61             source: "";\
62             script {\
63                 SCRIPT_CUSTOM_PART(bg);\
64                 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
65             }\
66         } /* end program */\
67         program \
68         {\
69             name:    "go_active"; \
70             signal:  "elm,state,selected"; \
71             source:  "elm"; \
72             script {\
73                 SCRIPT_SET_COLOR(bg, 42, 137, 194, 255);\
74             }\
75             transition: LINEAR 0.1; \
76         } \
77         program \
78         { \
79             name:    "go_passive"; \
80             signal:  "elm,state,unselected"; \
81             source:  "elm"; \
82             script {\
83                 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
84             }\
85             transition: LINEAR 0.1; \
86         }\
87     }\
88 }
89
90 EDIT_GL_STYLE("list", (720-16))
91 EDIT_GL_STYLE("list_draw", (720-16-96-16))