2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "browser-macro.edc"
21 group { name: "elm/progressbar/horizontal/browser/loading";
23 image: "browser-view-images/progressbar/00_search_input_field_bg_progress.png" COMP;
24 image: "browser-view-images/progressbar/progressbar.png" COMP;
27 part { name: "elm.padding.left";
46 part { name: "elm.padding.right";
65 part { name: "elm.background.progressbar";
72 to_x: "elm.padding.left";
77 to_x: "elm.padding.right";
83 part { name: "elm.swallow.bar";
92 to: "elm.background.progressbar";
96 to: "elm.background.progressbar";
101 part { name: "elm.swallow.content";
104 description { state: "default" 0.0;
109 to_y: "elm.background.progressbar";
114 to_y: "elm.background.progressbar";
117 description { state: "visible" 0.0;
118 inherit: "default" 0.0;
121 aspect_preference: VERTICAL;
125 part { name: "elm.text";
129 description { state: "default" 0.0;
133 rel1.to_x: "elm.swallow.content";
134 rel1.relative: 1.0 0.0;
136 rel2.to_x: "elm.swallow.content";
137 rel2.relative: 1.0 1.0;
141 font: "SLP:style=Medium";
147 description { state: "visible" 0.0;
148 inherit: "default" 0.0;
156 part { name: "background";
159 clip_to: "elm.background.progressbar";
161 state: "default" 0.0;
163 to: "elm.swallow.bar";
167 to: "elm.swallow.bar";
174 part { name: "elm.text.status";
178 description { state: "default" 0.0;
190 font: "SLP:style=Medium";
197 description { state: "show" 0.0;
198 inherit: "default" 0.0;
204 part { name: "elm.progress.progressbar";
207 clip_to: "elm.background.progressbar";
209 state: "default" 0.0;
213 to: "elm.swallow.bar";
217 to_y: "elm.swallow.bar";
218 to_x: "elm.cur.progressbar";
222 normal: "browser-view-images/progressbar/progressbar.png";
228 inherit: "default" 0.0;
230 to_y: "elm.swallow.bar";
231 to_x: "elm.cur.progressbar";
234 to: "elm.swallow.bar";
239 state: "state_begin" 0.0;
240 inherit: "default" 0.0;
242 to: "elm.swallow.bar";
246 to: "elm.swallow.bar";
251 state: "state_end" 0.0;
252 inherit: "default" 0.0;
254 to: "elm.swallow.bar";
258 to: "elm.swallow.bar";
263 part { name: "text-bar";
267 clip_to: "progress-rect";
270 description { state: "default" 0.0;
274 rel1.to: "elm.text.status";
276 rel2.to: "elm.text.status";
278 text_source: "elm.text.status";
279 font: "SLP:style=Medium";
284 color: 224 224 224 255;
287 description { state: "show" 0.0;
288 inherit: "default" 0.0;
293 part { name: "elm.cur.progressbar";
297 confine: "background";
301 description { state: "default" 0.0;
309 rel2.to: "background";
312 part { name: "progress-rect";
317 state: "default" 0.0;
318 rel1.to: "elm.progress.progressbar";
319 rel2.to: "elm.progress.progressbar";
324 program { name: "label_show";
325 signal: "elm,state,text,visible";
327 action: STATE_SET "visible" 0.0;
330 program { name: "label_hide";
331 signal: "elm,state,text,hidden";
333 action: STATE_SET "default" 0.0;
336 program { name: "icon_show";
337 signal: "elm,state,icon,visible";
339 action: STATE_SET "visible" 0.0;
340 target: "elm.swallow.content";
342 program { name: "icon_hide";
343 signal: "elm,state,icon,hidden";
345 action: STATE_SET "default" 0.0;
346 target: "elm.swallow.content";
348 program { name: "units_show";
349 signal: "elm,state,units,visible";
351 action: STATE_SET "show" 0.0;
353 target: "elm.text.status";
355 program { name: "units_hide";
356 signal: "elm,state,units,hidden";
358 action: STATE_SET "default" 0.0;
360 target: "elm.text.status";
362 program { name: "slide_to_end";
363 action: STATE_SET "state_end" 0.0;
364 transition: LINEAR 0.5;
365 target: "elm.progress.progressbar";
366 after: "slide_to_begin";
368 program { name: "slide_to_begin";
369 signal: "elm,state,slide,begin";
370 action: STATE_SET "state_begin" 0.0;
371 target: "elm.progress.progressbar";
372 transition: LINEAR 0.5;
373 after: "slide_to_end";
375 program { name: "start_pulse";
376 signal: "elm,state,pulse,start";
378 after: "slide_to_end";
380 program { name: "stop_pulse";
381 signal: "elm,state,pulse,stop";
384 target: "slide_to_begin";
385 target: "slide_to_end";
386 target: "start_pulse";
387 after: "state_pulse";
389 program { name: "state_pulse";
390 signal: "elm,state,pulse";
392 action: STATE_SET "state_begin" 0.0;
393 target: "elm.progress.progressbar";
396 program { name: "state_fraction";
397 signal: "elm,state,fraction";
400 target: "slide_to_begin";
401 target: "slide_to_end";
402 target: "start_pulse";
403 action: STATE_SET "default" 0.0;
404 target: "elm.progress.progressbar";
406 program { name: "set_invert_on";
407 signal: "elm,state,inverted,on";
409 action: STATE_SET "invert" 0.0;
410 target: "elm.progress.progressbar";
412 program { name: "set_invert_off";
413 signal: "elm,state,inverted,off";
415 action: STATE_SET "default" 0.0;
416 target: "elm.progress.progressbar";
421 /* The cpu consumption depends on the time delay of progress bar */
422 #define PROGRESSING_DELAY 0.14
423 group { name: "elm/progressbar/horizontal/browser/loading_wheel";
425 image: "browser-view-images/progressbar/processing_ani00.png" COMP;
426 image: "browser-view-images/progressbar/processing_ani01.png" COMP;
427 image: "browser-view-images/progressbar/processing_ani02.png" COMP;
428 image: "browser-view-images/progressbar/processing_ani03.png" COMP;
429 image: "browser-view-images/progressbar/processing_ani04.png" COMP;
430 image: "browser-view-images/progressbar/processing_ani05.png" COMP;
431 image: "browser-view-images/progressbar/processing_ani06.png" COMP;
432 image: "browser-view-images/progressbar/processing_ani07.png" COMP;
435 part { name: "elm.background.progressbar";
440 state: "default" 0.0;
443 part { name: "elm.swallow.bar";
447 description { state: "default" 0.0;
453 part { name: "elm.swallow.content";
456 description { state: "default" 0.0;
462 part { name: "background";
465 clip_to: "elm.background.progressbar";
467 state: "default" 0.0;
472 aspect_preference: BOTH;
474 normal: "browser-view-images/progressbar/processing_ani00.png";
477 description { state: "pulse" 0.0;
478 inherit: "default" 0.0;
480 normal: "browser-view-images/progressbar/processing_ani00.png";
483 description { state: "pulse" 0.01;
484 inherit: "default" 0.0;
486 normal: "browser-view-images/progressbar/processing_ani01.png";
489 description { state: "pulse" 0.02;
490 inherit: "default" 0.0;
492 normal: "browser-view-images/progressbar/processing_ani02.png";
495 description { state: "pulse" 0.03;
496 inherit: "default" 0.0;
498 normal: "browser-view-images/progressbar/processing_ani03.png";
501 description { state: "pulse" 0.04;
502 inherit: "default" 0.0;
504 normal: "browser-view-images/progressbar/processing_ani04.png";
507 description { state: "pulse" 0.05;
508 inherit: "default" 0.0;
510 normal: "browser-view-images/progressbar/processing_ani05.png";
513 description { state: "pulse" 0.06;
514 inherit: "default" 0.0;
516 normal: "browser-view-images/progressbar/processing_ani06.png";
519 description { state: "pulse" 0.07;
520 inherit: "default" 0.0;
522 normal: "browser-view-images/progressbar/processing_ani07.png";
531 program { name: "continue_pulse";
534 state = get_float(pulse_state);
535 set_state(PART:"background", "pulse", state);
539 set_float(pulse_state, state);
543 program { name: "delay";
544 action: STATE_SET "pulse" 0.10;
545 target: "background";
546 in: PROGRESSING_DELAY 0.0;
547 after: "continue_pulse";
549 program { name: "start_pulse";
550 signal: "elm,state,pulse,start";
553 set_float(pulse_state, 0.0);
555 after: "continue_pulse";
557 program { name: "stop_pulse";
558 signal: "elm,state,pulse,stop";
561 target: "continue_pulse";
563 target: "start_pulse";
566 program { name: "init_pulse";
567 action: STATE_SET "default" 0.0;
568 target: "background";