464d9437c34a03bafd27f153e9874c2eea54da59
[apps/home/ug-memo-efl.git] / edc / gl_edit_list.edc
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 #define EDIT_GL_STYLE(iStyle, iX2TextBlock) \
18 group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
19     alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
20     data.item: "stacking" "above"; \
21     data.item: "selectraise" "on"; \
22     data.item: "texts" "elm.text elm.text.date"; \
23     data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
24     data.item: "treesize" "20"; \
25     parts { \
26         PART_BG("bg") \
27         PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
28         part \
29         { \
30             name: "elm.text"; \
31             type: TEXTBLOCK; \
32             mouse_events: 1; \
33             scale: 1; \
34             description \
35             { \
36                 state: "default" 0.0; \
37                 fixed: 1 0; \
38                 min: (iX2TextBlock-16-96-16) 56; \
39                 max: (iX2TextBlock-16-96-16) 56; \
40                 align: 0 0; \
41                 rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
42                 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
43                 text \
44                 { \
45                     style: "textblock_style_main"; \
46                     min: 1 1; \
47                 } \
48             } \
49         } \
50         PART_TEXT_DATE("elm.text.date", (16+96+16)/720, (128-16-32)/128, "bg", (720-16)/720, (128-16)/128, "bg", "", "Helvetica Neue:style=Medium", 32) \
51         PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
52         GENLIST_PART_BOTTOM_LINE \
53         PART_EVENT_RECT("event", "bg") \
54     }/* end parts */ \
55     programs {\
56         program {\
57             name: "init";\
58             signal: "load";\
59             source: "";\
60             script {\
61                 SCRIPT_CUSTOM_PART(bg);\
62                 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
63             }\
64         } /* end program */\
65         program \
66         {\
67             name:    "go_active"; \
68             signal:  "elm,state,selected"; \
69             source:  "elm"; \
70             script {\
71                 SCRIPT_SET_COLOR(bg, 50, 50, 50, 255);\
72             }\
73             transition: LINEAR 0.1; \
74         } \
75         program \
76         { \
77             name:    "go_passive"; \
78             signal:  "elm,state,unselected"; \
79             source:  "elm"; \
80             script {\
81                 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
82             }\
83             transition: LINEAR 0.1; \
84         }\
85     }\
86 }
87
88 EDIT_GL_STYLE("list", (720-16))
89 EDIT_GL_STYLE("list_draw", (720-16-96-16))