Tizen release 1.0
[pkgs/p/phone-lock.git] / data / phone-lock.edc
1 /*
2  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * This file is part of <phone-lock>
5  * Written by <Seungtaek Chung> <seungtaek.chung@samsung.com>, <Mi-Ju Lee> <miju52.lee@samsung.com>, <Xi Zhichan> <zhichan.xi@samsung.com>
6  *
7  * PROPRIETARY/CONFIDENTIAL
8  *
9  * This software is the confidential and proprietary information of SAMSUNG ELECTRONICS ("Confidential Information").
10  * You shall not disclose such Confidential Information and shall use it only in accordance
11  * with the terms of the license agreement you entered into with SAMSUNG ELECTRONICS.
12  * SAMSUNG make no representations or warranties about the suitability of the software,
13  * either express or implied, including but not limited to the implied warranties of merchantability,
14  * fitness for a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as a result of using,
16  * modifying or distributing this software or its derivatives.
17  *
18  */
19
20 #define FONT_BLD       "HelveticaNeueBld"
21 #define FONT_MED       "HelveticaNeueMed"
22 #define FONT_ROM       "HelveticaNeueRom"
23 #define FONT_LIG       "HelveticaNeueLig"
24
25 styles {
26         style {
27                 name: "mesg_style";
28                 base: "font="FONT_MED" font_size=30 color=#ffffffff wrap=word align=center valign=middle";
29         }
30 }
31
32 collections {
33         group {
34                 name, "main";
35
36                 parts {
37                         part { name, "bg";
38                                 type, RECT;
39                                 description {
40                                         state, "default" 0.0;
41                                         color, 0 0 0 255;
42                                 }
43                         }
44
45                         part {
46                                 name: "tip_part";
47                                 type: SWALLOW;
48                                 mouse_events: 0;
49                                 scale:1;
50                                 description {
51                                         state: "default" 0.0;
52                                         fixed: 1 1;
53                                         rel1 { relative: 0.15  0.05;    to: "bg";}
54                                         rel2 { relative: 0.85  0.12;    to: "bg";}
55                                 }
56                         }
57
58                         part { name, "bg_entry";
59                                 type, RECT;
60                                 mouse_events, 0;
61                                 description {
62                                         state, "default" 0.0;
63                                         visible : 1;
64                                         rel1 { relative, 0.15 0.16; to, bg; }
65                                         rel2 { relative, 0.85 0.24; to, bg; }
66                                         color, 255 255 255 255;
67                                 }
68                                 description{
69                                         state, "block" 0.0;
70                                         visible : 0;
71                                 }
72                         }
73
74                         part { name, "sw_entry";
75                                 type, SWALLOW;
76                                 mouse_events, 1;
77                                 description {
78                                         state, "default" 0.0;
79                                         rel1 { to, bg_entry; }
80                                         rel2 { to, bg_entry; }
81                                 }
82                         }
83
84                         part { name, "message";
85                                 type, TEXTBLOCK;
86                                 scale, 1;
87                                 mouse_events, 0;
88                                 description {
89                                         state, "default" 0.0;
90                                         rel1 { relative, 0.1 0.25; to, bg; }
91                                         rel2 { relative, 0.9 0.4; to, bg; }
92                                         text.style, mesg_style;
93                                         color, 255 255 255 255;
94                                 }
95                         }
96                 }
97
98                 programs{
99                         program{
100                                 name: "mode_change";
101                                 signal: "SIG_BLOCKENTRY";
102                                 source: "BLOCKENTRY";
103                                 action: STATE_SET "block" 0.0;
104                 target: "bg_entry";
105                         }
106                 }
107         }
108 }