Enable build with iniparser v 3.1
[apps/core/preloaded/ug-memo-efl.git] / edc / edit_tool.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.1 (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: "color_selector";
21     parts{
22         PART_BG("bg")
23         PART_V_PIXEL_RECT("rect.up", 200, "bg", 0.0, 0.0)
24         PART_PIXEL_RECT("border.bg", (500+6), (160+5), 0.5, 0.5, "rect.up", 0.5, 0.5)
25         PART_PIXEL_RECT("color.bg", 500, 160, 0.5, 0.5, "rect.up", 0.5, 0.5)
26         PART_SWALLOW_REL("elm.swallow.color", 0.0, 0.0, "color.bg", 1.0, 1.0, "color.bg")
27         PART_EVENT_RECT("event", "rect.up")
28         PART_SWALLOW_REL("elm.swallow.selector", 4/480, 1.0, "rect.up", (480-4)/480, 1.0, "bg")
29     }/* end parts */
30     programs {
31         program {
32             name: "init";
33             signal: "load";
34             source: "";
35             script {
36                 SCRIPT_CUSTOM_PART(bg);
37                 SCRIPT_CUSTOM_PART(border.bg);
38             }
39         } /* end program */
40         program
41         {
42             name:    "black_theme";
43             signal:  "black";
44             source:  "elm";
45             script {
46                 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);
47                 SCRIPT_SET_COLOR(border.bg, 255, 255, 255, 255);
48             }
49         }
50         program
51         {
52             name:    "white_theme";
53             signal:  "white";
54             source:  "elm";
55             script {
56                 SCRIPT_SET_COLOR(bg, 255, 255, 255, 255);
57                 SCRIPT_SET_COLOR(border.bg, 0, 0, 0, 255);
58             }
59         }
60     }/* end programs */
61 }/* end group */
62
63 group{
64     name: "pencil_size_selector";
65     parts{
66         PART_BG("bg")
67         PART_SWALLOW("bg.color", "bg")
68         PART_RECT("rect.up", 0.0, 0.0, "bg", 1.0, 0.5, "bg")
69         PART_PIXEL_RECT("pencil.bg", 300, 0, 0.5, 0.5, "rect.up", 0.5, 0.5)
70         PART_SWALLOW("elm.swallow.pencil", "pencil.bg")
71         PART_EVENT_RECT("event", "rect.up")
72         PART_SWALLOW_REL("elm.swallow.selector", 5/480, 0.5, "bg", (480-5)/480, 1.0, "bg")
73     }/* end parts */
74 }/* end group */
75
76 group{
77     name: "font_size_selector";
78     parts{
79         PART_BG("bg")
80         PART_SWALLOW("bg.color", "bg")
81         PART_RECT("rect.up", 0.0, 0.0, "bg", 1.0, 0.5, "bg")
82         PART_SWALLOW("elm.swallow.label", "rect.up")
83         PART_EVENT_RECT("event", "rect.up")
84         PART_SWALLOW_REL("elm.swallow.selector", 5/480, 0.5, "bg", (480-5)/480, 1.0, "bg")
85     }/* end parts */
86 }/* end group */
87
88 group{
89     name: "edit_toolbar";
90     parts{
91         PART_BG("bg") /* 720 x 86 */
92         PART_COLOR_RECT("color", "bg", 204, 204, 204, 255)
93         PART_SWALLOW_REL("elm.swallow.btn1", (10)/720, 10/86, "bg", (10+74)/720, (86-10)/86, "bg")
94         PART_SWALLOW_REL("elm.swallow.btn2", (10+16+74)/720, 10/86, "bg", (10+16+74*2)/720, (86-10)/86, "bg")
95         PART_SWALLOW_REL("elm.swallow.btn3", (10+16*2+74*2)/720, 10/86, "bg", (10+16*2+74*3)/720, (86-10)/86, "bg")
96         PART_SWALLOW_REL("elm.swallow.btn4", (720-10-160)/720, 10/86, "bg", (720-10)/720, (86-10)/86, "bg")
97         PART_V_PIXEL_RECT("bottom_margin", 1, "bg", 1.0, 0.0)
98         PART_COLOR_RECT("bottom_margin_color", "bottom_margin", 204, 204, 204, 255)
99     }/* end parts */
100 }/* end group */