Tizen release 1.0
[apps/home/ug-memo-efl.git] / edc / gl_edit_list.edc
1 /*
2  * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
3  * 
4  * This file is part of the ug-memo-efl
5  * Written by Zhibin Zhou <zhibin.zhou@samsung.com>, Canjiang Lu <canjiang.lu@samsung.com>,
6  *            Feng Li <feng.li@samsung.com>
7  *
8  * PROPRIETARY/CONFIDENTIAL
9  *
10  * This software is the confidential and proprietary information of
11  * SAMSUNG ELECTRONICS ("Confidential Information").
12  * You shall not disclose such Confidential Information and shall
13  * use it only in accordance with the terms of the license agreement
14  * you entered into with SAMSUNG ELECTRONICS.  SAMSUNG make no
15  * representations or warranties about the suitability
16  * of the software, either express or implied, including but not
17  * limited to the implied warranties of merchantability, fitness for a particular purpose, or non-
18  * infringement. SAMSUNG shall not be liable for any damages suffered by licensee as
19  * a result of using, modifying or distributing this software or its derivatives.
20  *
21  */
22
23 #define EDIT_GL_STYLE(iStyle, iX2TextBlock) \
24 group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
25     alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
26     data.item: "stacking" "above"; \
27     data.item: "selectraise" "on"; \
28     data.item: "texts" "elm.text elm.text.date"; \
29     data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
30     data.item: "treesize" "20"; \
31     parts { \
32         PART_BG("bg") \
33         PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
34         part \
35         { \
36             name: "elm.text"; \
37             type: TEXTBLOCK; \
38             mouse_events: 1; \
39             scale: 1; \
40             description \
41             { \
42                 state: "default" 0.0; \
43                 fixed: 1 0; \
44                 min: (iX2TextBlock-16-96-16) 56; \
45                 max: (iX2TextBlock-16-96-16) 56; \
46                 align: 0 0; \
47                 rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
48                 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
49                 text \
50                 { \
51                     style: "textblock_style_main"; \
52                     min: 1 1; \
53                 } \
54             } \
55         } \
56         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) \
57         PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
58         GENLIST_PART_BOTTOM_LINE \
59         PART_EVENT_RECT("event", "bg") \
60     }/* end parts */ \
61     programs {\
62         program {\
63             name: "init";\
64             signal: "load";\
65             source: "";\
66             script {\
67                 SCRIPT_CUSTOM_PART(bg);\
68                 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
69             }\
70         } /* end program */\
71         program \
72         {\
73             name:    "go_active"; \
74             signal:  "elm,state,selected"; \
75             source:  "elm"; \
76             script {\
77                 SCRIPT_SET_COLOR(bg, 50, 50, 50, 255);\
78             }\
79             transition: LINEAR 0.1; \
80         } \
81         program \
82         { \
83             name:    "go_passive"; \
84             signal:  "elm,state,unselected"; \
85             source:  "elm"; \
86             script {\
87                 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
88             }\
89             transition: LINEAR 0.1; \
90         }\
91     }\
92 }
93
94 EDIT_GL_STYLE("list", (720-16))
95 EDIT_GL_STYLE("list_draw", (720-16-96-16))