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: "elm.progress.progressbar";
1041 clip_to: "elm.background.progressbar";
1043 state: "default" 0.0;
1047 to: "elm.swallow.bar";
1051 to: "elm.swallow.bar";
1056 normal: "00_progress_pending_01_bg.png";
1061 state: "state_begin" 0.0;
1062 inherit: "default" 0.0;
1065 state: "state_end" 0.0;
1066 inherit: "default" 0.0;
1068 normal: "00_progress_pending_02_bg.png";
1075 program { name: "slide_to_end";
1076 action: STATE_SET "state_end" 0.0;
1078 target: "elm.progress.progressbar";
1079 after: "slide_to_begin";
1081 program { name: "slide_to_begin";
1082 signal: "elm,state,slide,begin";
1083 action: STATE_SET "state_begin" 0.0;
1084 target: "elm.progress.progressbar";
1086 after: "slide_to_end";
1088 program { name: "start_pulse";
1089 signal: "elm,state,pulse,start";
1091 after: "slide_to_end";
1093 program { name: "stop_pulse";
1094 signal: "elm,state,pulse,stop";
1096 action: ACTION_STOP;
1097 target: "slide_to_begin";
1098 target: "slide_to_end";
1099 target: "start_pulse";
1100 after: "init_pulse";
1102 program { name: "init_pulse";
1103 action: STATE_SET "default" 0.0;
1104 target: "elm.progress.progressbar";
1109 #define PROCESS_IMAGE(COLOR, SIZE, NUM) \
1110 image: ""COLOR"/"SIZE"/00_list_process_"NUM".png" COMP;
1112 #define PROCESS_IMAGES(COLOR, SIZE) \
1114 PROCESS_IMAGE(COLOR, SIZE, 01) \
1115 PROCESS_IMAGE(COLOR, SIZE, 02) \
1116 PROCESS_IMAGE(COLOR, SIZE, 03) \
1117 PROCESS_IMAGE(COLOR, SIZE, 04) \
1118 PROCESS_IMAGE(COLOR, SIZE, 05) \
1119 PROCESS_IMAGE(COLOR, SIZE, 06) \
1120 PROCESS_IMAGE(COLOR, SIZE, 07) \
1121 PROCESS_IMAGE(COLOR, SIZE, 08) \
1122 PROCESS_IMAGE(COLOR, SIZE, 09) \
1123 PROCESS_IMAGE(COLOR, SIZE, 10) \
1124 PROCESS_IMAGE(COLOR, SIZE, 11) \
1125 PROCESS_IMAGE(COLOR, SIZE, 12) \
1126 PROCESS_IMAGE(COLOR, SIZE, 13) \
1127 PROCESS_IMAGE(COLOR, SIZE, 14) \
1128 PROCESS_IMAGE(COLOR, SIZE, 15) \
1129 PROCESS_IMAGE(COLOR, SIZE, 16) \
1130 PROCESS_IMAGE(COLOR, SIZE, 17) \
1131 PROCESS_IMAGE(COLOR, SIZE, 18) \
1132 PROCESS_IMAGE(COLOR, SIZE, 19) \
1133 PROCESS_IMAGE(COLOR, SIZE, 20) \
1134 PROCESS_IMAGE(COLOR, SIZE, 21) \
1135 PROCESS_IMAGE(COLOR, SIZE, 22) \
1136 PROCESS_IMAGE(COLOR, SIZE, 23) \
1137 PROCESS_IMAGE(COLOR, SIZE, 24) \
1138 PROCESS_IMAGE(COLOR, SIZE, 25) \
1139 PROCESS_IMAGE(COLOR, SIZE, 26) \
1140 PROCESS_IMAGE(COLOR, SIZE, 27) \
1141 PROCESS_IMAGE(COLOR, SIZE, 28) \
1142 PROCESS_IMAGE(COLOR, SIZE, 29) \
1143 PROCESS_IMAGE(COLOR, SIZE, 30) \
1146 #define PROGRESS_DESC(COLOR, SIZE, NUM ) \
1147 description { state: "pulse" 0.#NUM; \
1148 inherit: "default" 0.0; \
1150 normal: ""COLOR"/"SIZE"/00_list_process_"NUM".png"; \
1154 #define PROCESS_DESCS(COLOR, SIZE, WIDTH, HEIGHT) \
1156 state: "default" 0.0; \
1157 min: WIDTH HEIGHT; \
1158 max: WIDTH HEIGHT; \
1160 aspect_preference: BOTH; \
1162 normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
1165 description { state: "pulse" 0.0; \
1166 inherit: "default" 0.0; \
1168 normal: ""COLOR"/"SIZE"/00_list_process_01.png"; \
1171 PROGRESS_DESC(COLOR, SIZE, 01 ) \
1172 PROGRESS_DESC(COLOR, SIZE, 03 ) \
1173 PROGRESS_DESC(COLOR, SIZE, 04 ) \
1174 PROGRESS_DESC(COLOR, SIZE, 05 ) \
1175 PROGRESS_DESC(COLOR, SIZE, 06 ) \
1176 PROGRESS_DESC(COLOR, SIZE, 07 ) \
1177 PROGRESS_DESC(COLOR, SIZE, 08 ) \
1178 PROGRESS_DESC(COLOR, SIZE, 09 ) \
1179 PROGRESS_DESC(COLOR, SIZE, 10 ) \
1180 PROGRESS_DESC(COLOR, SIZE, 11 ) \
1181 PROGRESS_DESC(COLOR, SIZE, 12 ) \
1182 PROGRESS_DESC(COLOR, SIZE, 13 ) \
1183 PROGRESS_DESC(COLOR, SIZE, 14 ) \
1184 PROGRESS_DESC(COLOR, SIZE, 15 ) \
1185 PROGRESS_DESC(COLOR, SIZE, 16 ) \
1186 PROGRESS_DESC(COLOR, SIZE, 17 ) \
1187 PROGRESS_DESC(COLOR, SIZE, 18 ) \
1188 PROGRESS_DESC(COLOR, SIZE, 19 ) \
1189 PROGRESS_DESC(COLOR, SIZE, 20 ) \
1190 PROGRESS_DESC(COLOR, SIZE, 21 ) \
1191 PROGRESS_DESC(COLOR, SIZE, 22 ) \
1192 PROGRESS_DESC(COLOR, SIZE, 23 ) \
1193 PROGRESS_DESC(COLOR, SIZE, 24 ) \
1194 PROGRESS_DESC(COLOR, SIZE, 25 ) \
1195 PROGRESS_DESC(COLOR, SIZE, 26 ) \
1196 PROGRESS_DESC(COLOR, SIZE, 27 ) \
1197 PROGRESS_DESC(COLOR, SIZE, 28 ) \
1198 PROGRESS_DESC(COLOR, SIZE, 29 ) \
1199 PROGRESS_DESC(COLOR, SIZE, 30 )
1201 #define PROGRESSING_DELAY 0.07
1203 group { name: "elm/progressbar/horizontal/list_process";
1204 alias: "elm/progressbar/horizontal/process";
1205 PROCESS_IMAGES("White", "63x63")
1207 part { name: "access";
1209 description { state: "default" 0.0;
1214 part { name: "elm.background.progressbar";
1219 state: "default" 0.0;
1222 part { name: "elm.swallow.bar";
1226 description { state: "default" 0.0;
1232 part { name: "elm.swallow.content";
1235 description { state: "default" 0.0;
1241 part { name: "background";
1244 clip_to: "elm.background.progressbar";
1245 PROCESS_DESCS("White", "63x63", 63, 63)
1252 program { name: "continue_pulse";
1255 state = get_float(pulse_state);
1256 set_state(PART:"background", "pulse", state);
1260 set_float(pulse_state, state);
1264 program { name: "delay";
1265 action: STATE_SET "pulse" 0.10;
1266 target: "background";
1267 in: PROGRESSING_DELAY 0.0;
1268 after: "continue_pulse";
1270 program { name: "start_pulse";
1271 signal: "elm,state,pulse,start";
1274 set_float(pulse_state, 0.0);
1276 after: "continue_pulse";
1278 program { name: "stop_pulse";
1279 signal: "elm,state,pulse,stop";
1281 action: ACTION_STOP;
1282 target: "continue_pulse";
1284 target: "start_pulse";
1285 after: "init_pulse";
1287 program { name: "init_pulse";
1288 action: STATE_SET "default" 0.0;
1289 target: "background";
1294 group { name: "elm/progressbar/horizontal/process_medium";
1295 PROCESS_IMAGES("White", "54x54")
1297 part { name: "access";
1299 description { state: "default" 0.0;
1304 part { name: "elm.background.progressbar";
1309 state: "default" 0.0;
1312 part { name: "elm.swallow.bar";
1316 description { state: "default" 0.0;
1322 part { name: "elm.swallow.content";
1325 description { state: "default" 0.0;
1331 part { name: "background";
1334 clip_to: "elm.background.progressbar";
1335 PROCESS_DESCS("White", "54x54", 54, 54)
1342 program { name: "continue_pulse";
1345 state = get_float(pulse_state);
1346 set_state(PART:"background", "pulse", state);
1350 set_float(pulse_state, state);
1354 program { name: "delay";
1355 action: STATE_SET "pulse" 0.10;
1356 target: "background";
1357 in: PROGRESSING_DELAY 0.0;
1358 after: "continue_pulse";
1360 program { name: "start_pulse";
1361 signal: "elm,state,pulse,start";
1364 set_float(pulse_state, 0.0);
1366 after: "continue_pulse";
1368 program { name: "stop_pulse";
1369 signal: "elm,state,pulse,stop";
1371 action: ACTION_STOP;
1372 target: "continue_pulse";
1374 target: "start_pulse";
1375 after: "init_pulse";
1377 program { name: "init_pulse";
1378 action: STATE_SET "default" 0.0;
1379 target: "background";
1384 group { name: "elm/progressbar/horizontal/list_process_small";
1385 alias: "elm/progressbar/horizontal/process_small";
1386 PROCESS_IMAGES("White", "36x36")
1388 part { name: "access";
1390 description { state: "default" 0.0;
1395 part { name: "elm.background.progressbar";
1400 state: "default" 0.0;
1403 part { name: "elm.swallow.bar";
1407 description { state: "default" 0.0;
1413 part { name: "elm.swallow.content";
1416 description { state: "default" 0.0;
1422 part { name: "background";
1425 clip_to: "elm.background.progressbar";
1426 PROCESS_DESCS("White", "36x36", 36, 36)
1433 program { name: "continue_pulse";
1436 state = get_float(pulse_state);
1437 set_state(PART:"background", "pulse", state);
1441 set_float(pulse_state, state);
1445 program { name: "delay";
1446 action: STATE_SET "pulse" 0.10;
1447 target: "background";
1448 in: PROGRESSING_DELAY 0.0;
1449 after: "continue_pulse";
1451 program { name: "start_pulse";
1452 signal: "elm,state,pulse,start";
1455 set_float(pulse_state, 0.0);
1457 after: "continue_pulse";
1459 program { name: "stop_pulse";
1460 signal: "elm,state,pulse,stop";
1462 action: ACTION_STOP;
1463 target: "continue_pulse";
1465 target: "start_pulse";
1466 after: "init_pulse";
1468 program { name: "init_pulse";
1469 action: STATE_SET "default" 0.0;
1470 target: "background";
1475 // Black progressbar
1476 group { name: "elm/progressbar/horizontal/list_process_black";
1477 alias: "elm/progressbar/horizontal/process_black";
1478 PROCESS_IMAGES("Black", "63x63")
1480 part { name: "access";
1482 description { state: "default" 0.0;
1487 part { name: "elm.background.progressbar";
1492 state: "default" 0.0;
1495 part { name: "elm.swallow.bar";
1499 description { state: "default" 0.0;
1505 part { name: "elm.swallow.content";
1508 description { state: "default" 0.0;
1514 part { name: "background";
1517 clip_to: "elm.background.progressbar";
1518 PROCESS_DESCS("Black", "63x63", 63, 63)
1525 program { name: "continue_pulse";
1528 state = get_float(pulse_state);
1529 set_state(PART:"background", "pulse", state);
1533 set_float(pulse_state, state);
1537 program { name: "delay";
1538 action: STATE_SET "pulse" 0.10;
1539 target: "background";
1540 in: PROGRESSING_DELAY 0.0;
1541 after: "continue_pulse";
1543 program { name: "start_pulse";
1544 signal: "elm,state,pulse,start";
1547 set_float(pulse_state, 0.0);
1549 after: "continue_pulse";
1551 program { name: "stop_pulse";
1552 signal: "elm,state,pulse,stop";
1554 action: ACTION_STOP;
1555 target: "continue_pulse";
1557 target: "start_pulse";
1558 after: "init_pulse";
1560 program { name: "init_pulse";
1561 action: STATE_SET "default" 0.0;
1562 target: "background";
1567 group { name: "elm/progressbar/horizontal/process_medium_black";
1568 PROCESS_IMAGES("Black", "54x54")
1570 part { name: "access";
1572 description { state: "default" 0.0;
1577 part { name: "elm.background.progressbar";
1582 state: "default" 0.0;
1585 part { name: "elm.swallow.bar";
1589 description { state: "default" 0.0;
1595 part { name: "elm.swallow.content";
1598 description { state: "default" 0.0;
1604 part { name: "background";
1607 clip_to: "elm.background.progressbar";
1608 PROCESS_DESCS("Black", "54x54", 54, 54)
1615 program { name: "continue_pulse";
1618 state = get_float(pulse_state);
1619 set_state(PART:"background", "pulse", state);
1623 set_float(pulse_state, state);
1627 program { name: "delay";
1628 action: STATE_SET "pulse" 0.10;
1629 target: "background";
1630 in: PROGRESSING_DELAY 0.0;
1631 after: "continue_pulse";
1633 program { name: "start_pulse";
1634 signal: "elm,state,pulse,start";
1637 set_float(pulse_state, 0.0);
1639 after: "continue_pulse";
1641 program { name: "stop_pulse";
1642 signal: "elm,state,pulse,stop";
1644 action: ACTION_STOP;
1645 target: "continue_pulse";
1647 target: "start_pulse";
1648 after: "init_pulse";
1650 program { name: "init_pulse";
1651 action: STATE_SET "default" 0.0;
1652 target: "background";
1657 group { name: "elm/progressbar/horizontal/list_process_small_black";
1658 alias: "elm/progressbar/horizontal/process_small_black";
1659 PROCESS_IMAGES("Black", "36x36")
1661 part { name: "access";
1663 description { state: "default" 0.0;
1668 part { name: "elm.background.progressbar";
1673 state: "default" 0.0;
1676 part { name: "elm.swallow.bar";
1680 description { state: "default" 0.0;
1686 part { name: "elm.swallow.content";
1689 description { state: "default" 0.0;
1695 part { name: "background";
1698 clip_to: "elm.background.progressbar";
1699 PROCESS_DESCS("Black", "36x36", 36, 36)
1706 program { name: "continue_pulse";
1709 state = get_float(pulse_state);
1710 set_state(PART:"background", "pulse", state);
1714 set_float(pulse_state, state);
1718 program { name: "delay";
1719 action: STATE_SET "pulse" 0.10;
1720 target: "background";
1721 in: PROGRESSING_DELAY 0.0;
1722 after: "continue_pulse";
1724 program { name: "start_pulse";
1725 signal: "elm,state,pulse,start";
1728 set_float(pulse_state, 0.0);
1730 after: "continue_pulse";
1732 program { name: "stop_pulse";
1733 signal: "elm,state,pulse,stop";
1735 action: ACTION_STOP;
1736 target: "continue_pulse";
1738 target: "start_pulse";
1739 after: "init_pulse";
1741 program { name: "init_pulse";
1742 action: STATE_SET "default" 0.0;
1743 target: "background";
1748 #define CIRCLE_PROGRESSING_DELAY 0.03
1749 #define PROGRESS_CIRCLE_TOTAL_STATES 50
1751 #define PROGRESS_CIRCLE_BG_DESC( param_num ) \
1752 description { state: "progress" 0.#param_num; \
1753 inherit: "default" 0.0; \
1755 normal: "00_progress_circle_bg_"#param_num".png"; \
1759 group { name: "elm/progressbar/horizontal/progress_circle";
1761 image: "00_progress_circle_bg.png" COMP;
1762 image: "00_progress_circle_bg_01.png" COMP;
1763 image: "00_progress_circle_bg_02.png" COMP;
1764 image: "00_progress_circle_bg_03.png" COMP;
1765 image: "00_progress_circle_bg_04.png" COMP;
1766 image: "00_progress_circle_bg_05.png" COMP;
1767 image: "00_progress_circle_bg_06.png" COMP;
1768 image: "00_progress_circle_bg_07.png" COMP;
1769 image: "00_progress_circle_bg_08.png" COMP;
1770 image: "00_progress_circle_bg_09.png" COMP;
1771 image: "00_progress_circle_bg_10.png" COMP;
1772 image: "00_progress_circle_bg_11.png" COMP;
1773 image: "00_progress_circle_bg_12.png" COMP;
1774 image: "00_progress_circle_bg_13.png" COMP;
1775 image: "00_progress_circle_bg_14.png" COMP;
1776 image: "00_progress_circle_bg_15.png" COMP;
1777 image: "00_progress_circle_bg_16.png" COMP;
1778 image: "00_progress_circle_bg_17.png" COMP;
1779 image: "00_progress_circle_bg_18.png" COMP;
1780 image: "00_progress_circle_bg_19.png" COMP;
1781 image: "00_progress_circle_bg_20.png" COMP;
1782 image: "00_progress_circle_bg_21.png" COMP;
1783 image: "00_progress_circle_bg_22.png" COMP;
1784 image: "00_progress_circle_bg_23.png" COMP;
1785 image: "00_progress_circle_bg_24.png" COMP;
1786 image: "00_progress_circle_bg_25.png" COMP;
1787 image: "00_progress_circle_bg_26.png" COMP;
1788 image: "00_progress_circle_bg_27.png" COMP;
1789 image: "00_progress_circle_bg_28.png" COMP;
1790 image: "00_progress_circle_bg_29.png" COMP;
1791 image: "00_progress_circle_bg_30.png" COMP;
1792 image: "00_progress_circle_bg_31.png" COMP;
1793 image: "00_progress_circle_bg_32.png" COMP;
1794 image: "00_progress_circle_bg_33.png" COMP;
1795 image: "00_progress_circle_bg_34.png" COMP;
1796 image: "00_progress_circle_bg_35.png" COMP;
1797 image: "00_progress_circle_bg_36.png" COMP;
1798 image: "00_progress_circle_bg_37.png" COMP;
1799 image: "00_progress_circle_bg_38.png" COMP;
1800 image: "00_progress_circle_bg_39.png" COMP;
1801 image: "00_progress_circle_bg_40.png" COMP;
1802 image: "00_progress_circle_bg_41.png" COMP;
1803 image: "00_progress_circle_bg_42.png" COMP;
1804 image: "00_progress_circle_bg_43.png" COMP;
1805 image: "00_progress_circle_bg_44.png" COMP;
1806 image: "00_progress_circle_bg_45.png" COMP;
1807 image: "00_progress_circle_bg_46.png" COMP;
1808 image: "00_progress_circle_bg_47.png" COMP;
1809 image: "00_progress_circle_bg_48.png" COMP;
1810 image: "00_progress_circle_bg_49.png" COMP;
1811 image: "00_progress_circle_bg_50.png" COMP;
1814 part { name: "access";
1816 description { state: "default" 0.0;
1821 part { name: "elm.background.progressbar";
1826 state: "default" 0.0;
1829 part { name: "elm.swallow.bar";
1833 description { state: "default" 0.0;
1839 part { name: "elm.swallow.content";
1842 description { state: "default" 0.0;
1848 part { name: "elm.cur.progressbar";
1852 confine: "background";
1856 description { state: "default" 0.0;
1860 rel1.to: "background";
1861 rel2.to: "background";
1864 part { name: "background";
1867 clip_to: "elm.background.progressbar";
1869 state: "default" 0.0;
1870 min: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1871 max: PROGRESSBAR_PROGRESS_CIRCLE_BG_SIZE_INC;
1873 aspect_preference: BOTH;
1875 normal: "00_progress_circle_bg.png";
1879 part { name: "progress_circle_img";
1882 clip_to: "elm.background.progressbar";
1884 state: "default" 0.0;
1892 aspect_preference: BOTH;
1894 normal: "00_progress_circle_bg.png";
1897 description { state: "progress" 0.0;
1898 inherit: "default" 0.0;
1900 normal: "00_progress_circle_bg.png";
1903 PROGRESS_CIRCLE_BG_DESC( 01 )
1904 PROGRESS_CIRCLE_BG_DESC( 02 )
1905 PROGRESS_CIRCLE_BG_DESC( 03 )
1906 PROGRESS_CIRCLE_BG_DESC( 04 )
1907 PROGRESS_CIRCLE_BG_DESC( 05 )
1908 PROGRESS_CIRCLE_BG_DESC( 06 )
1909 PROGRESS_CIRCLE_BG_DESC( 07 )
1910 PROGRESS_CIRCLE_BG_DESC( 08 )
1911 PROGRESS_CIRCLE_BG_DESC( 09 )
1912 PROGRESS_CIRCLE_BG_DESC( 10 )
1913 PROGRESS_CIRCLE_BG_DESC( 11 )
1914 PROGRESS_CIRCLE_BG_DESC( 12 )
1915 PROGRESS_CIRCLE_BG_DESC( 13 )
1916 PROGRESS_CIRCLE_BG_DESC( 14 )
1917 PROGRESS_CIRCLE_BG_DESC( 15 )
1918 PROGRESS_CIRCLE_BG_DESC( 16 )
1919 PROGRESS_CIRCLE_BG_DESC( 17 )
1920 PROGRESS_CIRCLE_BG_DESC( 18 )
1921 PROGRESS_CIRCLE_BG_DESC( 19 )
1922 PROGRESS_CIRCLE_BG_DESC( 20 )
1923 PROGRESS_CIRCLE_BG_DESC( 21 )
1924 PROGRESS_CIRCLE_BG_DESC( 22 )
1925 PROGRESS_CIRCLE_BG_DESC( 23 )
1926 PROGRESS_CIRCLE_BG_DESC( 24 )
1927 PROGRESS_CIRCLE_BG_DESC( 25 )
1928 PROGRESS_CIRCLE_BG_DESC( 26 )
1929 PROGRESS_CIRCLE_BG_DESC( 27 )
1930 PROGRESS_CIRCLE_BG_DESC( 28 )
1931 PROGRESS_CIRCLE_BG_DESC( 29 )
1932 PROGRESS_CIRCLE_BG_DESC( 30 )
1933 PROGRESS_CIRCLE_BG_DESC( 31 )
1934 PROGRESS_CIRCLE_BG_DESC( 32 )
1935 PROGRESS_CIRCLE_BG_DESC( 33 )
1936 PROGRESS_CIRCLE_BG_DESC( 34 )
1937 PROGRESS_CIRCLE_BG_DESC( 35 )
1938 PROGRESS_CIRCLE_BG_DESC( 36 )
1939 PROGRESS_CIRCLE_BG_DESC( 37 )
1940 PROGRESS_CIRCLE_BG_DESC( 38 )
1941 PROGRESS_CIRCLE_BG_DESC( 39 )
1942 PROGRESS_CIRCLE_BG_DESC( 40 )
1943 PROGRESS_CIRCLE_BG_DESC( 41 )
1944 PROGRESS_CIRCLE_BG_DESC( 42 )
1945 PROGRESS_CIRCLE_BG_DESC( 43 )
1946 PROGRESS_CIRCLE_BG_DESC( 44 )
1947 PROGRESS_CIRCLE_BG_DESC( 45 )
1948 PROGRESS_CIRCLE_BG_DESC( 46 )
1949 PROGRESS_CIRCLE_BG_DESC( 47 )
1950 PROGRESS_CIRCLE_BG_DESC( 48 )
1951 PROGRESS_CIRCLE_BG_DESC( 49 )
1952 PROGRESS_CIRCLE_BG_DESC( 50 )
1957 public curr_state = 0;
1958 public final_state = 0;
1959 public prev_state = 0;
1960 public max_state = 0; // maximum possible state, a normalized value
1961 public circle_zero_cross = 0; // whether circle crosses its Zero state or not.
1963 public progress_circle_state_change(){
1964 new Float:x, Float:y, Float:final, Float:max;
1965 max = PROGRESS_CIRCLE_TOTAL_STATES / 100.0;
1966 set_float(max_state, max);
1967 get_drag(PART:"elm.cur.progressbar", x, y);
1968 final = x * max; // calculate final state as per the set drag value
1969 set_float(final_state, final);
1970 if( final < get_float(prev_state) )
1971 set_int(circle_zero_cross, 1); // high value to low value, crosses zero state.
1973 set_int(circle_zero_cross, 0); // low value to high value, no need for zero state crossing.
1976 program { name: "circle_progress";
1978 new Float:curr, Float:final, Float:max;
1980 zero_cross = get_int(circle_zero_cross);
1981 max = get_float(max_state);
1982 curr = get_float(curr_state);
1983 set_state(PART:"progress_circle_img", "progress", curr);
1984 curr += 0.01; // for next immediate state.
1985 if( (curr > max) && (zero_cross == 1) )
1987 curr = 0.00; // once it crosses Zero state, reset its state.
1988 set_int(circle_zero_cross, 0);
1990 else if( curr > max ) return;
1992 final = get_float(final_state);
1993 zero_cross = get_int(circle_zero_cross);
1994 if( (curr > final) && (zero_cross == 0) )
1996 set_float(prev_state, get_float(curr_state));
1999 set_float(curr_state, curr);
2003 program { name: "delay";
2004 action: STATE_SET "progress" 0.10;
2005 target: "progress_circle_img";
2006 in: CIRCLE_PROGRESSING_DELAY 0.0;
2007 after: "circle_progress";
2009 program { name: "circle_start";
2010 signal: "elm,state,pulse,start";
2013 set_float(curr_state, 0.0);
2015 after: "circle_progress";
2017 program { name: "circle_stop";
2018 signal: "elm,state,pulse,stop";
2020 action: ACTION_STOP;
2021 target: "circle_progress";
2023 target: "circle_start";
2025 program { name: "circle_state_change";
2026 signal: "elm,state,change";
2029 progress_circle_state_change()
2031 after: "circle_progress";