da0cfc8ff9b241fbaa01bbe86711851f691ffa41
[apps/home/ug-memo-efl.git] / edc / detail.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 group{
18     name: "detail_frame";
19     parts{
20         PART_BG_EX("bg", 480, 0)
21         PART_EVENT_RECT("event", "bg")
22         part {
23             name: "elm.text.date";
24             type: TEXT;
25             mouse_events: 0;
26             scale: 1;
27             description {
28                 state: "default" 0.0;
29                 min: 0 30;
30                 align: 0.5 0;
31                 fixed: 1 1;
32                 rel1 { relative: 0.0 0.0; to: "bg";}
33                 rel2 { relative: (480-15)/480 0.0; to: "bg";}
34                 color: 121 115 100 255;
35                 text {
36                     text: "date";
37                     font: "SLP:style=Medium";
38                     size: 16;
39                     align: 1 0.5;
40                 }
41             }
42         }
43
44         part {
45             name: "elm.swallow.content";
46             type: SWALLOW;
47             mouse_events: 1;
48             scale: 1;
49             description {
50                 state: "default" 0.0;
51                 visible: 1;
52                 rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "elm.text.date";}
53                 rel2 { relative: 1.0 1.0; to: "bg"; }
54             }
55             description {
56                 state: "text" 0.0;
57                 inherit: "default" 0.0;
58                 rel1 { relative: 15/480 1.0; to_x: "bg"; to_y: "elm.text.date";}
59                 rel2 { relative: (480-15)/480 1.0; to: "bg"; }
60             }
61         }
62     }/* end parts */
63
64     programs {
65         program {
66             name: "prog_doodle_mode";
67             source: "";
68             signal: "sig_doodle_mode";
69             script {
70                 set_state(PART:"elm.swallow.content", "default", 0.0);
71             }
72         }
73
74         program {
75             name: "prog_text_mode";
76             source: "";
77             signal: "sig_text_mode";
78             script {
79                 set_state(PART:"elm.swallow.content", "text", 0.0);
80             }
81         }
82     }
83 }/* end group */