Flora license update
[apps/core/preloaded/ug-camera-efl.git] / edc / cam_recording_edje.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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
18
19 #include "cam_recording_edje_inc.edc"
20
21 collections {
22         group {
23                 name: "recording_layout";
24                 min: MAIN_W MAIN_H;
25
26                 parts {
27                         part {
28                                 name: RECORDING_IMAGE;
29                                 type: IMAGE;
30                                 description {
31                                         state: "default" 0.0;
32                                         rel1 { relative: RECORDING_IMAGE_X/MAIN_W RECORDING_IMAGE_Y/MAIN_H; }
33                                         rel2 { relative: (RECORDING_IMAGE_X+RECORDING_IMAGE_W)/MAIN_W (RECORDING_IMAGE_Y+RECORDING_IMAGE_H)/MAIN_H; }
34                                 }
35                                 description {
36                                         state: "rec" 0.0;
37                                         inherit: "default" 0.0;
38                                         image { normal: RECORDING_IMAGE_REC_IMAGE; }
39                                 }
40                                 description {
41                                         state: "rec1" 0.0;
42                                         inherit: "default" 0.0;
43                                         image { normal: RECORDING_IMAGE_REC_IMAGE; }
44                                 }
45                                 description {
46                                         state: "invisible" 0.0;
47                                         inherit: "default" 0.0;
48                                         visible: 0;
49                                 }
50                         }
51
52                         part {
53                                 name: RECORDING_TEXT;
54                                 type: TEXT;
55                                 scale: 1;
56                                 description {
57                                         state: "default" 0.0;
58                                         rel1 { relative: RECORDING_TEXT_X/MAIN_W RECORDING_TEXT_Y/MAIN_H; }
59                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
60                                         color: FONT_COLOR;
61                                         text {
62                                                 font : FONT_NAME;
63                                                 size : 35;
64                                                 align: 0.0 0.0;
65                                         }
66                                 }
67                                 description {
68                                         state: "invisible" 0.0;
69                                         inherit: "default" 0.0;
70                                         visible: 0;
71                                 }
72                         }
73
74                         part {
75                                 name: RECORDING_LEFT_TEXT;
76                                 type: TEXT;
77                                 scale: 1;
78                                 description {
79                                         state: "default" 0.0;
80                                         rel1 { relative: RECORDING_LEFT_TEXT_X/MAIN_W RECORDING_LEFT_TEXT_Y/MAIN_H; }
81                                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
82                                         color: FONT_COLOR;
83                                         text {
84                                                 font : FONT_NAME;
85                                                 size : 35;
86                                                 align: 0.0 0.0;
87                                         }
88                                 }
89                                 description {
90                                         state: "invisible" 0.0;
91                                         inherit:  "default" 0.0;
92                                         visible : 0;
93                                 }
94                         }
95
96                         part { name: "progressbar";
97                                 type: SWALLOW;
98                                 description {
99                                         state: "default" 0.0;
100                                         fixed:1 1;
101                                         rel1 { relative: PROGRESS_BAR_X/MAIN_W PROGRESS_BAR_Y/MAIN_H; }
102                                         rel2 { relative: (PROGRESS_BAR_X+PROGRESS_BAR_W)/MAIN_W (PROGRESS_BAR_Y+PROGRESS_BAR_H)/MAIN_H; }
103                                 }
104                         }
105
106                         part {
107                                 name: "progressbar_text";
108                                 type: TEXT;
109                                 scale: 1;
110                                 description {
111                                         state: "default" 0.0;
112                                         rel1 { relative: 1.0 (-20)/PROGRESS_BAR_H; to: "progressbar"; }
113                                         rel2 { relative: (1.0+90/PROGRESS_BAR_W) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; }
114                                         color: FONT_COLOR;
115                                         text {
116                                                 font : FONT_NAME;
117                                                 size : 28;
118                                                 align: 0.5 0.5;
119                                         }
120                                 }
121                         }
122
123                         part{
124                                 name: "file_size_text";
125                                 type: TEXT;
126                                 scale: 1;
127                                 description{
128                                         state: "default" 0.0;
129                                         rel1 { relative: (0.0-100/PROGRESS_BAR_W) (-20)/PROGRESS_BAR_H; to: "progressbar"; }
130                                         rel2 { relative: (0.0-10/PROGRESS_BAR_W) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; }
131                                         color: FONT_COLOR;
132                                         text {
133                                                 font : FONT_NAME;
134                                                 size : 28;
135                                                 align : 1.0 0.5;
136                                         }
137                                 }
138                         }
139                 }
140
141                 programs {
142                         program {
143                                 name: "set_rec_state";
144                                 source: "program";
145                                 signal: "state,rec";
146                                 script {
147                                         set_state(PART:RECORDING_IMAGE, "rec", 0.0);
148                                         set_state(PART:RECORDING_TEXT, "default", 0.0);
149                                 }
150                         }
151                         program {
152                                 name: "set_rec_state1";
153                                 source: "program";
154                                 signal: "state,rec1";
155                                 script {
156                                         set_state(PART:RECORDING_IMAGE, "rec1", 0.0);
157                                         set_state(PART:RECORDING_TEXT, "default", 0.0);
158                                 }
159                         }
160                         program {
161                                 name: "set_pause_state";
162                                 source: "program";
163                                 signal: "state,pause";
164                                 script {
165                                         set_state(PART:RECORDING_IMAGE, "pause", 0.0);
166                                         set_state(PART:RECORDING_TEXT, "default", 0.0);
167                                 }
168                         }
169                         program {
170                                 name: "hide_indicator";
171                                 source: "program";
172                                 signal: "indicator,hide";
173                                 script {
174                                         set_state(PART:RECORDING_IMAGE, "invisible", 0.0);
175                                         set_state(PART:RECORDING_TEXT, "invisible", 0.0);
176                                 }
177                         }
178                         program {
179                                 name: "show_indicator";
180                                 source: "program";
181                                 signal: "indicator,show";
182                                 script {
183                                         set_state(PART:RECORDING_IMAGE, "pause", 0.0);
184                                         set_state(PART:RECORDING_TEXT, "default", 0.0);
185                                 }
186                         }
187                 }
188         }
189 }
190 //endfile