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