Tizen 2.0 Release
[apps/home/ug-memo-efl.git] / edc / doodle_editor.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://floralicense.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 group{
20     name: "doodle_editor";
21     parts{
22         PART_BG("bg") /* 720 * unknown */
23         PART_V_PIXEL_RECT("top_margin", 16, "bg", 0.0, 0.0)
24         PART_V_PIXEL_RECT("text.bg", 48, "top_margin", 1.0, 0.0)
25         PART_V_PIXEL_RECT("top_margin2", 10, "text.bg", 1.0, 0.0)
26         PART_RECT("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2")
27         PART_V_PIXEL_RECT("bottom_margin2", 108, "bottom_margin", 0.0, 1.0)
28         PART_V_PIXEL_RECT("bottom_margin", 86, "bg", 1.0, 1.0)
29         PART_V_PIXEL_RECT("_bottom_margin", 108, "bg", 1.0, 1.0)
30         PART_V_PIXEL_RECT("tool.bg", IMF_HEIGHT, "bg", 1.0, 1.0)
31         /* layout */
32         PART_V_PIXEL_RECT("doodle.bg", 700, "_doodle.bg", 0.5, 0.5)
33         PART_COLOR_RECT("doodle.bg.color", "doodle.bg", 255, 255, 255, 255)
34         PART_V_PIXEL_RECT("toolbar.bg", 86, "bg", 1.0, 1.0)
35         PART_V_PIXEL_RECT("toolbar.bg.up", 86, "tool.bg", 0.0, 1.0)
36         PART_V_PIXEL_RECT("comment.bg.up", 108, "tool.bg", 0.0, 1.0)
37         PART_V_PIXEL_RECT("comment.bg", 108, "bottom_margin", 0.0, 1.0)
38         PART_V_PIXEL_RECT("comment.bg.down", 108, "bg", 1.0, 1.0)
39         /* content */
40         PART_TEXT_GRAY_RIGHT("elm.text.date", 16/720, 0.0, "text.bg", (720-16)/720, 1.0, "text.bg", "date", "SLP:style=Medium", "slp_medium", 32)
41         PART_SWALLOW_REL("elm.swallow.doodle", 16/720, 0.0, "doodle.bg", (720-16)/720, 1.0, "doodle.bg")
42         PART_SWALLOW("elm.swallow.toolbar", "toolbar.bg")
43         PART_SWALLOW("elm.swallow.tool", "tool.bg")
44         PART_SWALLOW("elm.swallow.comment", "comment.bg")
45     }/* end part */
46     programs {
47         program {
48             name: "init";
49             signal: "load";
50             source: "";
51             script {
52                 SCRIPT_CUSTOM_PART("elm.swallow.toolbar");
53                 SCRIPT_CUSTOM_PART("elm.swallow.comment");
54                 SCRIPT_CUSTOM_PART("_doodle.bg");
55             }
56         } /* end program */
57
58         program {
59             name:   "abbrev";
60             signal: "abbrev";
61             source: "elm";
62             script {
63                  SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 1)
64                  SCRIPT_SET_VISIBLE(elm.swallow.comment, 0)
65                  SCRIPT_SET_REL(elm.swallow.toolbar, 0.0, 0.0, "toolbar.bg.up", 1.0, 1.0, "toolbar.bg.up");
66                  SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2")
67            }
68         } /* end program */
69         program {
70             name:   "expand";
71             signal: "expand";
72             source: "elm";
73             script {
74                  SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 1)
75                  SCRIPT_SET_VISIBLE(elm.swallow.comment, 1)
76                  SCRIPT_SET_REL(elm.swallow.toolbar, 0.0, 0.0, "toolbar.bg", 1.0, 1.0, "toolbar.bg");
77                  SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg", 1.0, 1.0, "comment.bg");
78                  SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2")
79            }
80         } /* end program */
81         program {
82             name:   "comment_abbrev";
83             signal: "abbrev";
84             source: "comment";
85             script {
86                  SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 0)
87                  SCRIPT_SET_VISIBLE(elm.swallow.comment, 1)
88                  SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg.up", 1.0, 1.0, "comment.bg.up");
89                  SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "_bottom_margin")
90            }
91         } /* end program */
92         program {
93             name:   "comment_expand";
94             signal: "expand";
95             source: "comment";
96             script {
97                  SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 0)
98                  SCRIPT_SET_VISIBLE(elm.swallow.comment, 1)
99                  SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg.down", 1.0, 1.0, "comment.bg.down");
100                  SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "_bottom_margin")
101            }
102         } /* end program */
103     }/* end programs */
104 }
105
106 group{
107     name: "doodle_comment";
108     images {
109         image: "00_search_input_field_bg.png" COMP;
110     }
111     parts{
112         PART_BG("bg") /* 720 * 67 */
113         PART_COLOR_RECT("bg.color", "bg", 30, 25, 22, 255)
114         PART_RECT("image.bg", 16/720, 8/67, "bg", (720-16)/720, (67-9)/67, "bg")
115         PART_BORDER_IMAGE("image", "image.bg", "00_search_input_field_bg.png", 6, 6, 7, 5)
116         PART_V_PIXEL_RECT("editfield.bg", 50, "image.bg", 0.5, 0.5)
117         PART_SWALLOW_REL("elm.swallow.editfield", 10/460, 0.0, "editfield.bg", (460-10)/460, 1.0, "editfield.bg")
118     }/* end parts */
119 }/* end group */
120