80b73c0ddc078aa94149c7372d1331fb44da823c
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / progressbar.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
20 ///////////////////////////////////////////////////////////////////////////////////////
21
22    group { name: "elm/progressbar/horizontal/default";
23       alias: "elm/progressbar/horizontal/list_progress";
24       images {
25          image: "00_progress_bg.png" COMP;
26          image: "00_progress_bar.png" COMP;
27       }
28       parts {
29          part { name: "access";
30             type: RECT;
31             description { state: "default" 0.0;
32                fixed: 1 1;
33                color: 0 0 0 0;
34             }
35          }
36          part { name: "elm.padding.left";
37             type: RECT;
38             scale: 1;
39             description {
40                state: "default" 0.0;
41                min: 0 0;
42                fixed: 1 0;
43                rel1 {
44                   relative: 0.0  0.0;
45                   offset: 0 0;
46                }
47                rel2 {
48                   relative: 0.0  1.0;
49                   offset: 0 0;
50                }
51                visible: 0;
52                align: 0.0 0.0;
53             }
54          }
55          part { name: "elm.padding.right";
56             type: RECT;
57             scale: 1;
58             description {
59                state: "default" 0.0;
60                min: 0 0;
61                fixed: 1 0;
62                rel1 {
63                   relative: 1.0  0.0;
64                   offset: 0 0;
65                }
66                rel2 {
67                   relative: 1.0  1.0;
68                   offset:   0   0;
69                }
70                visible: 0;
71                align: 1.0 0.0;
72             }
73          }
74          part { name: "elm.background.progressbar";
75             type: RECT;
76             mouse_events: 0;
77             scale: 1;
78             description {
79                state: "default" 0.0;
80                rel1 {
81                   to_x: "elm.padding.left";
82                   relative: 1.0 0.0;
83                   offset: 0 0;
84                }
85                rel2 {
86                   to_x: "elm.padding.right";
87                   relative: 0.0 1.0;
88                   offset: 0 0;
89                }
90             }
91          }
92          part { name: "elm.swallow.bar";
93             mouse_events: 0;
94             scale: 1;
95             type: SWALLOW;
96             description {
97                min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
98                max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
99                state: "default" 0.0;
100                rel1 {
101                   to: "elm.background.progressbar";
102                   relative: 0.0 0.0;
103                }
104                rel2 {
105                   to: "elm.background.progressbar";
106                   relative: 1.0 1.0;
107                }
108             }
109          }
110          part { name: "elm.swallow.content";
111             type: SWALLOW;
112             scale: 1;
113             description { state: "default" 0.0;
114                visible: 0;
115                align: 0.0 0.5;
116                rel1 {
117                   offset: 0 0;
118                   to_y: "elm.background.progressbar";
119                }
120                rel2 {
121                   offset: 0 -1;
122                   relative: 0.0 1.0;
123                   to_y: "elm.background.progressbar";
124                }
125             }
126             description { state: "visible" 0.0;
127                inherit: "default" 0.0;
128                visible: 1;
129                aspect: 1.0 1.0;
130                aspect_preference: VERTICAL;
131                rel2.offset: 4 -1;
132             }
133          }
134          part { name: "elm.text";
135             type: TEXT;
136             mouse_events: 0;
137             scale: 1;
138             description { state: "default" 0.0;
139                visible: 0;
140                fixed: 1 1;
141                align: 0.0 0.5;
142                rel1.to_x: "elm.swallow.content";
143                rel1.relative: 1.0 0.0;
144                rel2.to_x: "elm.swallow.content";
145                rel2.relative: 1.0 1.0;
146                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
147                text {
148                   font: "Tizen:style=Medium";
149                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
150                   min: 0 0;
151                   align: 0.0 0.5;
152                   text_class: "tizen";
153                }
154             }
155             description { state: "visible" 0.0;
156                inherit: "default" 0.0;
157                visible: 0;
158                text.min: 1 1;
159             }
160          }
161          part { name: "background";
162             mouse_events: 0;
163             scale: 1;
164             clip_to: "elm.background.progressbar";
165             description {
166                state: "default" 0.0;
167                rel1 {
168                   to: "elm.swallow.bar";
169                   relative: 0.0 0.0;
170                }
171                rel2 {
172                   to: "elm.swallow.bar";
173                   relative: 1.0 1.0;
174                }
175                image {
176                   normal: "00_progress_bg.png";
177                   border: PROGRESS_BG_IMAGE_BORDER_INC;
178                   border_scale: 1;
179                }
180             }
181          }
182          part { name: "elm.text.status";
183             type: TEXT;
184             mouse_events: 0;
185             scale: 1;
186             description { state: "default" 0.0;
187                fixed: 1 1;
188                visible: 0;
189                rel1 {
190                   to: "background";
191                   relative: 0.5 0.5;
192                }
193                rel2 {
194                   to: "background";
195                   relative: 0.5 0.5;
196                }
197                text {
198                   font: "Tizen:style=Medium";
199                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
200                   min: 0 0;
201                   align: 0.5 0.0;
202                   text_class: "tizen";
203                }
204                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
205             }
206             description { state: "show" 0.0;
207                inherit: "default" 0.0;
208                visible: 0;
209                text.min: 1 1;
210             }
211          }
212          part {
213             name: "bar.image.left.padding";
214             type: RECT;
215             scale: 1;
216             description {
217                state: "default" 0.0;
218                visible: 0;
219                min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
220                max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
221                fixed: 1 0;
222                rel1.to: "elm.swallow.bar";
223                rel2 {
224                   relative: 0.0  1.0;
225                   to: "elm.swallow.bar";
226                }
227                align: 0.0 0.5;
228             }
229          }
230          part {
231             name: "bar.image.right.padding";
232             type: RECT;
233             scale: 1;
234             description {
235                state: "default" 0.0;
236                visible: 0;
237                min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
238                max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
239                fixed: 1 0;
240                rel1 {
241                   relative: 1.0  0.0;
242                   to: "elm.swallow.bar";
243                }
244                rel2.to: "elm.swallow.bar";
245                align: 1.0 0.5;
246             }
247          }
248          part { name: "drag.background";
249             mouse_events: 0;
250             type: RECT;
251             scale: 1;
252             clip_to: "elm.background.progressbar";
253             description {
254                state: "default" 0.0;
255                visible: 0;
256                rel1 {
257                   to_x: "bar.image.left.padding";
258                   to_y: "elm.swallow.bar";
259                   relative: 1.0 0.0;
260                }
261                rel2 {
262                   to_x: "bar.image.right.padding";
263                   to_y: "elm.swallow.bar";
264                   relative: 0.0 1.0;
265                }
266             }
267          }
268          part { name: "elm.progress.progressbar";
269             mouse_events: 0;
270             scale: 1;
271             clip_to: "elm.background.progressbar";
272             description {
273                state: "default" 0.0;
274                min: 0 0;
275                fixed: 1 1;
276                rel1 {
277                   to_x: "bar.image.left.padding";
278                   to_y: "elm.swallow.bar";
279                   relative: 1.0 0.0;
280                }
281                rel2 {
282                   to_y: "elm.swallow.bar";
283                   to_x: "elm.cur.progressbar";
284                   offset: -1 -1;
285                }
286                image {
287                   normal: "00_progress_bar.png";
288                   border: PROGRESS_BAR_IMAGE_BORDER_INC;
289                   border_scale: 1;
290                }
291             }
292             description {
293                state: "invert" 0.0;
294                inherit: "default" 0.0;
295                rel1 {
296                   to_y: "elm.swallow.bar";
297                   to_x: "elm.cur.progressbar";
298                }
299                rel2 {
300                   to_y: "elm.swallow.bar";
301                   to_x: "bar.image.right.padding";
302                   relative: 1.0 0.0;
303                }
304             }
305             description {
306                state: "state_begin" 0.0;
307                inherit: "default" 0.0;
308                rel1 {
309                   to: "elm.swallow.bar";
310                   relative: 0.0 0.0;
311                }
312                rel2 {
313                   to: "elm.swallow.bar";
314                   relative: 0.1 1.0;
315                }
316             }
317             description {
318                state: "state_end" 0.0;
319                inherit: "default" 0.0;
320                rel1 {
321                   to: "elm.swallow.bar";
322                   relative: 0.9 0.0;
323                }
324                rel2 {
325                   to: "elm.swallow.bar";
326                   relative: 1.0 1.0;
327                }
328             }
329          }
330          part { name: "text-bar";
331             type: TEXT;
332             mouse_events: 0;
333             scale: 1;
334             clip_to: "progress-rect";
335             //effect: SOFT_SHADOW;
336             scale: 0;
337             description { state: "default" 0.0;
338                align: 0.0 0.0;
339                fixed: 1 1;
340                visible: 0;
341                rel1.to: "elm.text.status";
342                rel1.offset: -1 -1;
343                rel2.to: "elm.text.status";
344                text {
345                   text_source: "elm.text.status";
346                   font: "Tizen:style=Medium";
347                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
348                   min: 0 0;
349                   align: 0.0 0.0;
350                   text_class: "tizen";
351                }
352                color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
353             }
354             description { state: "show" 0.0;
355                inherit: "default" 0.0;
356                visible: 0;
357                text.min: 1 1;
358             }
359          }
360          part { name: "elm.cur.progressbar";
361             mouse_events: 0;
362             scale: 1;
363             dragable {
364                confine: "drag.background";
365                x: 1 1 1;
366                y: 0 0 0;
367             }
368             description { state: "default" 0.0;
369                min: 0 28;
370                fixed: 1 1;
371                visible: 0;
372                rel1.to: "drag.background";
373                rel2.to: "drag.background";
374            }
375          }
376          part { name: "progress-rect";
377             type: RECT;
378             mouse_events: 0;
379             scale: 1;
380             description {
381                state: "default" 0.0;
382                rel1.to: "elm.progress.progressbar";
383                rel2.to: "elm.progress.progressbar";
384             }
385          }
386       }
387       programs {
388          program { name: "label_show";
389             signal: "elm,state,text,visible";
390             source: "elm";
391             action:  STATE_SET "visible" 0.0;
392             target: "elm.text";
393          }
394          program { name: "label_hide";
395             signal: "elm,state,text,hidden";
396             source: "elm";
397             action:  STATE_SET "default" 0.0;
398             target: "elm.text";
399          }
400          program { name: "icon_show";
401             signal: "elm,state,icon,visible";
402             source: "elm";
403             action:  STATE_SET "visible" 0.0;
404             target: "elm.swallow.content";
405          }
406          program { name: "icon_hide";
407             signal: "elm,state,icon,hidden";
408             source: "elm";
409             action:  STATE_SET "default" 0.0;
410             target: "elm.swallow.content";
411          }
412          program { name: "units_show";
413             signal: "elm,state,units,visible";
414             source: "elm";
415             action:  STATE_SET "show" 0.0;
416             target: "text-bar";
417             target: "elm.text.status";
418          }
419          program { name: "units_hide";
420             signal: "elm,state,units,hidden";
421             source: "elm";
422             action:  STATE_SET "default" 0.0;
423             target: "text-bar";
424             target: "elm.text.status";
425          }
426          program { name: "slide_to_end";
427             action:  STATE_SET "state_end" 0.0;
428             transition: LINEAR 0.5;
429             target: "elm.progress.progressbar";
430             after: "slide_to_begin";
431          }
432          program { name: "slide_to_begin";
433             signal: "elm,state,slide,begin";
434             action: STATE_SET "state_begin" 0.0;
435             target: "elm.progress.progressbar";
436             transition: LINEAR 0.5;
437             after: "slide_to_end";
438          }
439          program { name: "start_pulse";
440             signal: "elm,state,pulse,start";
441             source: "elm";
442            // after: "slide_to_end";
443          }
444          program { name: "stop_pulse";
445             signal: "elm,state,pulse,stop";
446             source: "elm";
447             action: ACTION_STOP;
448             target: "slide_to_begin";
449             target: "slide_to_end";
450             target: "start_pulse";
451             //after: "state_pulse";
452          }
453          program { name: "state_pulse";
454             signal: "elm,state,pulse";
455             source: "elm";
456             action: STATE_SET "state_begin" 0.0;
457             target: "elm.progress.progressbar";
458             after: "units_hide";
459          }
460          program { name: "state_fraction";
461             signal: "elm,state,fraction";
462             source: "elm";
463             action: ACTION_STOP;
464             target: "slide_to_begin";
465             target: "slide_to_end";
466             target: "start_pulse";
467             action: STATE_SET "default" 0.0;
468             target: "elm.progress.progressbar";
469          }
470          program { name: "set_invert_on";
471             signal: "elm,state,inverted,on";
472             source: "elm";
473             action:  STATE_SET "invert" 0.0;
474             target: "elm.progress.progressbar";
475          }
476          program { name: "set_invert_off";
477             signal: "elm,state,inverted,off";
478             source: "elm";
479             action:  STATE_SET "default" 0.0;
480             target: "elm.progress.progressbar";
481          }
482       }
483    }
484
485    group { name: "elm/progressbar/horizontal/list_title_progress";
486       images {
487          image: "00_progress_bg.png" COMP;
488          image: "00_progress_bar.png" COMP;
489       }
490       parts {
491          part { name: "access";
492             type: RECT;
493             description { state: "default" 0.0;
494                fixed: 1 1;
495                color: 0 0 0 0;
496             }
497          }
498          part { name: "base";
499             type: RECT;
500             scale: 1;
501             description {
502                state: "default" 0.0;
503                visible: 0;
504                rel1 { relative: 0.0  0.0; }
505                rel2 { relative: 1.0  1.0; }
506                color: 0 0 0 0;
507             }
508          }
509          part { name: "elm.padding.left";
510             type: RECT;
511             scale: 1;
512             description {
513                state: "default" 0.0;
514                min: 0 82;
515                visible: 0;
516                fixed: 1 0;
517                rel1 { relative: 0.0  0.0; to: "base"; }
518                rel2 { relative: 0.0  1.0; to: "base"; }
519                color: 0 0 0 0;
520                align: 0.0 0.0;
521             }
522          }
523          part { name: "elm.padding.right";
524             type: RECT;
525             scale: 1;
526             description {
527                state: "default" 0.0;
528                min: 0 82;
529                visible: 0;
530                fixed: 1 0;
531                rel1 { relative: 1.0  0.0; to: "base"; }
532                rel2 { relative: 1.0  1.0; to: "base"; }
533                color: 0 0 0 0;
534                align: 1.0 0.0;
535             }
536          }
537          part {
538             name: "elm.padding.top";
539             type: RECT;
540             scale: 1;
541             mouse_events: 0;
542             description { state: "default" 0.0;
543                align: 0.0 0.0;
544                min: 100 1;
545                visible: 0;
546                fixed: 0 1;
547                rel1 { relative: 0.0  0.0; to: "base"; }
548                rel2 { relative: 1.0  0.0; to: "base"; }
549                color: 0 0 0 0;
550             }
551          }
552          part {
553             name: "elm.padding.bottom";
554             type: RECT;
555             scale: 1;
556             mouse_events: 0;
557             description { state: "default" 0.0;
558                align: 1.0 1.0;
559                min: 100 1;
560                visible: 0;
561                fixed: 0 1;
562                rel1 { relative: 0.0  1.0; to: "base"; }
563                rel2 { relative: 1.0  1.0; to: "base"; }
564                color: 0 0 0 0;
565             }
566          }
567          part {
568             name: "label_rect";
569             type: RECT;
570             scale: 1;
571             mouse_events: 0;
572             description { state: "default" 0.0;
573                visible: 1;
574                min: 460 56;
575                fixed: 0 1;
576                rel1 { relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; }
577                rel2 { relative: 0.0 0.0; to_x: "elm.padding.right"; }
578                align: 0.0 0.0;
579                color: 0 0 0 0;
580             }
581          }
582          part { name: "elm.background.progressbar";
583             type: RECT;
584             mouse_events: 0;
585             scale: 1;
586             description {
587                state: "default" 0.0;
588                rel1 {
589                   to_x: "elm.padding.left";
590                   to_y: "label_rect";
591                   relative: 1.0 1.0;
592                   offset: 0 0;
593                }
594                rel2 {
595                   to_x: "elm.padding.right";
596                   relative: 0.0 1.0;
597                   offset: 0 0;
598                }
599             }
600          }
601          part { name: "elm.swallow.bar";
602             mouse_events: 0;
603             scale: 1;
604             type: SWALLOW;
605             description {
606                min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
607                max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
608                state: "default" 0.0;
609                rel1 {
610                   to: "elm.background.progressbar";
611                   relative: 0.0 0.0;
612                }
613                rel2 {
614                   to: "elm.background.progressbar";
615                   relative: 1.0 1.0;
616                }
617             }
618          }
619          part { name: "elm.swallow.content";
620             type: SWALLOW;
621             scale: 1;
622             description { state: "default" 0.0;
623                visible: 0;
624                align: 0.0 0.5;
625                rel1 {
626                   offset: 0 0;
627                   to_y: "elm.background.progressbar";
628                }
629                rel2 {
630                   offset: 0 -1;
631                   relative: 0.0 1.0;
632                   to_y: "elm.background.progressbar";
633                }
634             }
635             description { state: "visible" 0.0;
636                inherit: "default" 0.0;
637                visible: 1;
638                aspect: 1.0 1.0;
639                aspect_preference: VERTICAL;
640                rel2.offset: 4 -1;
641             }
642          }
643          part { name: "elm.text";
644             type: TEXT;
645             mouse_events: 0;
646             scale: 1;
647             description { state: "default" 0.0;
648                visible: 1;
649                fixed: 1 1;
650                align: 0.0 0.5;
651                rel1.to: "label_rect";
652                rel2.to: "label_rect";
653                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
654                text {
655                   font: "Tizen:style=Medium";
656                   size: PROGRESSBAR_TITLE_FONT_SIZE_INC;
657                   min: 0 0;
658                   align: 0.0 0.5;
659                   text_class: "tizen";
660                }
661             }
662             description { state: "visible" 0.0;
663                inherit: "default" 0.0;
664                visible: 1;
665                text.min: 1 1;
666             }
667          }
668          part { name: "background";
669             mouse_events: 0;
670             scale: 1;
671             clip_to: "elm.background.progressbar";
672             description {
673                state: "default" 0.0;
674                rel1 {
675                   to: "elm.swallow.bar";
676                   relative: 0.0 0.0;
677                }
678                rel2 {
679                   to: "elm.swallow.bar";
680                   relative: 1.0 1.0;
681                }
682                image {
683                   normal: "00_progress_bg.png";
684                   border: PROGRESS_BG_IMAGE_BORDER_INC;
685                   border_scale: 1;
686                }
687             }
688          }
689          part { name: "elm.text.status";
690             type: TEXT;
691             mouse_events: 0;
692             scale: 1;
693             description { state: "default" 0.0;
694                fixed: 1 1;
695                visible: 0;
696                rel1 {
697                   to: "background";
698                   relative: 0.5 0.5;
699                }
700                rel2 {
701                   to: "background";
702                   relative: 0.5 0.5;
703                }
704                text {
705                   font: "Tizen:style=Medium";
706                   size: PROGRESSBAR_TITLE_FONT_SIZE_INC;
707                   min: 0 0;
708                   align: 0.5 0.0;
709                   text_class: "tizen";
710                }
711                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
712             }
713             description { state: "show" 0.0;
714                inherit: "default" 0.0;
715                visible: 0;
716                text.min: 1 1;
717             }
718          }
719          part {
720             name: "bar.image.left.padding";
721             type: RECT;
722             scale: 1;
723             description {
724                state: "default" 0.0;
725                visible: 0;
726                min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
727                max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
728                fixed: 1 0;
729                rel1.to: "elm.swallow.bar";
730                rel2 {
731                   relative: 0.0  1.0;
732                   to: "elm.swallow.bar";
733                }
734                align: 0.0 0.5;
735             }
736          }
737          part {
738             name: "bar.image.right.padding";
739             type: RECT;
740             scale: 1;
741             description {
742                state: "default" 0.0;
743                visible: 0;
744                min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
745                max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
746                fixed: 1 0;
747                rel1 {
748                   relative: 1.0  0.0;
749                   to: "elm.swallow.bar";
750                }
751                rel2.to: "elm.swallow.bar";
752                align: 1.0 0.5;
753             }
754          }
755          part { name: "drag.background";
756             mouse_events: 0;
757             type: RECT;
758             scale: 1;
759             clip_to: "elm.background.progressbar";
760             description {
761                state: "default" 0.0;
762                visible: 0;
763                rel1 {
764                   to_x: "bar.image.left.padding";
765                   to_y: "elm.swallow.bar";
766                   relative: 1.0 0.0;
767                }
768                rel2 {
769                   to_x: "bar.image.right.padding";
770                   to_y: "elm.swallow.bar";
771                   relative: 0.0 1.0;
772                }
773             }
774          }
775          part { name: "elm.progress.progressbar";
776             mouse_events: 0;
777             scale: 1;
778             clip_to: "elm.background.progressbar";
779             description {
780                state: "default" 0.0;
781                min: 0 0;
782                fixed: 1 1;
783                rel1 {
784                   to_x: "bar.image.left.padding";
785                   to_y: "elm.swallow.bar";
786                   relative: 1.0 0.0;
787                }
788                rel2 {
789                   to_y: "elm.swallow.bar";
790                   to_x: "elm.cur.progressbar";
791                   offset: -1 -1;
792                }
793                image {
794                   normal: "00_progress_bar.png";
795                   border: PROGRESS_BAR_IMAGE_BORDER_INC;
796                   border_scale: 1;
797                }
798             }
799             description {
800                state: "invert" 0.0;
801                inherit: "default" 0.0;
802                rel1 {
803                   to_y: "elm.swallow.bar";
804                   to_x: "elm.cur.progressbar";
805                }
806                rel2 {
807                   to_y: "elm.swallow.bar";
808                   to_x: "bar.image.right.padding";
809                   relative: 1.0 0.0;
810                }
811             }
812             description {
813                state: "state_begin" 0.0;
814                inherit: "default" 0.0;
815                rel1 {
816                   to: "elm.swallow.bar";
817                   relative: 0.0 0.0;
818                }
819                rel2 {
820                   to: "elm.swallow.bar";
821                   relative: 0.1 1.0;
822                }
823             }
824             description {
825                state: "state_end" 0.0;
826                inherit: "default" 0.0;
827                rel1 {
828                   to: "elm.swallow.bar";
829                   relative: 0.9 0.0;
830                }
831                rel2 {
832                   to: "elm.swallow.bar";
833                   relative: 1.0 1.0;
834                }
835             }
836          }
837          part { name: "text-bar";
838             type: TEXT;
839             mouse_events: 0;
840             scale: 1;
841             clip_to: "progress-rect";
842             //effect: SOFT_SHADOW;
843             scale: 0;
844             description { state: "default" 0.0;
845                align: 0.0 0.0;
846                fixed: 1 1;
847                visible: 0;
848                rel1.to: "elm.text.status";
849                rel1.offset: -1 -1;
850                rel2.to: "elm.text.status";
851                text {
852                   text_source: "elm.text.status";
853                   font: "Tizen:style=Medium";
854                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
855                   min: 0 0;
856                   align: 0.0 0.0;
857                   text_class: "tizen";
858                }
859                color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
860             }
861             description { state: "show" 0.0;
862                inherit: "default" 0.0;
863                visible: 0;
864                text.min: 1 1;
865             }
866          }
867          part { name: "elm.cur.progressbar";
868             mouse_events: 0;
869             scale: 1;
870             dragable {
871                confine: "drag.background";
872                x: 1 1 1;
873                y: 0 0 0;
874             }
875             description { state: "default" 0.0;
876                min: 0 28;
877                fixed: 1 1;
878                visible: 0;
879                rel1.to: "drag.background";
880                rel2.to: "drag.background";
881             }
882          }
883          part { name: "progress-rect";
884             type: RECT;
885             mouse_events: 0;
886             scale: 1;
887             description {
888                state: "default" 0.0;
889                rel1.to: "elm.progress.progressbar";
890                rel2.to: "elm.progress.progressbar";
891             }
892          }
893       }
894       programs {
895          program { name: "label_show";
896             signal: "elm,state,text,visible";
897             source: "elm";
898             action:  STATE_SET "visible" 0.0;
899             target: "elm.text";
900          }
901          program { name: "label_hide";
902             signal: "elm,state,text,hidden";
903             source: "elm";
904             action:  STATE_SET "default" 0.0;
905             target: "elm.text";
906          }
907          program { name: "icon_show";
908             signal: "elm,state,icon,visible";
909             source: "elm";
910             action:  STATE_SET "visible" 0.0;
911             target: "elm.swallow.content";
912          }
913          program { name: "icon_hide";
914             signal: "elm,state,icon,hidden";
915             source: "elm";
916             action:  STATE_SET "default" 0.0;
917             target: "elm.swallow.content";
918          }
919          program { name: "units_show";
920             signal: "elm,state,units,visible";
921             source: "elm";
922             action:  STATE_SET "show" 0.0;
923             target: "text-bar";
924             target: "elm.text.status";
925          }
926          program { name: "units_hide";
927             signal: "elm,state,units,hidden";
928             source: "elm";
929             action:  STATE_SET "default" 0.0;
930             target: "text-bar";
931             target: "elm.text.status";
932          }
933          program { name: "slide_to_end";
934             action:  STATE_SET "state_end" 0.0;
935             transition: LINEAR 0.5;
936             target: "elm.progress.progressbar";
937             after: "slide_to_begin";
938          }
939          program { name: "slide_to_begin";
940             signal: "elm,state,slide,begin";
941             action: STATE_SET "state_begin" 0.0;
942             target: "elm.progress.progressbar";
943             transition: LINEAR 0.5;
944             after: "slide_to_end";
945          }
946          program { name: "start_pulse";
947             signal: "elm,state,pulse,start";
948             source: "elm";
949            // after: "slide_to_end";
950          }
951          program { name: "stop_pulse";
952             signal: "elm,state,pulse,stop";
953             source: "elm";
954             action: ACTION_STOP;
955             target: "slide_to_begin";
956             target: "slide_to_end";
957             target: "start_pulse";
958             //after: "state_pulse";
959          }
960          program { name: "state_pulse";
961             signal: "elm,state,pulse";
962             source: "elm";
963             action: STATE_SET "state_begin" 0.0;
964             target: "elm.progress.progressbar";
965             after: "units_hide";
966          }
967          program { name: "state_fraction";
968             signal: "elm,state,fraction";
969             source: "elm";
970             action: ACTION_STOP;
971             target: "slide_to_begin";
972             target: "slide_to_end";
973             target: "start_pulse";
974             action: STATE_SET "default" 0.0;
975             target: "elm.progress.progressbar";
976          }
977          program { name: "set_invert_on";
978             signal: "elm,state,inverted,on";
979             source: "elm";
980             action:  STATE_SET "invert" 0.0;
981             target: "elm.progress.progressbar";
982          }
983          program { name: "set_invert_off";
984             signal: "elm,state,inverted,off";
985             source: "elm";
986             action:  STATE_SET "default" 0.0;
987             target: "elm.progress.progressbar";
988          }
989       }
990    }
991
992    group { name: "elm/progressbar/horizontal/pending_list";
993       images {
994          image: "00_progress_pending_01_bg.png" COMP;
995          image: "00_progress_pending_02_bg.png" COMP;
996       }
997       parts {
998          part { name: "access";
999             type: RECT;
1000             description { state: "default" 0.0;
1001                fixed: 1 1;
1002                color: 0 0 0 0;
1003             }
1004          }
1005          part { name: "elm.background.progressbar";
1006             type: RECT;
1007             mouse_events: 0;
1008             scale: 1;
1009             description {
1010                state: "default" 0.0;
1011                rel1 {
1012                   relative: 0.0 0.0;
1013                   offset: 0 0;
1014                }
1015                rel2 {
1016                   relative: 1.0 1.0;
1017                }
1018             }
1019          }
1020          part { name: "elm.swallow.bar";
1021             mouse_events: 0;
1022             scale: 1;
1023             type: SWALLOW;
1024             description {
1025                min: 1 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1026                max: 99999 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1027                state: "default" 0.0;
1028                rel1 {
1029                   to: "elm.background.progressbar";
1030                   relative: 0.0 0.0;
1031                }
1032                rel2 {
1033                   to: "elm.background.progressbar";
1034                   relative: 1.0 1.0;
1035                }
1036             }
1037          }
1038          part { name: "background";
1039             mouse_events: 0;
1040             scale: 1;
1041             clip_to: "elm.background.progressbar";
1042             description {
1043                state: "default" 0.0;
1044                rel1 {
1045                   to: "elm.swallow.bar";
1046                   relative: 0.0 0.0;
1047                }
1048                rel2 {
1049                   to: "elm.swallow.bar";
1050                   relative: 1.0 1.0;
1051                }
1052                image {
1053                   normal: "00_progress_bg.png";
1054                   border: PROGRESS_BG_IMAGE_BORDER_INC;
1055                   border_scale: 1;
1056                }
1057             }
1058          }
1059          part { name: "elm.progress.progressbar";
1060             mouse_events: 0;
1061             scale: 1;
1062             clip_to: "elm.background.progressbar";
1063             description {
1064                state: "default" 0.0;
1065                min: 0 0;
1066                fixed: 1 1;
1067                rel1 {
1068                   to: "background";
1069                   relative: 0.0 0.0;
1070                }
1071                rel2 {
1072                   to: "background";
1073                   relative: 1.0 1.0;
1074                   offset: -1 -1;
1075                }
1076                image {
1077                   normal: "00_progress_pending_01_bg.png";
1078                   border: 0 0 0 0;
1079                }
1080             }
1081             description {
1082                state: "state_begin" 0.0;
1083                inherit: "default" 0.0;
1084             }
1085             description {
1086                state: "state_end" 0.0;
1087                inherit: "default" 0.0;
1088                image {
1089                   normal: "00_progress_pending_02_bg.png";
1090                   border: 0 0 0 0;
1091                }
1092             }
1093          }
1094       }
1095       programs {
1096          program { name: "slide_to_end";
1097             action:  STATE_SET "state_end" 0.0;
1098             in: 0.3 0.0;
1099             target: "elm.progress.progressbar";
1100             after: "slide_to_begin";
1101          }
1102          program { name: "slide_to_begin";
1103             signal: "elm,state,slide,begin";
1104             action: STATE_SET "state_begin" 0.0;
1105             target: "elm.progress.progressbar";
1106             in: 0.3 0.0;
1107             after: "slide_to_end";
1108          }
1109          program { name: "start_pulse";
1110             signal: "elm,state,pulse,start";
1111             source: "elm";
1112             after: "slide_to_end";
1113          }
1114          program { name: "stop_pulse";
1115             signal: "elm,state,pulse,stop";
1116             source: "elm";
1117             action: ACTION_STOP;
1118             target: "slide_to_begin";
1119             target: "slide_to_end";
1120             target: "start_pulse";
1121             after: "init_pulse";
1122          }
1123          program { name: "init_pulse";
1124             action: STATE_SET "default" 0.0;
1125             target: "elm.progress.progressbar";
1126          }
1127       }
1128    }
1129
1130 #define PROCESS_IMAGE(COLOR, SIZE, NUM) \
1131    image: ""COLOR"/"SIZE"/00_list_process_"NUM".png" COMP;
1132
1133 #define PROCESS_IMAGES(COLOR, SIZE) \
1134    images { \
1135       PROCESS_IMAGE(COLOR, SIZE, 01) \
1136       PROCESS_IMAGE(COLOR, SIZE, 02) \
1137       PROCESS_IMAGE(COLOR, SIZE, 03) \
1138       PROCESS_IMAGE(COLOR, SIZE, 04) \
1139       PROCESS_IMAGE(COLOR, SIZE, 05) \
1140       PROCESS_IMAGE(COLOR, SIZE, 06) \
1141       PROCESS_IMAGE(COLOR, SIZE, 07) \
1142       PROCESS_IMAGE(COLOR, SIZE, 08) \
1143       PROCESS_IMAGE(COLOR, SIZE, 09) \
1144       PROCESS_IMAGE(COLOR, SIZE, 10) \
1145       PROCESS_IMAGE(COLOR, SIZE, 11) \
1146       PROCESS_IMAGE(COLOR, SIZE, 12) \
1147       PROCESS_IMAGE(COLOR, SIZE, 13) \
1148       PROCESS_IMAGE(COLOR, SIZE, 14) \
1149       PROCESS_IMAGE(COLOR, SIZE, 15) \
1150       PROCESS_IMAGE(COLOR, SIZE, 16) \
1151       PROCESS_IMAGE(COLOR, SIZE, 17) \
1152       PROCESS_IMAGE(COLOR, SIZE, 18) \
1153       PROCESS_IMAGE(COLOR, SIZE, 19) \
1154       PROCESS_IMAGE(COLOR, SIZE, 20) \
1155       PROCESS_IMAGE(COLOR, SIZE, 21) \
1156       PROCESS_IMAGE(COLOR, SIZE, 22) \
1157       PROCESS_IMAGE(COLOR, SIZE, 23) \
1158       PROCESS_IMAGE(COLOR, SIZE, 24) \
1159       PROCESS_IMAGE(COLOR, SIZE, 25) \
1160       PROCESS_IMAGE(COLOR, SIZE, 26) \
1161       PROCESS_IMAGE(COLOR, SIZE, 27) \
1162       PROCESS_IMAGE(COLOR, SIZE, 28) \
1163       PROCESS_IMAGE(COLOR, SIZE, 29) \
1164       PROCESS_IMAGE(COLOR, SIZE, 30) \
1165    }
1166
1167 #define PROGRESS_DESC(COLOR, SIZE, NUM ) \
1168    description { state: "pulse" 0.#NUM; \
1169       inherit: "default" 0.0; \
1170       image { \
1171          normal: ""COLOR"/"SIZE"/00_list_process_"NUM".png"; \
1172       } \
1173    }
1174
1175 #define PROCESS_DESCS(COLOR, SIZE, WIDTH, HEIGHT) \
1176       description { \
1177          state: "default" 0.0; \
1178          min: WIDTH HEIGHT; \
1179          max: WIDTH HEIGHT; \
1180          aspect: 1.0 1.0; \
1181          aspect_preference: BOTH; \
1182          image { \
1183             normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
1184          } \
1185       } \
1186       description { state: "pulse" 0.0; \
1187          inherit: "default" 0.0; \
1188          image { \
1189             normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
1190          } \
1191       } \
1192       PROGRESS_DESC(COLOR, SIZE, 01 ) \
1193       PROGRESS_DESC(COLOR, SIZE, 02 ) \
1194       PROGRESS_DESC(COLOR, SIZE, 03 ) \
1195       PROGRESS_DESC(COLOR, SIZE, 04 ) \
1196       PROGRESS_DESC(COLOR, SIZE, 05 ) \
1197       PROGRESS_DESC(COLOR, SIZE, 06 ) \
1198       PROGRESS_DESC(COLOR, SIZE, 07 ) \
1199       PROGRESS_DESC(COLOR, SIZE, 08 ) \
1200       PROGRESS_DESC(COLOR, SIZE, 09 ) \
1201       PROGRESS_DESC(COLOR, SIZE, 10 ) \
1202       PROGRESS_DESC(COLOR, SIZE, 11 ) \
1203       PROGRESS_DESC(COLOR, SIZE, 12 ) \
1204       PROGRESS_DESC(COLOR, SIZE, 13 ) \
1205       PROGRESS_DESC(COLOR, SIZE, 14 ) \
1206       PROGRESS_DESC(COLOR, SIZE, 15 ) \
1207       PROGRESS_DESC(COLOR, SIZE, 16 ) \
1208       PROGRESS_DESC(COLOR, SIZE, 17 ) \
1209       PROGRESS_DESC(COLOR, SIZE, 18 ) \
1210       PROGRESS_DESC(COLOR, SIZE, 19 ) \
1211       PROGRESS_DESC(COLOR, SIZE, 20 ) \
1212       PROGRESS_DESC(COLOR, SIZE, 21 ) \
1213       PROGRESS_DESC(COLOR, SIZE, 22 ) \
1214       PROGRESS_DESC(COLOR, SIZE, 23 ) \
1215       PROGRESS_DESC(COLOR, SIZE, 24 ) \
1216       PROGRESS_DESC(COLOR, SIZE, 25 ) \
1217       PROGRESS_DESC(COLOR, SIZE, 26 ) \
1218       PROGRESS_DESC(COLOR, SIZE, 27 ) \
1219       PROGRESS_DESC(COLOR, SIZE, 28 ) \
1220       PROGRESS_DESC(COLOR, SIZE, 29 ) \
1221       PROGRESS_DESC(COLOR, SIZE, 30 )
1222
1223 #define   PROGRESSING_DELAY    0.07
1224
1225    group { name: "elm/progressbar/horizontal/list_process";
1226       alias: "elm/progressbar/horizontal/process";
1227       PROCESS_IMAGES("White", "63x63")
1228       parts {
1229          part { name: "access";
1230             type: RECT;
1231             description { state: "default" 0.0;
1232                fixed: 1 1;
1233                color: 0 0 0 0;
1234             }
1235          }
1236          part { name: "elm.background.progressbar";
1237             mouse_events: 0;
1238             scale: 1;
1239             type: RECT;
1240             description {
1241                state: "default" 0.0;
1242             }
1243          }
1244          part { name: "elm.swallow.bar";
1245             mouse_events: 0;
1246             scale: 1;
1247             type: SWALLOW;
1248             description { state: "default" 0.0;
1249                min: 0 0;
1250                max: 0 0;
1251                visible: 0;
1252             }
1253          }
1254          part { name: "elm.swallow.content";
1255             type: SWALLOW;
1256             scale: 1;
1257             description { state: "default" 0.0;
1258                min: 0 0;
1259                max: 0 0;
1260                visible: 0;
1261             }
1262          }
1263          part { name: "background";
1264             mouse_events: 0;
1265             scale: 1;
1266             clip_to: "elm.background.progressbar";
1267             PROCESS_DESCS("White", "63x63", 63, 63)
1268          }
1269       }
1270       script {
1271          public pulse_state;
1272       }
1273       programs {
1274          program { name: "continue_pulse";
1275             script {
1276                new Float:state;
1277                state = get_float(pulse_state);
1278                set_state(PART:"background", "pulse", state);
1279                state += 0.01;
1280                if( state > 0.30 )
1281                   state = 0.01;
1282                set_float(pulse_state, state);
1283             }
1284                after: "delay";
1285          }
1286          program { name: "delay";
1287             action: STATE_SET "pulse" 0.10;
1288             target: "background";
1289             in: PROGRESSING_DELAY 0.0;
1290             after: "continue_pulse";
1291          }
1292          program { name: "start_pulse";
1293             signal: "elm,state,pulse,start";
1294             source: "elm";
1295             script {
1296                set_float(pulse_state, 0.0);
1297             }
1298             after: "continue_pulse";
1299          }
1300          program { name: "stop_pulse";
1301             signal: "elm,state,pulse,stop";
1302             source: "elm";
1303             action: ACTION_STOP;
1304             target: "continue_pulse";
1305             target: "delay";
1306             target: "start_pulse";
1307             after: "init_pulse";
1308          }
1309          program { name: "init_pulse";
1310             action: STATE_SET "default" 0.0;
1311             target: "background";
1312          }
1313       }
1314    }
1315
1316    group { name: "elm/progressbar/horizontal/list_process_medium";
1317       alias: "elm/progressbar/horizontal/process_medium";
1318       PROCESS_IMAGES("White", "54x54")
1319       parts {
1320          part { name: "access";
1321             type: RECT;
1322             description { state: "default" 0.0;
1323                fixed: 1 1;
1324                color: 0 0 0 0;
1325             }
1326          }
1327          part { name: "elm.background.progressbar";
1328             mouse_events: 0;
1329             scale: 1;
1330             type: RECT;
1331             description {
1332                state: "default" 0.0;
1333             }
1334          }
1335          part { name: "elm.swallow.bar";
1336             mouse_events: 0;
1337             scale: 1;
1338             type: SWALLOW;
1339             description { state: "default" 0.0;
1340                min: 0 0;
1341                max: 0 0;
1342                visible: 0;
1343             }
1344          }
1345          part { name: "elm.swallow.content";
1346             type: SWALLOW;
1347             scale: 1;
1348             description { state: "default" 0.0;
1349                min: 0 0;
1350                max: 0 0;
1351                visible: 0;
1352             }
1353          }
1354          part { name: "background";
1355             mouse_events: 0;
1356             scale: 1;
1357             clip_to: "elm.background.progressbar";
1358             PROCESS_DESCS("White", "54x54", 54, 54)
1359          }
1360       }
1361       script {
1362          public pulse_state;
1363       }
1364       programs {
1365          program { name: "continue_pulse";
1366             script {
1367                new Float:state;
1368                state = get_float(pulse_state);
1369                set_state(PART:"background", "pulse", state);
1370                state += 0.01;
1371                if( state > 0.30 )
1372                   state = 0.01;
1373                set_float(pulse_state, state);
1374             }
1375                after: "delay";
1376          }
1377          program { name: "delay";
1378             action: STATE_SET "pulse" 0.10;
1379             target: "background";
1380             in: PROGRESSING_DELAY 0.0;
1381             after: "continue_pulse";
1382          }
1383          program { name: "start_pulse";
1384             signal: "elm,state,pulse,start";
1385             source: "elm";
1386             script {
1387                set_float(pulse_state, 0.0);
1388             }
1389             after: "continue_pulse";
1390          }
1391          program { name: "stop_pulse";
1392             signal: "elm,state,pulse,stop";
1393             source: "elm";
1394             action: ACTION_STOP;
1395             target: "continue_pulse";
1396             target: "delay";
1397             target: "start_pulse";
1398             after: "init_pulse";
1399          }
1400          program { name: "init_pulse";
1401             action: STATE_SET "default" 0.0;
1402             target: "background";
1403          }
1404       }
1405    }
1406
1407    group { name: "elm/progressbar/horizontal/list_process_small";
1408       alias: "elm/progressbar/horizontal/process_small";
1409       PROCESS_IMAGES("White", "36x36")
1410       parts {
1411          part { name: "access";
1412             type: RECT;
1413             description { state: "default" 0.0;
1414                fixed: 1 1;
1415                color: 0 0 0 0;
1416             }
1417          }
1418          part { name: "elm.background.progressbar";
1419             mouse_events: 0;
1420             scale: 1;
1421             type: RECT;
1422             description {
1423                state: "default" 0.0;
1424             }
1425          }
1426          part { name: "elm.swallow.bar";
1427             mouse_events: 0;
1428             scale: 1;
1429             type: SWALLOW;
1430             description { state: "default" 0.0;
1431                min: 0 0;
1432                max: 0 0;
1433                visible: 0;
1434             }
1435          }
1436          part { name: "elm.swallow.content";
1437             type: SWALLOW;
1438             scale: 1;
1439             description { state: "default" 0.0;
1440                min: 0 0;
1441                max: 0 0;
1442                visible: 0;
1443             }
1444          }
1445          part { name: "background";
1446             mouse_events: 0;
1447             scale: 1;
1448             clip_to: "elm.background.progressbar";
1449             description {
1450                state: "default" 0.0;
1451                min: 36 36;
1452                max: 36 36;
1453                visible: 1;
1454                aspect: 1.0 1.0;
1455                aspect_preference: BOTH;
1456                image {
1457                   normal: "White/36x36/00_list_process_01.png";
1458                }
1459             }
1460             description {
1461                state: "pulse" 0.0;
1462                inherit: "default" 0.0;
1463                image {
1464                   normal: "White/36x36/00_list_process_01.png";
1465                   tween:  "White/36x36/00_list_process_02.png";
1466                   tween:  "White/36x36/00_list_process_03.png";
1467                   tween:  "White/36x36/00_list_process_04.png";
1468                   tween:  "White/36x36/00_list_process_05.png";
1469                   tween:  "White/36x36/00_list_process_06.png";
1470                   tween:  "White/36x36/00_list_process_07.png";
1471                   tween:  "White/36x36/00_list_process_08.png";
1472                   tween:  "White/36x36/00_list_process_09.png";
1473                   tween:  "White/36x36/00_list_process_10.png";
1474                   tween:  "White/36x36/00_list_process_11.png";
1475                   tween:  "White/36x36/00_list_process_12.png";
1476                   tween:  "White/36x36/00_list_process_13.png";
1477                   tween:  "White/36x36/00_list_process_14.png";
1478                   tween:  "White/36x36/00_list_process_15.png";
1479                   tween:  "White/36x36/00_list_process_16.png";
1480                   tween:  "White/36x36/00_list_process_17.png";
1481                   tween:  "White/36x36/00_list_process_18.png";
1482                   tween:  "White/36x36/00_list_process_19.png";
1483                   tween:  "White/36x36/00_list_process_20.png";
1484                   tween:  "White/36x36/00_list_process_21.png";
1485                   tween:  "White/36x36/00_list_process_22.png";
1486                   tween:  "White/36x36/00_list_process_23.png";
1487                   tween:  "White/36x36/00_list_process_24.png";
1488                   tween:  "White/36x36/00_list_process_25.png";
1489                   tween:  "White/36x36/00_list_process_26.png";
1490                   tween:  "White/36x36/00_list_process_27.png";
1491                   tween:  "White/36x36/00_list_process_28.png";
1492                   tween:  "White/36x36/00_list_process_29.png";
1493                   tween:  "White/36x36/00_list_process_30.png";
1494                }
1495             }
1496          }
1497       }
1498       programs {
1499          program { name: "start_pulse";
1500             signal: "elm,state,pulse,start";
1501             source: "elm";
1502             action: STATE_SET "pulse" 0.0;
1503             target: "background";
1504             transition: LINEAR 1.5;
1505             after: "start_pulse";
1506          }
1507          program { name: "stop_pulse";
1508             signal: "elm,state,pulse,stop";
1509             source: "elm";
1510             action: STATE_SET "default" 0.0;
1511             target: "background";
1512          }
1513          program { name: "init_pulse";
1514             action: STATE_SET "default" 0.0;
1515             target: "background";
1516          }
1517       }
1518    }
1519
1520
1521 // Black progressbar
1522    group { name: "elm/progressbar/horizontal/list_process_black";
1523       alias: "elm/progressbar/horizontal/process_black";
1524       PROCESS_IMAGES("Black", "63x63")
1525       parts {
1526          part { name: "access";
1527             type: RECT;
1528             description { state: "default" 0.0;
1529                fixed: 1 1;
1530                color: 0 0 0 0;
1531             }
1532          }
1533          part { name: "elm.background.progressbar";
1534             mouse_events: 0;
1535             scale: 1;
1536             type: RECT;
1537             description {
1538                state: "default" 0.0;
1539             }
1540          }
1541          part { name: "elm.swallow.bar";
1542             mouse_events: 0;
1543             scale: 1;
1544             type: SWALLOW;
1545             description { state: "default" 0.0;
1546                min: 0 0;
1547                max: 0 0;
1548                visible: 0;
1549             }
1550          }
1551          part { name: "elm.swallow.content";
1552             type: SWALLOW;
1553             scale: 1;
1554             description { state: "default" 0.0;
1555                min: 0 0;
1556                max: 0 0;
1557                visible: 0;
1558             }
1559          }
1560          part { name: "background";
1561             mouse_events: 0;
1562             scale: 1;
1563             clip_to: "elm.background.progressbar";
1564             PROCESS_DESCS("Black", "63x63", 63, 63)
1565          }
1566       }
1567       script {
1568          public pulse_state;
1569       }
1570       programs {
1571          program { name: "continue_pulse";
1572             script {
1573                new Float:state;
1574                state = get_float(pulse_state);
1575                set_state(PART:"background", "pulse", state);
1576                state += 0.01;
1577                if( state > 0.30 )
1578                   state = 0.01;
1579                set_float(pulse_state, state);
1580             }
1581                after: "delay";
1582          }
1583          program { name: "delay";
1584             action: STATE_SET "pulse" 0.10;
1585             target: "background";
1586             in: PROGRESSING_DELAY 0.0;
1587             after: "continue_pulse";
1588          }
1589          program { name: "start_pulse";
1590             signal: "elm,state,pulse,start";
1591             source: "elm";
1592             script {
1593                set_float(pulse_state, 0.0);
1594             }
1595             after: "continue_pulse";
1596          }
1597          program { name: "stop_pulse";
1598             signal: "elm,state,pulse,stop";
1599             source: "elm";
1600             action: ACTION_STOP;
1601             target: "continue_pulse";
1602             target: "delay";
1603             target: "start_pulse";
1604             after: "init_pulse";
1605          }
1606          program { name: "init_pulse";
1607             action: STATE_SET "default" 0.0;
1608             target: "background";
1609          }
1610       }
1611    }
1612
1613    group { name: "elm/progressbar/horizontal/list_process_medium_black";
1614       alias: "elm/progressbar/horizontal/process_medium_black";
1615       PROCESS_IMAGES("Black", "54x54")
1616       parts {
1617          part { name: "access";
1618             type: RECT;
1619             description { state: "default" 0.0;
1620                fixed: 1 1;
1621                color: 0 0 0 0;
1622             }
1623          }
1624          part { name: "elm.background.progressbar";
1625             mouse_events: 0;
1626             scale: 1;
1627             type: RECT;
1628             description {
1629                state: "default" 0.0;
1630             }
1631          }
1632          part { name: "elm.swallow.bar";
1633             mouse_events: 0;
1634             scale: 1;
1635             type: SWALLOW;
1636             description { state: "default" 0.0;
1637                min: 0 0;
1638                max: 0 0;
1639                visible: 0;
1640             }
1641          }
1642          part { name: "elm.swallow.content";
1643             type: SWALLOW;
1644             scale: 1;
1645             description { state: "default" 0.0;
1646                min: 0 0;
1647                max: 0 0;
1648                visible: 0;
1649             }
1650          }
1651          part { name: "background";
1652             mouse_events: 0;
1653             scale: 1;
1654             clip_to: "elm.background.progressbar";
1655             PROCESS_DESCS("Black", "54x54", 54, 54)
1656          }
1657       }
1658       script {
1659          public pulse_state;
1660       }
1661       programs {
1662          program { name: "continue_pulse";
1663             script {
1664                new Float:state;
1665                state = get_float(pulse_state);
1666                set_state(PART:"background", "pulse", state);
1667                state += 0.01;
1668                if( state > 0.30 )
1669                   state = 0.01;
1670                set_float(pulse_state, state);
1671             }
1672                after: "delay";
1673          }
1674          program { name: "delay";
1675             action: STATE_SET "pulse" 0.10;
1676             target: "background";
1677             in: PROGRESSING_DELAY 0.0;
1678             after: "continue_pulse";
1679          }
1680          program { name: "start_pulse";
1681             signal: "elm,state,pulse,start";
1682             source: "elm";
1683             script {
1684                set_float(pulse_state, 0.0);
1685             }
1686             after: "continue_pulse";
1687          }
1688          program { name: "stop_pulse";
1689             signal: "elm,state,pulse,stop";
1690             source: "elm";
1691             action: ACTION_STOP;
1692             target: "continue_pulse";
1693             target: "delay";
1694             target: "start_pulse";
1695             after: "init_pulse";
1696          }
1697          program { name: "init_pulse";
1698             action: STATE_SET "default" 0.0;
1699             target: "background";
1700          }
1701       }
1702    }
1703
1704    group { name: "elm/progressbar/horizontal/list_process_small_black";
1705       alias: "elm/progressbar/horizontal/process_small_black";
1706       PROCESS_IMAGES("Black", "36x36")
1707       parts {
1708          part { name: "access";
1709             type: RECT;
1710             description { state: "default" 0.0;
1711                fixed: 1 1;
1712                color: 0 0 0 0;
1713             }
1714          }
1715          part { name: "elm.background.progressbar";
1716             mouse_events: 0;
1717             scale: 1;
1718             type: RECT;
1719             description {
1720                state: "default" 0.0;
1721             }
1722          }
1723          part { name: "elm.swallow.bar";
1724             mouse_events: 0;
1725             scale: 1;
1726             type: SWALLOW;
1727             description { state: "default" 0.0;
1728                min: 0 0;
1729                max: 0 0;
1730                visible: 0;
1731             }
1732          }
1733          part { name: "elm.swallow.content";
1734             type: SWALLOW;
1735             scale: 1;
1736             description { state: "default" 0.0;
1737                min: 0 0;
1738                max: 0 0;
1739                visible: 0;
1740             }
1741          }
1742          part { name: "background";
1743             mouse_events: 0;
1744             scale: 1;
1745             clip_to: "elm.background.progressbar";
1746             PROCESS_DESCS("Black", "36x36", 36, 36)
1747          }
1748       }
1749       script {
1750          public pulse_state;
1751       }
1752       programs {
1753          program { name: "continue_pulse";
1754             script {
1755                new Float:state;
1756                state = get_float(pulse_state);
1757                set_state(PART:"background", "pulse", state);
1758                state += 0.01;
1759                if( state > 0.30 )
1760                   state = 0.01;
1761                set_float(pulse_state, state);
1762             }
1763                after: "delay";
1764          }
1765          program { name: "delay";
1766             action: STATE_SET "pulse" 0.10;
1767             target: "background";
1768             in: PROGRESSING_DELAY 0.0;
1769             after: "continue_pulse";
1770          }
1771          program { name: "start_pulse";
1772             signal: "elm,state,pulse,start";
1773             source: "elm";
1774             script {
1775                set_float(pulse_state, 0.0);
1776             }
1777             after: "continue_pulse";
1778          }
1779          program { name: "stop_pulse";
1780             signal: "elm,state,pulse,stop";
1781             source: "elm";
1782             action: ACTION_STOP;
1783             target: "continue_pulse";
1784             target: "delay";
1785             target: "start_pulse";
1786             after: "init_pulse";
1787          }
1788          program { name: "init_pulse";
1789             action: STATE_SET "default" 0.0;
1790             target: "background";
1791          }
1792       }
1793    }
1794
1795 #define CIRCLE_PROGRESSING_DELAY       0.03
1796 #define PROGRESS_CIRCLE_TOTAL_STATES   50
1797
1798 #define PROGRESS_CIRCLE_BG_DESC( param_num ) \
1799    description { state: "progress" 0.#param_num; \
1800       inherit: "default" 0.0; \
1801       image { \
1802          normal: "00_progress_circle_bg_"#param_num".png"; \
1803       } \
1804    }
1805
1806    group { name: "elm/progressbar/horizontal/progress_circle";
1807       images {
1808          image: "00_progress_circle_bg.png" COMP;
1809          image: "00_progress_circle_bg_01.png" COMP;
1810          image: "00_progress_circle_bg_02.png" COMP;
1811          image: "00_progress_circle_bg_03.png" COMP;
1812          image: "00_progress_circle_bg_04.png" COMP;
1813          image: "00_progress_circle_bg_05.png" COMP;
1814          image: "00_progress_circle_bg_06.png" COMP;
1815          image: "00_progress_circle_bg_07.png" COMP;
1816          image: "00_progress_circle_bg_08.png" COMP;
1817          image: "00_progress_circle_bg_09.png" COMP;
1818          image: "00_progress_circle_bg_10.png" COMP;
1819          image: "00_progress_circle_bg_11.png" COMP;
1820          image: "00_progress_circle_bg_12.png" COMP;
1821          image: "00_progress_circle_bg_13.png" COMP;
1822          image: "00_progress_circle_bg_14.png" COMP;
1823          image: "00_progress_circle_bg_15.png" COMP;
1824          image: "00_progress_circle_bg_16.png" COMP;
1825          image: "00_progress_circle_bg_17.png" COMP;
1826          image: "00_progress_circle_bg_18.png" COMP;
1827          image: "00_progress_circle_bg_19.png" COMP;
1828          image: "00_progress_circle_bg_20.png" COMP;
1829          image: "00_progress_circle_bg_21.png" COMP;
1830          image: "00_progress_circle_bg_22.png" COMP;
1831          image: "00_progress_circle_bg_23.png" COMP;
1832          image: "00_progress_circle_bg_24.png" COMP;
1833          image: "00_progress_circle_bg_25.png" COMP;
1834          image: "00_progress_circle_bg_26.png" COMP;
1835          image: "00_progress_circle_bg_27.png" COMP;
1836          image: "00_progress_circle_bg_28.png" COMP;
1837          image: "00_progress_circle_bg_29.png" COMP;
1838          image: "00_progress_circle_bg_30.png" COMP;
1839          image: "00_progress_circle_bg_31.png" COMP;
1840          image: "00_progress_circle_bg_32.png" COMP;
1841          image: "00_progress_circle_bg_33.png" COMP;
1842          image: "00_progress_circle_bg_34.png" COMP;
1843          image: "00_progress_circle_bg_35.png" COMP;
1844          image: "00_progress_circle_bg_36.png" COMP;
1845          image: "00_progress_circle_bg_37.png" COMP;
1846          image: "00_progress_circle_bg_38.png" COMP;
1847          image: "00_progress_circle_bg_39.png" COMP;
1848          image: "00_progress_circle_bg_40.png" COMP;
1849          image: "00_progress_circle_bg_41.png" COMP;
1850          image: "00_progress_circle_bg_42.png" COMP;
1851          image: "00_progress_circle_bg_43.png" COMP;
1852          image: "00_progress_circle_bg_44.png" COMP;
1853          image: "00_progress_circle_bg_45.png" COMP;
1854          image: "00_progress_circle_bg_46.png" COMP;
1855          image: "00_progress_circle_bg_47.png" COMP;
1856          image: "00_progress_circle_bg_48.png" COMP;
1857          image: "00_progress_circle_bg_49.png" COMP;
1858          image: "00_progress_circle_bg_50.png" COMP;
1859       }
1860       parts {
1861          part { name: "access";
1862             type: RECT;
1863             description { state: "default" 0.0;
1864                fixed: 1 1;
1865                color: 0 0 0 0;
1866             }
1867          }
1868          part { name: "elm.background.progressbar";
1869             mouse_events: 0;
1870             scale: 1;
1871             type: RECT;
1872             description {
1873                state: "default" 0.0;
1874             }
1875          }
1876          part { name: "elm.swallow.bar";
1877             mouse_events: 0;
1878             scale: 1;
1879             type: SWALLOW;
1880             description { state: "default" 0.0;
1881                min: 0 0;
1882                max: 0 0;
1883                visible: 0;
1884             }
1885          }
1886          part { name: "elm.swallow.content";
1887             type: SWALLOW;
1888             scale: 1;
1889             description { state: "default" 0.0;
1890                min: 0 0;
1891                max: 0 0;
1892                visible: 0;
1893             }
1894          }
1895          part { name: "elm.cur.progressbar";
1896             mouse_events: 0;
1897             scale: 1;
1898             dragable {
1899                confine: "background";
1900                x: 1 1 1;
1901                y: 0 0 0;
1902             }
1903             description { state: "default" 0.0;
1904                min: 1 1;
1905                fixed: 1 1;
1906                visible: 0;
1907                rel1.to: "background";
1908                rel2.to: "background";
1909            }
1910          }
1911          part { name: "background";
1912             mouse_events: 0;
1913             scale: 1;
1914             clip_to: "elm.background.progressbar";
1915             description {
1916                state: "default" 0.0;
1917                min: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1918                max: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1919                aspect: 1.0 1.0;
1920                aspect_preference: BOTH;
1921                image {
1922                   normal: "00_progress_circle_bg.png";
1923                }
1924             }
1925          }
1926          part { name: "progress_circle_img";
1927             mouse_events: 0;
1928             scale: 1;
1929             clip_to: "elm.background.progressbar";
1930             description {
1931                state: "default" 0.0;
1932                rel1 {
1933                   to: "background";
1934                }
1935                rel2 {
1936                   to: "background";
1937                }
1938                aspect: 1.0 1.0;
1939                aspect_preference: BOTH;
1940                image {
1941                   normal: "00_progress_circle_bg.png";
1942                }
1943             }
1944             description { state: "progress" 0.0;
1945                inherit: "default" 0.0;
1946                image {
1947                   normal: "00_progress_circle_bg.png";
1948                }
1949             }
1950             PROGRESS_CIRCLE_BG_DESC( 01 )
1951             PROGRESS_CIRCLE_BG_DESC( 02 )
1952             PROGRESS_CIRCLE_BG_DESC( 03 )
1953             PROGRESS_CIRCLE_BG_DESC( 04 )
1954             PROGRESS_CIRCLE_BG_DESC( 05 )
1955             PROGRESS_CIRCLE_BG_DESC( 06 )
1956             PROGRESS_CIRCLE_BG_DESC( 07 )
1957             PROGRESS_CIRCLE_BG_DESC( 08 )
1958             PROGRESS_CIRCLE_BG_DESC( 09 )
1959             PROGRESS_CIRCLE_BG_DESC( 10 )
1960             PROGRESS_CIRCLE_BG_DESC( 11 )
1961             PROGRESS_CIRCLE_BG_DESC( 12 )
1962             PROGRESS_CIRCLE_BG_DESC( 13 )
1963             PROGRESS_CIRCLE_BG_DESC( 14 )
1964             PROGRESS_CIRCLE_BG_DESC( 15 )
1965             PROGRESS_CIRCLE_BG_DESC( 16 )
1966             PROGRESS_CIRCLE_BG_DESC( 17 )
1967             PROGRESS_CIRCLE_BG_DESC( 18 )
1968             PROGRESS_CIRCLE_BG_DESC( 19 )
1969             PROGRESS_CIRCLE_BG_DESC( 20 )
1970             PROGRESS_CIRCLE_BG_DESC( 21 )
1971             PROGRESS_CIRCLE_BG_DESC( 22 )
1972             PROGRESS_CIRCLE_BG_DESC( 23 )
1973             PROGRESS_CIRCLE_BG_DESC( 24 )
1974             PROGRESS_CIRCLE_BG_DESC( 25 )
1975             PROGRESS_CIRCLE_BG_DESC( 26 )
1976             PROGRESS_CIRCLE_BG_DESC( 27 )
1977             PROGRESS_CIRCLE_BG_DESC( 28 )
1978             PROGRESS_CIRCLE_BG_DESC( 29 )
1979             PROGRESS_CIRCLE_BG_DESC( 30 )
1980             PROGRESS_CIRCLE_BG_DESC( 31 )
1981             PROGRESS_CIRCLE_BG_DESC( 32 )
1982             PROGRESS_CIRCLE_BG_DESC( 33 )
1983             PROGRESS_CIRCLE_BG_DESC( 34 )
1984             PROGRESS_CIRCLE_BG_DESC( 35 )
1985             PROGRESS_CIRCLE_BG_DESC( 36 )
1986             PROGRESS_CIRCLE_BG_DESC( 37 )
1987             PROGRESS_CIRCLE_BG_DESC( 38 )
1988             PROGRESS_CIRCLE_BG_DESC( 39 )
1989             PROGRESS_CIRCLE_BG_DESC( 40 )
1990             PROGRESS_CIRCLE_BG_DESC( 41 )
1991             PROGRESS_CIRCLE_BG_DESC( 42 )
1992             PROGRESS_CIRCLE_BG_DESC( 43 )
1993             PROGRESS_CIRCLE_BG_DESC( 44 )
1994             PROGRESS_CIRCLE_BG_DESC( 45 )
1995             PROGRESS_CIRCLE_BG_DESC( 46 )
1996             PROGRESS_CIRCLE_BG_DESC( 47 )
1997             PROGRESS_CIRCLE_BG_DESC( 48 )
1998             PROGRESS_CIRCLE_BG_DESC( 49 )
1999             PROGRESS_CIRCLE_BG_DESC( 50 )
2000          }
2001       }
2002       programs {
2003          script {
2004             public curr_state = 0;
2005             public final_state = 0;
2006             public prev_state = 0;
2007             public max_state = 0;    // maximum possible state, a normalized value
2008             public circle_zero_cross = 0;   // whether circle crosses its Zero state or not.
2009
2010             public progress_circle_state_change(){
2011             new Float:x, Float:y, Float:final, Float:max;
2012             max = PROGRESS_CIRCLE_TOTAL_STATES / 100.0;
2013             set_float(max_state, max);
2014             get_drag(PART:"elm.cur.progressbar", x, y);
2015             final = x * max;   // calculate final state as per the set drag value
2016             set_float(final_state, final);
2017             if( final < get_float(prev_state) )
2018                set_int(circle_zero_cross, 1);  // high value to low value, crosses zero state.
2019             else
2020                set_int(circle_zero_cross, 0);  // low value to high value, no need for zero state crossing.
2021             }
2022          }
2023          program { name: "circle_progress";
2024             script {
2025                new Float:curr, Float:final, Float:max;
2026                new zero_cross;
2027                zero_cross = get_int(circle_zero_cross);
2028                max = get_float(max_state);
2029                curr = get_float(curr_state);
2030                set_state(PART:"progress_circle_img", "progress", curr);
2031                curr += 0.01;   // for next immediate state.
2032                if( (curr > max) && (zero_cross == 1) )
2033                {
2034                   curr = 0.00;   // once it crosses Zero state, reset its state.
2035                   set_int(circle_zero_cross, 0);
2036                }
2037                else if( curr > max ) return;
2038
2039                final = get_float(final_state);
2040                zero_cross = get_int(circle_zero_cross);
2041                if( (curr > final) && (zero_cross == 0) )
2042                {
2043                   set_float(prev_state, get_float(curr_state));
2044                   return;
2045                }
2046                set_float(curr_state, curr);
2047             }
2048             after: "delay";
2049          }
2050          program { name: "delay";
2051             action: STATE_SET "progress" 0.10;
2052             target: "progress_circle_img";
2053             in: CIRCLE_PROGRESSING_DELAY 0.0;
2054             after: "circle_progress";
2055          }
2056          program { name: "circle_start";
2057             signal: "elm,state,pulse,start";
2058             source: "elm";
2059             script {
2060                set_float(curr_state, 0.0);
2061             }
2062             after: "circle_progress";
2063          }
2064          program { name: "circle_stop";
2065             signal: "elm,state,pulse,stop";
2066             source: "elm";
2067             action: ACTION_STOP;
2068             target: "circle_progress";
2069             target: "delay";
2070             target: "circle_start";
2071          }
2072          program { name: "circle_state_change";
2073             signal: "elm,state,change";
2074             source: "elm";
2075             script {
2076                progress_circle_state_change()
2077             }
2078             after: "circle_progress";
2079          }
2080       }
2081    }