Apply GUI resource and layout to progressbar
[platform/core/security/ode.git] / tools / apps / ode / res / edc_resource / encryption_device.edc
1 /*
2  *
3  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18
19 group { name: "base_layout";
20         parts {
21                 part { name: "base";
22                         type: RECT;
23                         scale: 1;
24                         description { state: "default" 0.0;
25                                 rel1 { relative : 0.0 0.0;}
26                                 rel2 { relative : 1.0 1.0;}
27                         }
28                 }
29                 part { name: "content_layout";
30                         type: SWALLOW;
31                         scale: 1;
32                         description { state: "default" 0.0;
33                                 rel1 { relative: 0.0 0.0; to: "base";}
34                                 rel2 { relative: 1.0 0.0; to: "bottom_layout";}
35                         }
36                 }
37                 part { name: "bottom_layout";
38                         type: SWALLOW;
39                         scale: 1;
40                         description { state: "default" 0.0;
41                                 rel1 { relative: 0.0 1.0; to: "base"; offset: 0 -150;}
42                                 rel2 { relative: 1.0 1.0; to: "base";}
43                         }
44                 }
45         }
46 }
47
48 group { name: "next_button_layout";
49         parts {
50                 part { name: "base";
51                         type: SPACER;
52                         scale: 1;
53                         description { state: "default" 0.0;
54                                 rel1 { relative: 0.0 0.0; }
55                                 rel2 { relative: 1.0 1.0; }
56                         }
57                 }
58                 part { name: "left_padding";
59                         type: SPACER;
60                         scale: 1;
61                         description { state: "default" 0.0;
62                                 rel1 { relative: 0.0 0.0; to: "base"; }
63                                 rel2 { relative: 0.0 1.0; to: "base"; offset: 120 0;}
64                         }
65                 }
66                 part { name: "next_button";
67                         type: SWALLOW;
68                         scale: 1;
69                         description { state: "default" 0.0;
70                                 rel1 { relative: 1.0 0.0; to: "left_padding"; }
71                                 rel2 { relative: 0.0 1.0; to: "right_padding"; }
72                         }
73                 }
74                 part { name: "right_padding";
75                         type: SPACER;
76                         scale: 1;
77                         description { state: "default" 0.0;
78                                 rel1 { relative: 1.0 0.0; to: "base"; offset: -120 0; }
79                                 rel2 { relative: 1.0 1.0; to: "base"; }
80                         }
81                 }
82         }
83 }
84
85 group { name: "locktype_button_layout";
86         parts {
87                 part { name: "base";
88                         type: SPACER;
89                         scale: 1;
90                         description { state: "default" 0.0;
91                                 rel1 { relative: 0.0 0.0; }
92                                 rel2 { relative: 1.0 1.0; }
93                         }
94                 }
95                 part { name: "top_padding";
96                         type: SPACER;
97                         scale: 1;
98                         description { state: "default" 0.0;
99                                 rel1 { relative: 0.0 0.0; to: "base"; }
100                                 rel2 { relative: 1.0 0.0; to: "base"; offset: 0 20; }
101                         }
102                 }
103                 part { name: "locktype_button";
104                         type: SWALLOW;
105                         scale: 1;
106                         description { state: "default" 0.0;
107                                 rel1 { relative: 0.0 1.0; to: "top_padding"; }
108                                 rel2 { relative: 1.0 0.0; to: "bottom_padding"; }
109                         }
110                 }
111                 part { name: "bottom_padding";
112                         type: SPACER;
113                         scale: 1;
114                         description { state: "default" 0.0;
115                                 rel1 { relative: 0.0 1.0; to: "base"; offset: 0 -20; }
116                                 rel2 { relative: 1.0 1.0; to: "base"; }
117                         }
118                 }
119         }
120 }
121
122 group { name: "sdcard_pw_button_layout";
123         parts {
124                 part { name: "base";
125                         type: SPACER;
126                         scale: 1;
127                         description { state: "default" 0.0;
128                                 rel1 { relative: 0.0 0.0; }
129                                 rel2 { relative: 1.0 1.0; }
130                         }
131                 }
132                 part { name: "left_padding";
133                         type: SPACER;
134                         scale: 1;
135                         description { state: "default" 0.0;
136                                 rel1 { relative: 0.0 0.0; to: "base"; }
137                                 rel2 { relative: 0.0 1.0; to: "base"; offset: 15 0; }
138                                 }
139                 }
140                 part { name: "change_pw_button";
141                         type: SWALLOW;
142                         scale: 1;
143                         description { state: "default" 0.0;
144                                 rel1 { relative: 1.0 0.0; to: "left_padding"; }
145                                 rel2 { relative: 0.0 1.0; to: "delete_pw_button"; }
146                                 visible: 0;
147                         }
148                         description { state: "default_show" 0.0;
149                                 inherit: "default" 0.0;
150                                 visible: 1;
151                         }
152                 }
153                 part { name: "delete_pw_button";
154                         type: SWALLOW;
155                         scale: 1;
156                         description { state: "default" 0.0;
157                                 rel1 { relative: 1.0 0.0; to: "change_pw_button"; offset: 15 0; }
158                                 rel2 { relative: 0.0 1.0; to: "right_padding"; }
159                                 visible: 0;
160                         }
161                         description { state: "default_show" 0.0;
162                                 inherit: "default" 0.0;
163                                 visible: 1;
164                         }
165                 }
166                 part { name: "create_pw_button";
167                         type: SWALLOW;
168                         scale: 1;
169                         description { state: "default" 0.0;
170                                 rel1 { relative: 1.0 0.0; to: "left_padding"; offset: 80 0;}
171                                 rel2 { relative: 0.0 1.0; to: "right_padding"; offset: -80 0;}
172                                 visible: 0;
173                         }
174                         description { state: "default_show" 0.0;
175                                 inherit: "default" 0.0;
176                                 visible: 1;
177                         }
178                 }
179                 part { name: "right_padding";
180                         type: SPACER;
181                         scale: 1;
182                         description { state: "default" 0.0;
183                                 rel1 { relative: 1.0 0.0; to: "base"; offset: -15 0; }
184                                 rel2 { relative: 1.0 1.0; to: "base"; }
185                         }
186                 }
187         }
188         programs {
189                 program { name: "show,btn,createpw";
190                         signal: "show,btn,createpw";
191                         action: STATE_SET "default_show" 0.0;
192                         target: "create_pw_button";
193                 }
194                 program { name: "hide,btn,createpw";
195                         signal: "hide,btn,createpw";
196                         action: STATE_SET "default" 0.0;
197                         target: "create_pw_button";
198                 }
199                 program { name: "show,btn,changepw";
200                         signal: "show,btn,changepw";
201                         action: STATE_SET "default_show" 0.0;
202                         target: "change_pw_button";
203                 }
204                 program { name: "hide,btn,changepw";
205                         signal: "hide,btn,changepw";
206                         action: STATE_SET "default_show" 0.0;
207                         target: "change_pw_button";
208                 }
209                 program { name: "show,btn,deletepw";
210                         signal: "show,btn,deletepw";
211                         action: STATE_SET "default_show" 0.0;
212                         target: "delete_pw_button";
213                 }
214                 program { name: "hide,btn,deletepw";
215                         signal: "show,btn,deletepw";
216                         action: STATE_SET "default" 0.0;
217                         target: "delete_pw_button";
218                 }
219         }
220 }
221
222 group { name: "Encrypt_device_layout";
223         parts {
224                 part { name: "base";
225                         type: RECT;
226                         scale: 1;
227                         description { state: "default" 0.0;
228                                 color: 255 255 255 255;
229                                 rel1 { relative: 0.0 0.0; }
230                                 rel2 { relative: 1.0 1.0; }
231                         }
232                 }
233                 part { name: "msg_content_1";
234                         type: SWALLOW;
235                         scale: 1;
236                         description { state: "default" 0.0;
237                                 rel1 { relative: 0.05 0.04; to: "base"; }
238                                 rel2 { relative: 0.95 0.25; to: "base"; }
239                                 fixed: 1 1;
240                         }
241                 }
242                 part { name: "msg_content_2";
243                         type: SWALLOW;
244                         scale: 1;
245                         description { state: "default" 0.0;
246                                 rel1 { relative: 0.0 1.0; to: "msg_content_1"; offset: 0 20; }
247                                 rel2 { relative: 0.95 0.50; to: "base"; }
248                                 fixed: 1 1;
249                         }
250                 }
251                 part { name: "msg_content_3";
252                         type: SWALLOW;
253                         scale: 1;
254                         description { state: "default" 0.0;
255                                 rel1 { relative: 0.0 1.0; to: "msg_content_2"; }
256                                 rel2 { relative: 0.95 0.57; to: "base"; }
257                                 fixed: 1 1;
258                         }
259                 }
260                 part { name: "top_padding";
261                         type: SPACER;
262                         scale: 1;
263                         description { state: "default" 0.0;
264                                 rel1 { relative: 0.0 1.0; to: "msg_content_3";}
265                                 rel2 { relative: 1.0 1.0; to: "msg_content_3"; offset: 0 10;}
266                                 fixed: 1 1;
267                         }
268                 }
269                 part { name: "battery_icon";
270                         type: SWALLOW;
271                         scale: 1;
272                         description { state: "default" 0.0;
273                                 rel1 { relative: 0.0 1.0; to: "top_padding"; }
274                                 rel2 { relative: 0.0 1.0; to: "top_padding"; offset: 100 100; }
275                                 min: 95 95;
276                                 max: 95 95;
277                                 fixed: 1 1;
278                         }
279                 }
280                 part { name: "battery_text";
281                         type: SWALLOW;
282                         scale: 1;
283                         description { state: "default" 0.0;
284                                 rel1 { relative: 1.0 0.3; to: "battery_icon"; }
285                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "battery_icon";}
286                                 align: 0.0 1.0;
287                                 fixed: 1 1;
288                         }
289                 }
290                 part { name: "charge_icon";
291                         type: SWALLOW;
292                         scale: 1;
293                         description { state: "default" 0.0;
294                                 rel1 { relative: 0.0 1.0; to: "battery_icon"; }
295                                 rel2 { relative: 1.0 1.0; to: "battery_icon"; offset: 0 100; }
296                                 min: 95 95;
297                                 max: 95 95;
298                                 fixed: 1 1;
299                         }
300                 }
301                 part { name: "charge_text";
302                         type: SWALLOW;
303                         scale: 1;
304                         description { state: "default" 0.0;
305                                 rel1 { relative: 1.0 0.3; to: "charge_icon"; }
306                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "charge_icon";}
307                                 align: 0.0 1.0;
308                                 fixed: 1 1;
309                         }
310                 }
311                 part { name: "locktype_icon";
312                         type: SWALLOW;
313                         scale: 1;
314                         description { state: "default" 0.0;
315                                 rel1 { relative: 0.0 1.0; to: "charge_icon"; }
316                                 rel2 { relative: 1.0 1.0; to: "charge_icon"; offset: 0 100; }
317                                 min: 95 95;
318                                 max: 95 95;
319                                 fixed: 1 1;
320                         }
321                 }
322                 part { name: "locktype_text";
323                         type: SWALLOW;
324                         scale: 1;
325                         description { state: "default" 0.0;
326                                 rel1 { relative: 1.0 0.2; to: "locktype_icon"; }
327                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "locktype_icon";}
328                                 align: 0.0 1.0;
329                                 fixed: 1 1;
330                         }
331                 }
332                 part { name: "locktype_button_content";
333                         type: SWALLOW;
334                         scale: 1;
335                         description { state: "default" 0 0;
336                                 rel1 { relative: 0.4 0.6; to: "locktype_text";}
337                                 rel2 { relative: 1.0 0.6; to: "locktype_text"; offset: 0 100;}
338                                 fixed: 1 1;
339                         }
340                 }
341         }
342 }
343
344 group { name: "Decrypt_device_layout";
345         parts {
346                 part { name: "base";
347                         type: RECT;
348                         scale: 1;
349                         description { state: "default" 0.0;
350                                 color: 255 255 255 255;
351                                 rel1 { relative: 0.0 0.0; }
352                                 rel2 { relative: 1.0 1.0; }
353                         }
354                 }
355                 part { name: "msg_content_1";
356                         type: SWALLOW;
357                         scale: 1;
358                         description { state: "default" 0.0;
359                                 rel1 { relative: 0.05 0.04; to: "base"; }
360                                 rel2 { relative: 0.95 0.15; to: "base"; }
361                                 fixed: 1 1;
362                         }
363                 }
364                 part { name: "msg_content_2";
365                         type: SWALLOW;
366                         scale: 1;
367                         description { state: "default" 0.0;
368                                 rel1 { relative: 0.0 1.0; to: "msg_content_1";}
369                                 rel2 { relative: 0.95 0.30; to: "base"; }
370                                 fixed: 1 1;
371                         }
372                 }
373                 part { name: "msg_content_3";
374                         type: SWALLOW;
375                         scale: 1;
376                         description { state: "default" 0.0;
377                                 rel1 { relative: 0.0 1.0; to: "msg_content_2"; offset: 0 30;}
378                                 rel2 { relative: 0.95 0.37; to: "base"; }
379                                 fixed: 1 1;
380                         }
381                 }
382                 part { name: "top_padding";
383                         type: SPACER;
384                         scale: 1;
385                         description { state: "default" 0.0;
386                                 rel1 { relative: 0.0 1.0; to: "msg_content_3"; }
387                                 rel2 { relative: 1.0 1.0; to: "msg_content_3"; offset: 0 20; }
388                         }
389                 }
390                 part { name: "battery_icon";
391                         type: SWALLOW;
392                         scale: 1;
393                         description { state: "default" 0.0;
394                                 rel1 { relative: 0.0 1.0; to: "top_padding"; }
395                                 rel2 { relative: 0.0 1.0; to: "top_padding"; offset: 100 100; }
396                                 min: 95 95;
397                                 max: 95 95;
398                                 fixed: 1 1;
399                         }
400                 }
401                 part { name: "battery_text";
402                         type: SWALLOW;
403                         scale: 1;
404                         description { state: "default" 0.0;
405                                 rel1 { relative: 1.0 0.3; to: "battery_icon"; }
406                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "battery_icon";}
407                                 align: 0.0 1.0;
408                                 fixed: 1 1;
409                         }
410                 }
411                 part { name: "charge_icon";
412                         type: SWALLOW;
413                         scale: 1;
414                         description { state: "default" 0.0;
415                                 rel1 { relative: 0.0 1.0; to: "battery_icon"; }
416                                 rel2 { relative: 1.0 1.0; to: "battery_icon"; offset: 0 100; }
417                                 min: 95 95;
418                                 max: 95 95;
419                                 fixed: 1 1;
420                         }
421                 }
422                 part { name: "charge_text";
423                         type: SWALLOW;
424                         scale: 1;
425                         description { state: "default" 0.0;
426                                 rel1 { relative: 1.0 0.3; to: "charge_icon"; }
427                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "charge_icon"; }
428                                 align: 0.0 1.0;
429                                 fixed: 1 1;
430                         }
431                 }
432         }
433 }
434
435 group { name: "Encrypt_sd_card_layout";
436         parts {
437                 part { name: "base";
438                         type: RECT;
439                         scale: 1;
440                         description { state: "default" 0.0;
441                                 color: 255 255 255 255;
442                                 rel1 { relative: 0.0 0.0; }
443                                 rel2 { relative: 1.0 1.0; }
444                         }
445                 }
446                 part { name: "msg_content_1";
447                         type: SWALLOW;
448                         scale: 1;
449                         description { state: "default" 0.0;
450                                 rel1 { relative: 0.05 0.04; to: "base"; }
451                                 rel2 { relative: 0.95 0.17; to: "base"; }
452                                 fixed: 1 1;
453                         }
454                 }
455                 part { name: "msg_content_2";
456                         type: SWALLOW;
457                         scale: 1;
458                         description { state: "default" 0.0;
459                                 rel1 { relative: 0.0 1.0; to: "msg_content_1"; offset: 0 10; }
460                                 rel2 { relative: 0.95 0.42; to: "base"; }
461                                 fixed: 1 1;
462                         }
463                 }
464                 part { name: "msg_content_3";
465                         type: SWALLOW;
466                         scale: 1;
467                         description { state: "default" 0.0;
468                                 rel1 { relative: 0.0 1.0; to: "msg_content_2"; offset: 0 10; }
469                                 rel2 { relative: 0.95 0.62; to: "base"; }
470                                 fixed: 1 1;
471                         }
472                 }
473                 part { name: "msg_content_4";
474                         type: SWALLOW;
475                         scale: 1;
476                         description { state: "default" 0.0;
477                                 rel1 { relative: 0.0 1.0; to: "msg_content_3"; offset: 0 35; }
478                                 rel2 { relative: 0.95 0.70; to: "base"; }
479                                 fixed: 1 1;
480                         }
481                 }
482                 part { name: "top_padding";
483                         type: SPACER;
484                         scale: 1;
485                         description { state: "default" 0.0;
486                                 rel1 { relative: 0.0 1.0; to: "msg_content_4"; }
487                                 rel2 { relative: 1.0 1.0; to: "msg_content_4"; offset: 0 10; }
488                         }
489                 }
490                 part { name: "sd_card_icon";
491                         type: SWALLOW;
492                         scale: 1;
493                         description { state: "default" 0.0;
494                                 rel1 { relative: 0.0 1.0; to: "top_padding"; }
495                                 rel2 { relative: 0.0 1.0; to: "top_padding"; offset: 100 100; }
496                                 min: 95 95;
497                                 max: 95 95;
498                                 fixed: 1 1;
499                         }
500                 }
501                 part { name: "sd_card_text";
502                         type: SWALLOW;
503                         scale: 1;
504                         description { state: "default" 0.0;
505                                 rel1 { relative: 1.0 0.3; to: "sd_card_icon";  }
506                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "sd_card_icon"; }
507                                 align: 0.0 0.5;
508                                 fixed: 1 1;
509                         }
510                 }
511                 part { name: "sd_card_pw_icon";
512                         type: SWALLOW;
513                         scale: 1;
514                         description { state: "default" 0.0;
515                                 rel1 { relative: 0.0 1.0; to: "sd_card_icon"; }
516                                 rel2 { relative: 1.0 1.0; to: "sd_card_icon"; offset: 0 100; }
517                                 min: 95 95;
518                                 max: 95 95;
519                                 visible: 0;
520                                 fixed: 1 1;
521                         }
522                 }
523                 part { name: "sd_card_pw_icon_txt";
524                         type: SWALLOW;
525                         scale: 1;
526                         description { state: "default" 0.0;
527                                 rel1 { relative: 1.0 0.3; to: "sd_card_pw_icon"; }
528                                 rel2 { relative: 1.0 1.0; to_x: "top_padding"; to_y: "sd_card_pw_icon"; }
529                                 align: 0.0 0.5;
530                                 fixed: 1 1;
531                         }
532                 }
533                 part { name: "sd_card_pw_btn";
534                         type: SWALLOW;
535                         scale: 1;
536                         description { state: "default" 0.0;
537                                 rel1 { relative: 0.0 1.0; to: "sd_card_pw_icon"; }
538                                 rel2 { relative: 1.0 0.95; to: "base"; }
539                                 align: 0.5 0.5;
540                                 fixed: 1 1;
541                         }
542                 }
543         }
544 }
545
546 group { name: "Decrypt_sd_card_layout";
547         parts {
548                 part { name: "base";
549                         type: RECT;
550                         scale: 1;
551                         description { state: "default" 0.0;
552                                 color: 255 255 255 255;
553                                 rel1 { relative: 0.0 0.0; }
554                                 rel2 { relative: 1.0 1.0; }
555                         }
556                 }
557                 part { name: "msg_content";
558                         type: SWALLOW;
559                         scale: 1;
560                         description { state: "default" 0.0;
561                                 rel1 { relative: 0.05 0.04; to: "base"; }
562                                 rel2 { relative: 0.95 0.30; to: "base"; }
563                                 fixed: 1 1;
564                         }
565                 }
566                 part { name: "top_padding";
567                         type: SPACER;
568                         scale: 1;
569                         description { state: "default" 0.0;
570                                 rel1 { relative: 0.0 1.0; to: "msg_content"; }
571                                 rel2 { relative: 1.0 1.0; to: "msg_content"; offset: 0 15; }
572                         }
573                 }
574                 part { name: "change_pw_btn";
575                         type: SWALLOW;
576                         scale: 1;
577                         description { state: "default" 0.0;
578                                 rel1 { relative: 0.0 1.0; to: "top_padding"; }
579                                 rel2 { relative: 1.0 0.95; to: "base"; }
580                                 align: 0.5 0.5;
581                                 visible: 0;
582                                 fixed: 1 1;
583                         }
584                 }
585         }
586 }
587
588 group { name: "confirm_layout";
589         parts {
590                 part { name: "base";
591                         type: RECT;
592                         scale: 1;
593                         description { state: "default" 0.0;
594                                 color: 255 255 255 255;
595                                 rel1 { relative: 0.0 0.0; }
596                                 rel2 { relative: 1.0 1.0; }
597                         }
598                 }
599                 part { name: "msg_content_1";
600                         type: SWALLOW;
601                         scale: 1;
602                         description { state: "default" 0.0;
603                                 rel1 { relative: 0.05 0.04; to: "base"; }
604                                 rel2 { relative: 0.95 0.15; to: "base"; }
605                                 fixed: 1 1;
606                         }
607                 }
608                 part { name: "msg_content_2";
609                         type: SWALLOW;
610                         scale: 1;
611                                 description { state: "default" 0.0;
612                                 rel1 { relative: 0.0 1.0; to: "msg_content_1"; offset: 0 15; }
613                                 rel2 { relative: 0.95 0.40; to: "base"; }
614                                 fixed: 1 1;
615                         }
616                 }
617         }
618 }