apply FSL(Flora Software License)
[apps/home/memo.git] / edc / text_editor.edc
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17 #define TEXT_EDITOR(iName, imf_height)\
18 group{\
19     name: iName;\
20     parts{\
21         PART_BG("bg") /* 720 * unknown */\
22         PART_V_PIXEL_RECT("top_margin", 16, "bg", 0.0, 0.0)\
23         PART_V_PIXEL_RECT("text.bg", 48, "top_margin", 1.0, 0.0)\
24         PART_V_PIXEL_RECT("top_margin2", 10, "text.bg", 1.0, 0.0)\
25         PART_V_PIXEL_RECT("toolbar.bg", 86, "tool.bg", 0.0, 1.0)\
26         PART_V_PIXEL_RECT("tool.bg", 0, "bg", 1.0, 1.0)\
27         /* content */\
28         PART_TEXT_GRAY_RIGHT("elm.text.date", 16/720, 0.0, "text.bg", (720-16)/720, 1.0, "text.bg", "date", "Helvetica Neue:style=Medium", 32)\
29         PART_SWALLOW_REL("elm.swallow.text", 16/720, 1.0, "top_margin2", (720-16)/720, 0.0, "toolbar.bg")\
30         PART_SWALLOW("elm.swallow.toolbar", "toolbar.bg")\
31         PART_SWALLOW("elm.swallow.tool", "tool.bg")\
32     }/* end part */\
33     programs {\
34         program {\
35             name: "init";\
36             signal: "load";\
37             source: "";\
38             script {\
39                 SCRIPT_CUSTOM_PART("tool.bg");\
40                 SCRIPT_CUSTOM_PART("elm.swallow.text");\
41             }\
42         } /* end program */\
43 \
44         program {\
45             name:   "abbrev";\
46             signal: "abbrev";\
47             source: "elm";\
48             script {\
49                  set_state_val(PART:"tool.bg", STATE_MIN, 0, imf_height);\
50            }\
51         } /* end program */\
52         program {\
53             name:   "expand";\
54             signal: "expand";\
55             source: "elm";\
56             script {\
57                  set_state_val(PART:"tool.bg", STATE_MIN, 0, 0);\
58            }\
59         } /* end program */\
60     }/* end programs */\
61 }
62
63 TEXT_EDITOR("text_editor_480_800", IMF_HEIGHT_480_800)
64 TEXT_EDITOR("text_editor_600_1024", IMF_HEIGHT_600_1024)
65 TEXT_EDITOR("text_editor_720_1280", IMF_HEIGHT_720_1280)