3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 ///////////////////////////////////////////////////////////////////////////////////////
22 group { name: "elm/progressbar/horizontal/default";
23 alias: "elm/progressbar/horizontal/list_progress";
25 image: "00_progress_bg.png" COMP;
26 image: "00_progress_bar.png" COMP;
29 part { name: "access";
31 description { state: "default" 0.0;
36 part { name: "elm.padding.left";
55 part { name: "elm.padding.right";
74 part { name: "elm.background.progressbar";
81 to_x: "elm.padding.left";
86 to_x: "elm.padding.right";
92 part { name: "elm.swallow.bar";
97 min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
98 max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
101 to: "elm.background.progressbar";
105 to: "elm.background.progressbar";
110 part { name: "elm.swallow.content";
113 description { state: "default" 0.0;
118 to_y: "elm.background.progressbar";
123 to_y: "elm.background.progressbar";
126 description { state: "visible" 0.0;
127 inherit: "default" 0.0;
130 aspect_preference: VERTICAL;
134 part { name: "elm.text";
138 description { state: "default" 0.0;
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;
148 font: "Tizen:style=Medium";
149 size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
155 description { state: "visible" 0.0;
156 inherit: "default" 0.0;
161 part { name: "background";
164 clip_to: "elm.background.progressbar";
166 state: "default" 0.0;
168 to: "elm.swallow.bar";
172 to: "elm.swallow.bar";
176 normal: "00_progress_bg.png";
177 border: PROGRESS_BG_IMAGE_BORDER_INC;
182 part { name: "elm.text.status";
186 description { state: "default" 0.0;
198 font: "Tizen:style=Medium";
199 size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
204 color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
206 description { state: "show" 0.0;
207 inherit: "default" 0.0;
213 name: "bar.image.left.padding";
217 state: "default" 0.0;
219 min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
220 max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
222 rel1.to: "elm.swallow.bar";
225 to: "elm.swallow.bar";
231 name: "bar.image.right.padding";
235 state: "default" 0.0;
237 min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
238 max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
242 to: "elm.swallow.bar";
244 rel2.to: "elm.swallow.bar";
248 part { name: "drag.background";
252 clip_to: "elm.background.progressbar";
254 state: "default" 0.0;
257 to_x: "bar.image.left.padding";
258 to_y: "elm.swallow.bar";
262 to_x: "bar.image.right.padding";
263 to_y: "elm.swallow.bar";
268 part { name: "elm.progress.progressbar";
271 clip_to: "elm.background.progressbar";
273 state: "default" 0.0;
277 to_x: "bar.image.left.padding";
278 to_y: "elm.swallow.bar";
282 to_y: "elm.swallow.bar";
283 to_x: "elm.cur.progressbar";
287 normal: "00_progress_bar.png";
288 border: PROGRESS_BAR_IMAGE_BORDER_INC;
294 inherit: "default" 0.0;
296 to_y: "elm.swallow.bar";
297 to_x: "elm.cur.progressbar";
300 to_y: "elm.swallow.bar";
301 to_x: "bar.image.right.padding";
306 state: "state_begin" 0.0;
307 inherit: "default" 0.0;
309 to: "elm.swallow.bar";
313 to: "elm.swallow.bar";
318 state: "state_end" 0.0;
319 inherit: "default" 0.0;
321 to: "elm.swallow.bar";
325 to: "elm.swallow.bar";
330 part { name: "text-bar";
334 clip_to: "progress-rect";
335 //effect: SOFT_SHADOW;
337 description { state: "default" 0.0;
341 rel1.to: "elm.text.status";
343 rel2.to: "elm.text.status";
345 text_source: "elm.text.status";
346 font: "Tizen:style=Medium";
347 size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
352 color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
354 description { state: "show" 0.0;
355 inherit: "default" 0.0;
360 part { name: "elm.cur.progressbar";
364 confine: "drag.background";
368 description { state: "default" 0.0;
372 rel1.to: "drag.background";
373 rel2.to: "drag.background";
376 part { name: "progress-rect";
381 state: "default" 0.0;
382 rel1.to: "elm.progress.progressbar";
383 rel2.to: "elm.progress.progressbar";
388 program { name: "label_show";
389 signal: "elm,state,text,visible";
391 action: STATE_SET "visible" 0.0;
394 program { name: "label_hide";
395 signal: "elm,state,text,hidden";
397 action: STATE_SET "default" 0.0;
400 program { name: "icon_show";
401 signal: "elm,state,icon,visible";
403 action: STATE_SET "visible" 0.0;
404 target: "elm.swallow.content";
406 program { name: "icon_hide";
407 signal: "elm,state,icon,hidden";
409 action: STATE_SET "default" 0.0;
410 target: "elm.swallow.content";
412 program { name: "units_show";
413 signal: "elm,state,units,visible";
415 action: STATE_SET "show" 0.0;
417 target: "elm.text.status";
419 program { name: "units_hide";
420 signal: "elm,state,units,hidden";
422 action: STATE_SET "default" 0.0;
424 target: "elm.text.status";
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";
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";
439 program { name: "start_pulse";
440 signal: "elm,state,pulse,start";
442 // after: "slide_to_end";
444 program { name: "stop_pulse";
445 signal: "elm,state,pulse,stop";
448 target: "slide_to_begin";
449 target: "slide_to_end";
450 target: "start_pulse";
451 //after: "state_pulse";
453 program { name: "state_pulse";
454 signal: "elm,state,pulse";
456 action: STATE_SET "state_begin" 0.0;
457 target: "elm.progress.progressbar";
460 program { name: "state_fraction";
461 signal: "elm,state,fraction";
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";
470 program { name: "set_invert_on";
471 signal: "elm,state,inverted,on";
473 action: STATE_SET "invert" 0.0;
474 target: "elm.progress.progressbar";
476 program { name: "set_invert_off";
477 signal: "elm,state,inverted,off";
479 action: STATE_SET "default" 0.0;
480 target: "elm.progress.progressbar";
485 group { name: "elm/progressbar/horizontal/list_title_progress";
487 image: "00_progress_bg.png" COMP;
488 image: "00_progress_bar.png" COMP;
491 part { name: "access";
493 description { state: "default" 0.0;
502 state: "default" 0.0;
504 rel1 { relative: 0.0 0.0; }
505 rel2 { relative: 1.0 1.0; }
509 part { name: "elm.padding.left";
513 state: "default" 0.0;
517 rel1 { relative: 0.0 0.0; to: "base"; }
518 rel2 { relative: 0.0 1.0; to: "base"; }
523 part { name: "elm.padding.right";
527 state: "default" 0.0;
531 rel1 { relative: 1.0 0.0; to: "base"; }
532 rel2 { relative: 1.0 1.0; to: "base"; }
538 name: "elm.padding.top";
542 description { state: "default" 0.0;
547 rel1 { relative: 0.0 0.0; to: "base"; }
548 rel2 { relative: 1.0 0.0; to: "base"; }
553 name: "elm.padding.bottom";
557 description { state: "default" 0.0;
562 rel1 { relative: 0.0 1.0; to: "base"; }
563 rel2 { relative: 1.0 1.0; to: "base"; }
572 description { state: "default" 0.0;
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"; }
582 part { name: "elm.background.progressbar";
587 state: "default" 0.0;
589 to_x: "elm.padding.left";
595 to_x: "elm.padding.right";
601 part { name: "elm.swallow.bar";
606 min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
607 max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
608 state: "default" 0.0;
610 to: "elm.background.progressbar";
614 to: "elm.background.progressbar";
619 part { name: "elm.swallow.content";
622 description { state: "default" 0.0;
627 to_y: "elm.background.progressbar";
632 to_y: "elm.background.progressbar";
635 description { state: "visible" 0.0;
636 inherit: "default" 0.0;
639 aspect_preference: VERTICAL;
643 part { name: "elm.text";
647 description { state: "default" 0.0;
651 rel1.to: "label_rect";
652 rel2.to: "label_rect";
653 color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
655 font: "Tizen:style=Medium";
656 size: PROGRESSBAR_TITLE_FONT_SIZE_INC;
662 description { state: "visible" 0.0;
663 inherit: "default" 0.0;
668 part { name: "background";
671 clip_to: "elm.background.progressbar";
673 state: "default" 0.0;
675 to: "elm.swallow.bar";
679 to: "elm.swallow.bar";
683 normal: "00_progress_bg.png";
684 border: PROGRESS_BG_IMAGE_BORDER_INC;
689 part { name: "elm.text.status";
693 description { state: "default" 0.0;
705 font: "Tizen:style=Medium";
706 size: PROGRESSBAR_TITLE_FONT_SIZE_INC;
711 color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
713 description { state: "show" 0.0;
714 inherit: "default" 0.0;
720 name: "bar.image.left.padding";
724 state: "default" 0.0;
726 min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
727 max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
729 rel1.to: "elm.swallow.bar";
732 to: "elm.swallow.bar";
738 name: "bar.image.right.padding";
742 state: "default" 0.0;
744 min: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
745 max: PROGRESS_BAR_IMAGE_PADDING_SIZE_INC;
749 to: "elm.swallow.bar";
751 rel2.to: "elm.swallow.bar";
755 part { name: "drag.background";
759 clip_to: "elm.background.progressbar";
761 state: "default" 0.0;
764 to_x: "bar.image.left.padding";
765 to_y: "elm.swallow.bar";
769 to_x: "bar.image.right.padding";
770 to_y: "elm.swallow.bar";
775 part { name: "elm.progress.progressbar";
778 clip_to: "elm.background.progressbar";
780 state: "default" 0.0;
784 to_x: "bar.image.left.padding";
785 to_y: "elm.swallow.bar";
789 to_y: "elm.swallow.bar";
790 to_x: "elm.cur.progressbar";
794 normal: "00_progress_bar.png";
795 border: PROGRESS_BAR_IMAGE_BORDER_INC;
801 inherit: "default" 0.0;
803 to_y: "elm.swallow.bar";
804 to_x: "elm.cur.progressbar";
807 to_y: "elm.swallow.bar";
808 to_x: "bar.image.right.padding";
813 state: "state_begin" 0.0;
814 inherit: "default" 0.0;
816 to: "elm.swallow.bar";
820 to: "elm.swallow.bar";
825 state: "state_end" 0.0;
826 inherit: "default" 0.0;
828 to: "elm.swallow.bar";
832 to: "elm.swallow.bar";
837 part { name: "text-bar";
841 clip_to: "progress-rect";
842 //effect: SOFT_SHADOW;
844 description { state: "default" 0.0;
848 rel1.to: "elm.text.status";
850 rel2.to: "elm.text.status";
852 text_source: "elm.text.status";
853 font: "Tizen:style=Medium";
854 size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
859 color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
861 description { state: "show" 0.0;
862 inherit: "default" 0.0;
867 part { name: "elm.cur.progressbar";
871 confine: "drag.background";
875 description { state: "default" 0.0;
879 rel1.to: "drag.background";
880 rel2.to: "drag.background";
883 part { name: "progress-rect";
888 state: "default" 0.0;
889 rel1.to: "elm.progress.progressbar";
890 rel2.to: "elm.progress.progressbar";
895 program { name: "label_show";
896 signal: "elm,state,text,visible";
898 action: STATE_SET "visible" 0.0;
901 program { name: "label_hide";
902 signal: "elm,state,text,hidden";
904 action: STATE_SET "default" 0.0;
907 program { name: "icon_show";
908 signal: "elm,state,icon,visible";
910 action: STATE_SET "visible" 0.0;
911 target: "elm.swallow.content";
913 program { name: "icon_hide";
914 signal: "elm,state,icon,hidden";
916 action: STATE_SET "default" 0.0;
917 target: "elm.swallow.content";
919 program { name: "units_show";
920 signal: "elm,state,units,visible";
922 action: STATE_SET "show" 0.0;
924 target: "elm.text.status";
926 program { name: "units_hide";
927 signal: "elm,state,units,hidden";
929 action: STATE_SET "default" 0.0;
931 target: "elm.text.status";
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";
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";
946 program { name: "start_pulse";
947 signal: "elm,state,pulse,start";
949 // after: "slide_to_end";
951 program { name: "stop_pulse";
952 signal: "elm,state,pulse,stop";
955 target: "slide_to_begin";
956 target: "slide_to_end";
957 target: "start_pulse";
958 //after: "state_pulse";
960 program { name: "state_pulse";
961 signal: "elm,state,pulse";
963 action: STATE_SET "state_begin" 0.0;
964 target: "elm.progress.progressbar";
967 program { name: "state_fraction";
968 signal: "elm,state,fraction";
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";
977 program { name: "set_invert_on";
978 signal: "elm,state,inverted,on";
980 action: STATE_SET "invert" 0.0;
981 target: "elm.progress.progressbar";
983 program { name: "set_invert_off";
984 signal: "elm,state,inverted,off";
986 action: STATE_SET "default" 0.0;
987 target: "elm.progress.progressbar";
992 group { name: "elm/progressbar/horizontal/pending_list";
994 image: "00_progress_pending_01_bg.png" COMP;
995 image: "00_progress_pending_02_bg.png" COMP;
998 part { name: "access";
1000 description { state: "default" 0.0;
1005 part { name: "elm.background.progressbar";
1010 state: "default" 0.0;
1020 part { name: "elm.swallow.bar";
1025 min: 1 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1026 max: 99999 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1027 state: "default" 0.0;
1029 to: "elm.background.progressbar";
1033 to: "elm.background.progressbar";
1038 part { name: "background";
1041 clip_to: "elm.background.progressbar";
1043 state: "default" 0.0;
1045 to: "elm.swallow.bar";
1049 to: "elm.swallow.bar";
1053 normal: "00_progress_bg.png";
1054 border: PROGRESS_BG_IMAGE_BORDER_INC;
1059 part { name: "elm.progress.progressbar";
1062 clip_to: "elm.background.progressbar";
1064 state: "default" 0.0;
1077 normal: "00_progress_pending_01_bg.png";
1082 state: "state_begin" 0.0;
1083 inherit: "default" 0.0;
1086 state: "state_end" 0.0;
1087 inherit: "default" 0.0;
1089 normal: "00_progress_pending_02_bg.png";
1096 program { name: "slide_to_end";
1097 action: STATE_SET "state_end" 0.0;
1099 target: "elm.progress.progressbar";
1100 after: "slide_to_begin";
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";
1107 after: "slide_to_end";
1109 program { name: "start_pulse";
1110 signal: "elm,state,pulse,start";
1112 after: "slide_to_end";
1114 program { name: "stop_pulse";
1115 signal: "elm,state,pulse,stop";
1117 action: ACTION_STOP;
1118 target: "slide_to_begin";
1119 target: "slide_to_end";
1120 target: "start_pulse";
1121 after: "init_pulse";
1123 program { name: "init_pulse";
1124 action: STATE_SET "default" 0.0;
1125 target: "elm.progress.progressbar";
1130 #define PROCESS_IMAGE(COLOR, SIZE, NUM) \
1131 image: ""COLOR"/"SIZE"/00_list_process_"NUM".png" COMP;
1133 #define PROCESS_IMAGES(COLOR, SIZE) \
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) \
1167 #define PROGRESS_DESC(COLOR, SIZE, NUM ) \
1168 description { state: "pulse" 0.#NUM; \
1169 inherit: "default" 0.0; \
1171 normal: ""COLOR"/"SIZE"/00_list_process_"NUM".png"; \
1175 #define PROCESS_DESCS(COLOR, SIZE, WIDTH, HEIGHT) \
1177 state: "default" 0.0; \
1178 min: WIDTH HEIGHT; \
1179 max: WIDTH HEIGHT; \
1181 aspect_preference: BOTH; \
1183 normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
1186 description { state: "pulse" 0.0; \
1187 inherit: "default" 0.0; \
1189 normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
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 )
1223 #define PROGRESSING_DELAY 0.07
1225 group { name: "elm/progressbar/horizontal/list_process";
1226 alias: "elm/progressbar/horizontal/process";
1227 PROCESS_IMAGES("White", "63x63")
1229 part { name: "access";
1231 description { state: "default" 0.0;
1236 part { name: "elm.background.progressbar";
1241 state: "default" 0.0;
1244 part { name: "elm.swallow.bar";
1248 description { state: "default" 0.0;
1254 part { name: "elm.swallow.content";
1257 description { state: "default" 0.0;
1263 part { name: "background";
1266 clip_to: "elm.background.progressbar";
1267 PROCESS_DESCS("White", "63x63", 63, 63)
1274 program { name: "continue_pulse";
1277 state = get_float(pulse_state);
1278 set_state(PART:"background", "pulse", state);
1282 set_float(pulse_state, state);
1286 program { name: "delay";
1287 action: STATE_SET "pulse" 0.10;
1288 target: "background";
1289 in: PROGRESSING_DELAY 0.0;
1290 after: "continue_pulse";
1292 program { name: "start_pulse";
1293 signal: "elm,state,pulse,start";
1296 set_float(pulse_state, 0.0);
1298 after: "continue_pulse";
1300 program { name: "stop_pulse";
1301 signal: "elm,state,pulse,stop";
1303 action: ACTION_STOP;
1304 target: "continue_pulse";
1306 target: "start_pulse";
1307 after: "init_pulse";
1309 program { name: "init_pulse";
1310 action: STATE_SET "default" 0.0;
1311 target: "background";
1316 group { name: "elm/progressbar/horizontal/list_process_medium";
1317 alias: "elm/progressbar/horizontal/process_medium";
1318 PROCESS_IMAGES("White", "54x54")
1320 part { name: "access";
1322 description { state: "default" 0.0;
1327 part { name: "elm.background.progressbar";
1332 state: "default" 0.0;
1335 part { name: "elm.swallow.bar";
1339 description { state: "default" 0.0;
1345 part { name: "elm.swallow.content";
1348 description { state: "default" 0.0;
1354 part { name: "background";
1357 clip_to: "elm.background.progressbar";
1358 PROCESS_DESCS("White", "54x54", 54, 54)
1365 program { name: "continue_pulse";
1368 state = get_float(pulse_state);
1369 set_state(PART:"background", "pulse", state);
1373 set_float(pulse_state, state);
1377 program { name: "delay";
1378 action: STATE_SET "pulse" 0.10;
1379 target: "background";
1380 in: PROGRESSING_DELAY 0.0;
1381 after: "continue_pulse";
1383 program { name: "start_pulse";
1384 signal: "elm,state,pulse,start";
1387 set_float(pulse_state, 0.0);
1389 after: "continue_pulse";
1391 program { name: "stop_pulse";
1392 signal: "elm,state,pulse,stop";
1394 action: ACTION_STOP;
1395 target: "continue_pulse";
1397 target: "start_pulse";
1398 after: "init_pulse";
1400 program { name: "init_pulse";
1401 action: STATE_SET "default" 0.0;
1402 target: "background";
1407 group { name: "elm/progressbar/horizontal/list_process_small";
1408 alias: "elm/progressbar/horizontal/process_small";
1409 PROCESS_IMAGES("White", "36x36")
1411 part { name: "access";
1413 description { state: "default" 0.0;
1418 part { name: "elm.background.progressbar";
1423 state: "default" 0.0;
1426 part { name: "elm.swallow.bar";
1430 description { state: "default" 0.0;
1436 part { name: "elm.swallow.content";
1439 description { state: "default" 0.0;
1445 part { name: "background";
1448 clip_to: "elm.background.progressbar";
1450 state: "default" 0.0;
1455 aspect_preference: BOTH;
1457 normal: "White/36x36/00_list_process_01.png";
1462 inherit: "default" 0.0;
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";
1499 program { name: "start_pulse";
1500 signal: "elm,state,pulse,start";
1502 action: STATE_SET "pulse" 0.0;
1503 target: "background";
1504 transition: LINEAR 1.5;
1505 after: "start_pulse";
1507 program { name: "stop_pulse";
1508 signal: "elm,state,pulse,stop";
1510 action: STATE_SET "default" 0.0;
1511 target: "background";
1513 program { name: "init_pulse";
1514 action: STATE_SET "default" 0.0;
1515 target: "background";
1521 // Black progressbar
1522 group { name: "elm/progressbar/horizontal/list_process_black";
1523 alias: "elm/progressbar/horizontal/process_black";
1524 PROCESS_IMAGES("Black", "63x63")
1526 part { name: "access";
1528 description { state: "default" 0.0;
1533 part { name: "elm.background.progressbar";
1538 state: "default" 0.0;
1541 part { name: "elm.swallow.bar";
1545 description { state: "default" 0.0;
1551 part { name: "elm.swallow.content";
1554 description { state: "default" 0.0;
1560 part { name: "background";
1563 clip_to: "elm.background.progressbar";
1564 PROCESS_DESCS("Black", "63x63", 63, 63)
1571 program { name: "continue_pulse";
1574 state = get_float(pulse_state);
1575 set_state(PART:"background", "pulse", state);
1579 set_float(pulse_state, state);
1583 program { name: "delay";
1584 action: STATE_SET "pulse" 0.10;
1585 target: "background";
1586 in: PROGRESSING_DELAY 0.0;
1587 after: "continue_pulse";
1589 program { name: "start_pulse";
1590 signal: "elm,state,pulse,start";
1593 set_float(pulse_state, 0.0);
1595 after: "continue_pulse";
1597 program { name: "stop_pulse";
1598 signal: "elm,state,pulse,stop";
1600 action: ACTION_STOP;
1601 target: "continue_pulse";
1603 target: "start_pulse";
1604 after: "init_pulse";
1606 program { name: "init_pulse";
1607 action: STATE_SET "default" 0.0;
1608 target: "background";
1613 group { name: "elm/progressbar/horizontal/list_process_medium_black";
1614 alias: "elm/progressbar/horizontal/process_medium_black";
1615 PROCESS_IMAGES("Black", "54x54")
1617 part { name: "access";
1619 description { state: "default" 0.0;
1624 part { name: "elm.background.progressbar";
1629 state: "default" 0.0;
1632 part { name: "elm.swallow.bar";
1636 description { state: "default" 0.0;
1642 part { name: "elm.swallow.content";
1645 description { state: "default" 0.0;
1651 part { name: "background";
1654 clip_to: "elm.background.progressbar";
1655 PROCESS_DESCS("Black", "54x54", 54, 54)
1662 program { name: "continue_pulse";
1665 state = get_float(pulse_state);
1666 set_state(PART:"background", "pulse", state);
1670 set_float(pulse_state, state);
1674 program { name: "delay";
1675 action: STATE_SET "pulse" 0.10;
1676 target: "background";
1677 in: PROGRESSING_DELAY 0.0;
1678 after: "continue_pulse";
1680 program { name: "start_pulse";
1681 signal: "elm,state,pulse,start";
1684 set_float(pulse_state, 0.0);
1686 after: "continue_pulse";
1688 program { name: "stop_pulse";
1689 signal: "elm,state,pulse,stop";
1691 action: ACTION_STOP;
1692 target: "continue_pulse";
1694 target: "start_pulse";
1695 after: "init_pulse";
1697 program { name: "init_pulse";
1698 action: STATE_SET "default" 0.0;
1699 target: "background";
1704 group { name: "elm/progressbar/horizontal/list_process_small_black";
1705 alias: "elm/progressbar/horizontal/process_small_black";
1706 PROCESS_IMAGES("Black", "36x36")
1708 part { name: "access";
1710 description { state: "default" 0.0;
1715 part { name: "elm.background.progressbar";
1720 state: "default" 0.0;
1723 part { name: "elm.swallow.bar";
1727 description { state: "default" 0.0;
1733 part { name: "elm.swallow.content";
1736 description { state: "default" 0.0;
1742 part { name: "background";
1745 clip_to: "elm.background.progressbar";
1746 PROCESS_DESCS("Black", "36x36", 36, 36)
1753 program { name: "continue_pulse";
1756 state = get_float(pulse_state);
1757 set_state(PART:"background", "pulse", state);
1761 set_float(pulse_state, state);
1765 program { name: "delay";
1766 action: STATE_SET "pulse" 0.10;
1767 target: "background";
1768 in: PROGRESSING_DELAY 0.0;
1769 after: "continue_pulse";
1771 program { name: "start_pulse";
1772 signal: "elm,state,pulse,start";
1775 set_float(pulse_state, 0.0);
1777 after: "continue_pulse";
1779 program { name: "stop_pulse";
1780 signal: "elm,state,pulse,stop";
1782 action: ACTION_STOP;
1783 target: "continue_pulse";
1785 target: "start_pulse";
1786 after: "init_pulse";
1788 program { name: "init_pulse";
1789 action: STATE_SET "default" 0.0;
1790 target: "background";
1795 #define CIRCLE_PROGRESSING_DELAY 0.03
1796 #define PROGRESS_CIRCLE_TOTAL_STATES 50
1798 #define PROGRESS_CIRCLE_BG_DESC( param_num ) \
1799 description { state: "progress" 0.#param_num; \
1800 inherit: "default" 0.0; \
1802 normal: "00_progress_circle_bg_"#param_num".png"; \
1806 group { name: "elm/progressbar/horizontal/progress_circle";
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;
1861 part { name: "access";
1863 description { state: "default" 0.0;
1868 part { name: "elm.background.progressbar";
1873 state: "default" 0.0;
1876 part { name: "elm.swallow.bar";
1880 description { state: "default" 0.0;
1886 part { name: "elm.swallow.content";
1889 description { state: "default" 0.0;
1895 part { name: "elm.cur.progressbar";
1899 confine: "background";
1903 description { state: "default" 0.0;
1907 rel1.to: "background";
1908 rel2.to: "background";
1911 part { name: "background";
1914 clip_to: "elm.background.progressbar";
1916 state: "default" 0.0;
1917 min: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1918 max: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1920 aspect_preference: BOTH;
1922 normal: "00_progress_circle_bg.png";
1926 part { name: "progress_circle_img";
1929 clip_to: "elm.background.progressbar";
1931 state: "default" 0.0;
1939 aspect_preference: BOTH;
1941 normal: "00_progress_circle_bg.png";
1944 description { state: "progress" 0.0;
1945 inherit: "default" 0.0;
1947 normal: "00_progress_circle_bg.png";
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 )
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.
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.
2020 set_int(circle_zero_cross, 0); // low value to high value, no need for zero state crossing.
2023 program { name: "circle_progress";
2025 new Float:curr, Float:final, Float:max;
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) )
2034 curr = 0.00; // once it crosses Zero state, reset its state.
2035 set_int(circle_zero_cross, 0);
2037 else if( curr > max ) return;
2039 final = get_float(final_state);
2040 zero_cross = get_int(circle_zero_cross);
2041 if( (curr > final) && (zero_cross == 0) )
2043 set_float(prev_state, get_float(curr_state));
2046 set_float(curr_state, curr);
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";
2056 program { name: "circle_start";
2057 signal: "elm,state,pulse,start";
2060 set_float(curr_state, 0.0);
2062 after: "circle_progress";
2064 program { name: "circle_stop";
2065 signal: "elm,state,pulse,stop";
2067 action: ACTION_STOP;
2068 target: "circle_progress";
2070 target: "circle_start";
2072 program { name: "circle_state_change";
2073 signal: "elm,state,change";
2076 progress_circle_state_change()
2078 after: "circle_progress";