summaryrefslogtreecommitdiff
path: root/edc/gl_edit_list.edc
blob: f213da7fa14d54ac6f1ad48f4fd49960088b0a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
*
* Copyright 2012  Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*    http://floralicense.org/license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#define EDIT_GL_STYLE(iStyle, iX2TextBlock) \
group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
    alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
    data.item: "stacking" "above"; \
    data.item: "selectraise" "on"; \
    data.item: "texts" "elm.text elm.text.date"; \
    data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
    data.item: "treesize" "20"; \
    parts { \
        PART_BG("bg") \
        PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
        part \
        { \
            name: "elm.text"; \
            type: TEXTBLOCK; \
            mouse_events: 1; \
            scale: 1; \
            description \
            { \
                state: "default" 0.0; \
                fixed: 1 0; \
                min: (iX2TextBlock-16-96-16) 56; \
                max: (iX2TextBlock-16-96-16) 56; \
                align: 0 0; \
                rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
                rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
                text \
                { \
                    style: "textblock_style_main"; \
                    min: 1 1; \
                } \
            } \
        } \
        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) \
        PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
        GENLIST_PART_BOTTOM_LINE \
        PART_EVENT_RECT("event", "bg") \
    }/* end parts */ \
    programs {\
        program {\
            name: "init";\
            signal: "load";\
            source: "";\
            script {\
                SCRIPT_CUSTOM_PART(bg);\
                SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
            }\
        } /* end program */\
        program \
        {\
            name:    "go_active"; \
            signal:  "elm,state,selected"; \
            source:  "elm"; \
            script {\
                SCRIPT_SET_COLOR(bg, 42, 137, 194, 255);\
            }\
            transition: LINEAR 0.1; \
        } \
        program \
        { \
            name:    "go_passive"; \
            signal:  "elm,state,unselected"; \
            source:  "elm"; \
            script {\
                SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
            }\
            transition: LINEAR 0.1; \
        }\
    }\
}

EDIT_GL_STYLE("list", (720-16))
EDIT_GL_STYLE("list_draw", (720-16-96-16))