Initialize Tizen 2.3
[apps/home/ug-memo-efl.git] / edc / text_editor.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: "text_editor";
21     parts{
22         PART_BG_EX("bg", 720, 0) /* 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_V_PIXEL_RECT("toolbar.bg", 86, "tool.bg", 0.0, 1.0)
27         PART_V_PIXEL_RECT("tool.bg", 0, "bg", 1.0, 1.0)
28         /* content */
29         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)
30         PART_SWALLOW_REL("elm.swallow.text", 16/720, 1.0, "top_margin2", (720-16)/720, 0.0, "toolbar.bg")
31         PART_SWALLOW("elm.swallow.toolbar", "toolbar.bg")
32         PART_SWALLOW("elm.swallow.tool", "tool.bg")
33     }/* end part */
34     programs {
35         program {
36             name: "init";
37             signal: "load";
38             source: "";
39             script {
40                 SCRIPT_CUSTOM_PART("tool.bg");
41                 SCRIPT_CUSTOM_PART("elm.swallow.text");
42             }
43         } /* end program */
44
45         program {
46             name:   "abbrev";
47             signal: "abbrev";
48             source: "elm";
49             script {
50                  set_state_val(PART:"tool.bg", STATE_MIN, 0, IMF_HEIGHT);
51            }
52         } /* end program */
53         program {
54             name:   "expand";
55             signal: "expand";
56             source: "elm";
57             script {
58                  set_state_val(PART:"tool.bg", STATE_MIN, 0, 0);
59            }
60         } /* end program */
61     }/* end programs */
62 }