diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/bin/edje_inspector.c | 202 |
1 files changed, 101 insertions, 101 deletions
diff --git a/libraries/edje/src/bin/edje_inspector.c b/libraries/edje/src/bin/edje_inspector.c index ed3baaf..093de86 100644 --- a/libraries/edje/src/bin/edje_inspector.c +++ b/libraries/edje/src/bin/edje_inspector.c | |||
@@ -263,20 +263,20 @@ border_fill_name_get(int id) | |||
263 | } | 263 | } |
264 | 264 | ||
265 | static void | 265 | static void |
266 | state_details(Evas_Object *ed, const char *part, const char *state, double value) | 266 | state_details(Evas_Object *ed, const char *ppart, const char *state, double value) |
267 | { | 267 | { |
268 | Edje_Part_Type t = edje_edit_part_type_get(ed, part); | 268 | Edje_Part_Type t = edje_edit_part_type_get(ed, ppart); |
269 | double dx, dy; | 269 | double dx, dy; |
270 | const char *str, *str2; | 270 | const char *str, *str2; |
271 | int x, y, r, g, b, a; | 271 | int x, y, r, g, b, a; |
272 | 272 | ||
273 | if (detail < 1) return; | 273 | if (detail < 1) return; |
274 | 274 | ||
275 | b = edje_edit_state_visible_get(ed, part, state, value); | 275 | b = edje_edit_state_visible_get(ed, ppart, state, value); |
276 | if (machine) printf("VISIBLE: %d\n", b); | 276 | if (machine) printf("VISIBLE: %d\n", b); |
277 | else if (!b) puts(INDENT4 "visible: 0;"); | 277 | else if (!b) puts(INDENT4 "visible: 0;"); |
278 | 278 | ||
279 | edje_edit_state_color_get(ed, part, state, value, &r, &g, &b, &a); | 279 | edje_edit_state_color_get(ed, ppart, state, value, &r, &g, &b, &a); |
280 | if (machine) | 280 | if (machine) |
281 | printf("COLOR-R: %d\nCOLOR-G: %d\nCOLOR-B: %d\nCOLOR-A: %d\n", r, g, b, a); | 281 | printf("COLOR-R: %d\nCOLOR-G: %d\nCOLOR-B: %d\nCOLOR-A: %d\n", r, g, b, a); |
282 | else if ((r != 255) || (g != 255) || (b != 255) || (a != 255)) | 282 | else if ((r != 255) || (g != 255) || (b != 255) || (a != 255)) |
@@ -284,14 +284,14 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
284 | 284 | ||
285 | if (detail > 1) | 285 | if (detail > 1) |
286 | { | 286 | { |
287 | edje_edit_state_color2_get(ed, part, state, value, &r, &g, &b, &a); | 287 | edje_edit_state_color2_get(ed, ppart, state, value, &r, &g, &b, &a); |
288 | if (machine) | 288 | if (machine) |
289 | printf("COLOR2-R: %d\nCOLOR2-G: %d\nCOLOR2-B: %d\nCOLOR2-A: %d\n", | 289 | printf("COLOR2-R: %d\nCOLOR2-G: %d\nCOLOR2-B: %d\nCOLOR2-A: %d\n", |
290 | r, g, b, a); | 290 | r, g, b, a); |
291 | else if ((r != 255) || (g != 255) || (b != 255) || (a != 255)) | 291 | else if ((r != 255) || (g != 255) || (b != 255) || (a != 255)) |
292 | printf(INDENT4 "color2: %d %d %d %d;\n", r, g, b, a); | 292 | printf(INDENT4 "color2: %d %d %d %d;\n", r, g, b, a); |
293 | 293 | ||
294 | edje_edit_state_color3_get(ed, part, state, value, &r, &g, &b, &a); | 294 | edje_edit_state_color3_get(ed, ppart, state, value, &r, &g, &b, &a); |
295 | if (machine) | 295 | if (machine) |
296 | printf("COLOR3-R: %d\nCOLOR3-G: %d\nCOLOR3-B: %d\nCOLOR3-A: %d\n", | 296 | printf("COLOR3-R: %d\nCOLOR3-G: %d\nCOLOR3-B: %d\nCOLOR3-A: %d\n", |
297 | r, g, b, a); | 297 | r, g, b, a); |
@@ -299,19 +299,19 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
299 | printf(INDENT4 "color3: %d %d %d %d;\n", r, g, b, a); | 299 | printf(INDENT4 "color3: %d %d %d %d;\n", r, g, b, a); |
300 | } | 300 | } |
301 | 301 | ||
302 | dx = edje_edit_state_align_x_get(ed, part, state, value); | 302 | dx = edje_edit_state_align_x_get(ed, ppart, state, value); |
303 | dy = edje_edit_state_align_y_get(ed, part, state, value); | 303 | dy = edje_edit_state_align_y_get(ed, ppart, state, value); |
304 | if (machine) printf("ALIGN-X: %g\nALIGN-Y: %g\n", dx, dy); | 304 | if (machine) printf("ALIGN-X: %g\nALIGN-Y: %g\n", dx, dy); |
305 | else if (FDIFF(dx, 0.5) || FDIFF(dy, 0.5)) | 305 | else if (FDIFF(dx, 0.5) || FDIFF(dy, 0.5)) |
306 | printf(INDENT4 "align: %g %g;\n", dx, dy); | 306 | printf(INDENT4 "align: %g %g;\n", dx, dy); |
307 | 307 | ||
308 | x = edje_edit_state_min_w_get(ed, part, state, value); | 308 | x = edje_edit_state_min_w_get(ed, ppart, state, value); |
309 | y = edje_edit_state_min_h_get(ed, part, state, value); | 309 | y = edje_edit_state_min_h_get(ed, ppart, state, value); |
310 | if (machine) printf("MIN-W: %d\nMIN-H: %d\n", x, y); | 310 | if (machine) printf("MIN-W: %d\nMIN-H: %d\n", x, y); |
311 | else if ((x) || (y)) printf(INDENT4 "min: %d %d;\n", x, y); | 311 | else if ((x) || (y)) printf(INDENT4 "min: %d %d;\n", x, y); |
312 | 312 | ||
313 | x = edje_edit_state_max_w_get(ed, part, state, value); | 313 | x = edje_edit_state_max_w_get(ed, ppart, state, value); |
314 | y = edje_edit_state_max_h_get(ed, part, state, value); | 314 | y = edje_edit_state_max_h_get(ed, ppart, state, value); |
315 | if (machine) printf("MAX-W: %d\nMAX-H: %d\n", x, y); | 315 | if (machine) printf("MAX-W: %d\nMAX-H: %d\n", x, y); |
316 | else if ((x != -1) || (y != -1)) printf(INDENT4 "max: %d %d;\n", x, y); | 316 | else if ((x != -1) || (y != -1)) printf(INDENT4 "max: %d %d;\n", x, y); |
317 | 317 | ||
@@ -320,30 +320,30 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
320 | 320 | ||
321 | if (detail > 1) | 321 | if (detail > 1) |
322 | { | 322 | { |
323 | dx = edje_edit_state_aspect_min_get(ed, part, state, value); | 323 | dx = edje_edit_state_aspect_min_get(ed, ppart, state, value); |
324 | dy = edje_edit_state_aspect_max_get(ed, part, state, value); | 324 | dy = edje_edit_state_aspect_max_get(ed, ppart, state, value); |
325 | if (machine) printf("ASPECT-MIN: %g\nASPECT-MAX: %g\n", dx, dy); | 325 | if (machine) printf("ASPECT-MIN: %g\nASPECT-MAX: %g\n", dx, dy); |
326 | else if (FDIFF(dx, 0.0) || FDIFF(dy, 0.0)) | 326 | else if (FDIFF(dx, 0.0) || FDIFF(dy, 0.0)) |
327 | printf(INDENT4 "aspect: %g %g;\n", dx, dy); | 327 | printf(INDENT4 "aspect: %g %g;\n", dx, dy); |
328 | 328 | ||
329 | x = edje_edit_state_aspect_pref_get(ed, part, state, value); | 329 | x = edje_edit_state_aspect_pref_get(ed, ppart, state, value); |
330 | str = aspect_pref_name_get(x); | 330 | str = aspect_pref_name_get(x); |
331 | if (machine) printf("ASPECT-PREFERENCE: %s\n", str); | 331 | if (machine) printf("ASPECT-PREFERENCE: %s\n", str); |
332 | else if (x) printf(INDENT4 "aspect_preference: %s;\n", str); | 332 | else if (x) printf(INDENT4 "aspect_preference: %s;\n", str); |
333 | /* do not free this str! */ | 333 | /* do not free this str! */ |
334 | 334 | ||
335 | str = edje_edit_state_color_class_get(ed, part, state, value); | 335 | str = edje_edit_state_color_class_get(ed, ppart, state, value); |
336 | if (machine) printf("COLOR_CLASS: %s\n", str ? str : ""); | 336 | if (machine) printf("COLOR_CLASS: %s\n", str ? str : ""); |
337 | else if (str) printf(INDENT4 "color_class: \"%s\";\n", str); | 337 | else if (str) printf(INDENT4 "color_class: \"%s\";\n", str); |
338 | edje_edit_string_free(str); | 338 | edje_edit_string_free(str); |
339 | } | 339 | } |
340 | 340 | ||
341 | dx = edje_edit_state_rel1_relative_x_get(ed, part, state, value); | 341 | dx = edje_edit_state_rel1_relative_x_get(ed, ppart, state, value); |
342 | dy = edje_edit_state_rel1_relative_y_get(ed, part, state, value); | 342 | dy = edje_edit_state_rel1_relative_y_get(ed, ppart, state, value); |
343 | x = edje_edit_state_rel1_offset_x_get(ed, part, state, value); | 343 | x = edje_edit_state_rel1_offset_x_get(ed, ppart, state, value); |
344 | y = edje_edit_state_rel1_offset_y_get(ed, part, state, value); | 344 | y = edje_edit_state_rel1_offset_y_get(ed, ppart, state, value); |
345 | str = edje_edit_state_rel1_to_x_get(ed, part, state, value); | 345 | str = edje_edit_state_rel1_to_x_get(ed, ppart, state, value); |
346 | str2 = edje_edit_state_rel1_to_y_get(ed, part, state, value); | 346 | str2 = edje_edit_state_rel1_to_y_get(ed, ppart, state, value); |
347 | if (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y) || (str) || (str2)) | 347 | if (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y) || (str) || (str2)) |
348 | { | 348 | { |
349 | if (machine) puts("REL1-BEGIN"); | 349 | if (machine) puts("REL1-BEGIN"); |
@@ -372,12 +372,12 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
372 | edje_edit_string_free(str); | 372 | edje_edit_string_free(str); |
373 | edje_edit_string_free(str2); | 373 | edje_edit_string_free(str2); |
374 | 374 | ||
375 | dx = edje_edit_state_rel2_relative_x_get(ed, part, state, value); | 375 | dx = edje_edit_state_rel2_relative_x_get(ed, ppart, state, value); |
376 | dy = edje_edit_state_rel2_relative_y_get(ed, part, state, value); | 376 | dy = edje_edit_state_rel2_relative_y_get(ed, ppart, state, value); |
377 | x = edje_edit_state_rel2_offset_x_get(ed, part, state, value); | 377 | x = edje_edit_state_rel2_offset_x_get(ed, ppart, state, value); |
378 | y = edje_edit_state_rel2_offset_y_get(ed, part, state, value); | 378 | y = edje_edit_state_rel2_offset_y_get(ed, ppart, state, value); |
379 | str = edje_edit_state_rel2_to_x_get(ed, part, state, value); | 379 | str = edje_edit_state_rel2_to_x_get(ed, ppart, state, value); |
380 | str2 = edje_edit_state_rel2_to_y_get(ed, part, state, value); | 380 | str2 = edje_edit_state_rel2_to_y_get(ed, ppart, state, value); |
381 | if (FDIFF(dx, 1.0) || FDIFF(dy, 1.0) || (x != -1) || (y != -1) || | 381 | if (FDIFF(dx, 1.0) || FDIFF(dy, 1.0) || (x != -1) || (y != -1) || |
382 | (str) || (str2)) | 382 | (str) || (str2)) |
383 | { | 383 | { |
@@ -410,7 +410,7 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
410 | 410 | ||
411 | if (t == EDJE_PART_TYPE_IMAGE) | 411 | if (t == EDJE_PART_TYPE_IMAGE) |
412 | { | 412 | { |
413 | str = edje_edit_state_image_get(ed, part, state, value); | 413 | str = edje_edit_state_image_get(ed, ppart, state, value); |
414 | 414 | ||
415 | if (machine) printf("IMAGE-BEGIN\nNORMAL: %s\n", str ? str : ""); | 415 | if (machine) printf("IMAGE-BEGIN\nNORMAL: %s\n", str ? str : ""); |
416 | else if (detail > 1) | 416 | else if (detail > 1) |
@@ -429,7 +429,7 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
429 | double dx2, dy2; | 429 | double dx2, dy2; |
430 | Eina_Bool has_orgin, has_size; | 430 | Eina_Bool has_orgin, has_size; |
431 | 431 | ||
432 | tweens = edje_edit_state_tweens_list_get(ed, part, state, value); | 432 | tweens = edje_edit_state_tweens_list_get(ed, ppart, state, value); |
433 | EINA_LIST_FOREACH(tweens, l, str) | 433 | EINA_LIST_FOREACH(tweens, l, str) |
434 | { | 434 | { |
435 | if (machine) printf("TWEEN: %s\n", str); | 435 | if (machine) printf("TWEEN: %s\n", str); |
@@ -438,14 +438,14 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
438 | edje_edit_string_list_free(tweens); | 438 | edje_edit_string_list_free(tweens); |
439 | 439 | ||
440 | edje_edit_state_image_border_get | 440 | edje_edit_state_image_border_get |
441 | (ed, part, state, value, &bl, &br, &bt, &bb); | 441 | (ed, ppart, state, value, &bl, &br, &bt, &bb); |
442 | if (machine) | 442 | if (machine) |
443 | printf("BORDER-LEFT: %d\nBORDER-RIGHT: %d\n" | 443 | printf("BORDER-LEFT: %d\nBORDER-RIGHT: %d\n" |
444 | "BORDER-TOP: %d\nBORDER-BOTTOM: %d\n", bl, br, bt, bb); | 444 | "BORDER-TOP: %d\nBORDER-BOTTOM: %d\n", bl, br, bt, bb); |
445 | else if ((bl) || (br) || (bt) || (bb)) | 445 | else if ((bl) || (br) || (bt) || (bb)) |
446 | printf(INDENT5 "border: %d %d %d %d;\n", bl, br, bt, bb); | 446 | printf(INDENT5 "border: %d %d %d %d;\n", bl, br, bt, bb); |
447 | 447 | ||
448 | x = edje_edit_state_image_border_fill_get(ed, part, state, value); | 448 | x = edje_edit_state_image_border_fill_get(ed, ppart, state, value); |
449 | str = border_fill_name_get(x); | 449 | str = border_fill_name_get(x); |
450 | if (machine) printf("BORDER-FILL: %s\n", str); | 450 | if (machine) printf("BORDER-FILL: %s\n", str); |
451 | else if (x != 1) printf(INDENT5 "middle: %s;\n", str); | 451 | else if (x != 1) printf(INDENT5 "middle: %s;\n", str); |
@@ -454,22 +454,22 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
454 | // TODO support image.fill.smooth | 454 | // TODO support image.fill.smooth |
455 | 455 | ||
456 | dx = edje_edit_state_fill_origin_relative_x_get | 456 | dx = edje_edit_state_fill_origin_relative_x_get |
457 | (ed, part, state, value); | 457 | (ed, ppart, state, value); |
458 | dy = edje_edit_state_fill_origin_relative_y_get | 458 | dy = edje_edit_state_fill_origin_relative_y_get |
459 | (ed, part, state, value); | 459 | (ed, ppart, state, value); |
460 | x = edje_edit_state_fill_origin_offset_x_get | 460 | x = edje_edit_state_fill_origin_offset_x_get |
461 | (ed, part, state, value); | 461 | (ed, ppart, state, value); |
462 | y = edje_edit_state_fill_origin_offset_y_get | 462 | y = edje_edit_state_fill_origin_offset_y_get |
463 | (ed, part, state, value); | 463 | (ed, ppart, state, value); |
464 | 464 | ||
465 | dx2 = edje_edit_state_fill_size_relative_x_get | 465 | dx2 = edje_edit_state_fill_size_relative_x_get |
466 | (ed, part, state, value); | 466 | (ed, ppart, state, value); |
467 | dy2 = edje_edit_state_fill_size_relative_y_get | 467 | dy2 = edje_edit_state_fill_size_relative_y_get |
468 | (ed, part, state, value); | 468 | (ed, ppart, state, value); |
469 | x2 = edje_edit_state_fill_size_offset_x_get | 469 | x2 = edje_edit_state_fill_size_offset_x_get |
470 | (ed, part, state, value); | 470 | (ed, ppart, state, value); |
471 | y2 = edje_edit_state_fill_size_offset_y_get | 471 | y2 = edje_edit_state_fill_size_offset_y_get |
472 | (ed, part, state, value); | 472 | (ed, ppart, state, value); |
473 | 473 | ||
474 | has_orgin = (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y)); | 474 | has_orgin = (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y)); |
475 | has_size = (FDIFF(dx2, 1.0) || FDIFF(dy2, 1.0) || (x2) || (y2)); | 475 | has_size = (FDIFF(dx2, 1.0) || FDIFF(dy2, 1.0) || (x2) || (y2)); |
@@ -531,22 +531,22 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
531 | // TODO support proxy.fill.smooth | 531 | // TODO support proxy.fill.smooth |
532 | 532 | ||
533 | dx = edje_edit_state_fill_origin_relative_x_get | 533 | dx = edje_edit_state_fill_origin_relative_x_get |
534 | (ed, part, state, value); | 534 | (ed, ppart, state, value); |
535 | dy = edje_edit_state_fill_origin_relative_y_get | 535 | dy = edje_edit_state_fill_origin_relative_y_get |
536 | (ed, part, state, value); | 536 | (ed, ppart, state, value); |
537 | x = edje_edit_state_fill_origin_offset_x_get | 537 | x = edje_edit_state_fill_origin_offset_x_get |
538 | (ed, part, state, value); | 538 | (ed, ppart, state, value); |
539 | y = edje_edit_state_fill_origin_offset_y_get | 539 | y = edje_edit_state_fill_origin_offset_y_get |
540 | (ed, part, state, value); | 540 | (ed, ppart, state, value); |
541 | 541 | ||
542 | dx2 = edje_edit_state_fill_size_relative_x_get | 542 | dx2 = edje_edit_state_fill_size_relative_x_get |
543 | (ed, part, state, value); | 543 | (ed, ppart, state, value); |
544 | dy2 = edje_edit_state_fill_size_relative_y_get | 544 | dy2 = edje_edit_state_fill_size_relative_y_get |
545 | (ed, part, state, value); | 545 | (ed, ppart, state, value); |
546 | x2 = edje_edit_state_fill_size_offset_x_get | 546 | x2 = edje_edit_state_fill_size_offset_x_get |
547 | (ed, part, state, value); | 547 | (ed, ppart, state, value); |
548 | y2 = edje_edit_state_fill_size_offset_y_get | 548 | y2 = edje_edit_state_fill_size_offset_y_get |
549 | (ed, part, state, value); | 549 | (ed, ppart, state, value); |
550 | 550 | ||
551 | has_orgin = (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y)); | 551 | has_orgin = (FDIFF(dx, 0.0) || FDIFF(dy, 0.0) || (x) || (y)); |
552 | has_size = (FDIFF(dx2, 1.0) || FDIFF(dy2, 1.0) || (x2) || (y2)); | 552 | has_size = (FDIFF(dx2, 1.0) || FDIFF(dy2, 1.0) || (x2) || (y2)); |
@@ -600,34 +600,34 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
600 | if (machine) puts("TEXT-BEGIN"); | 600 | if (machine) puts("TEXT-BEGIN"); |
601 | else puts(INDENT4 "text {"); | 601 | else puts(INDENT4 "text {"); |
602 | 602 | ||
603 | str = edje_edit_state_text_get(ed, part, state, value); | 603 | str = edje_edit_state_text_get(ed, ppart, state, value); |
604 | if (machine) printf("TEXT: %s\n", str ? str : ""); | 604 | if (machine) printf("TEXT: %s\n", str ? str : ""); |
605 | else if (str) printf(INDENT5 "text: \"%s\";\n", str); | 605 | else if (str) printf(INDENT5 "text: \"%s\";\n", str); |
606 | edje_edit_string_free(str); | 606 | edje_edit_string_free(str); |
607 | 607 | ||
608 | str = edje_edit_state_font_get(ed, part, state, value); | 608 | str = edje_edit_state_font_get(ed, ppart, state, value); |
609 | if (machine) printf("FONT: %s\n", str ? str : ""); | 609 | if (machine) printf("FONT: %s\n", str ? str : ""); |
610 | else if (str) printf(INDENT5 "font: \"%s\";\n", str); | 610 | else if (str) printf(INDENT5 "font: \"%s\";\n", str); |
611 | edje_edit_string_free(str); | 611 | edje_edit_string_free(str); |
612 | 612 | ||
613 | x = edje_edit_state_text_size_get(ed, part, state, value); | 613 | x = edje_edit_state_text_size_get(ed, ppart, state, value); |
614 | if (machine) printf("SIZE: %d\n", x); | 614 | if (machine) printf("SIZE: %d\n", x); |
615 | else if (x > 0) printf(INDENT5 "size: %d;\n", x); | 615 | else if (x > 0) printf(INDENT5 "size: %d;\n", x); |
616 | 616 | ||
617 | // TODO text_class | 617 | // TODO text_class |
618 | 618 | ||
619 | dx = edje_edit_state_text_align_x_get(ed, part, state, value); | 619 | dx = edje_edit_state_text_align_x_get(ed, ppart, state, value); |
620 | dy = edje_edit_state_text_align_y_get(ed, part, state, value); | 620 | dy = edje_edit_state_text_align_y_get(ed, ppart, state, value); |
621 | if (machine) printf("TEXT-ALIGN-X: %g\nTEXT-ALIGN-Y: %g\n", dx, dy); | 621 | if (machine) printf("TEXT-ALIGN-X: %g\nTEXT-ALIGN-Y: %g\n", dx, dy); |
622 | else if (FDIFF(dx, 0.5) || FDIFF(dy, 0.5)) | 622 | else if (FDIFF(dx, 0.5) || FDIFF(dy, 0.5)) |
623 | printf(INDENT5 "align: %g %g;\n", dx, dy); | 623 | printf(INDENT5 "align: %g %g;\n", dx, dy); |
624 | 624 | ||
625 | x = edje_edit_state_text_fit_x_get(ed, part, state, value); | 625 | x = edje_edit_state_text_fit_x_get(ed, ppart, state, value); |
626 | y = edje_edit_state_text_fit_y_get(ed, part, state, value); | 626 | y = edje_edit_state_text_fit_y_get(ed, ppart, state, value); |
627 | if (machine) printf("TEXT-FIT-X: %d\nTEXT-FIT-Y: %d\n", x, y); | 627 | if (machine) printf("TEXT-FIT-X: %d\nTEXT-FIT-Y: %d\n", x, y); |
628 | else if ((x) || (y)) printf(INDENT5 "fit: %d %d;\n", x, y); | 628 | else if ((x) || (y)) printf(INDENT5 "fit: %d %d;\n", x, y); |
629 | 629 | ||
630 | dx = edje_edit_state_text_elipsis_get(ed, part, state, value); | 630 | dx = edje_edit_state_text_elipsis_get(ed, ppart, state, value); |
631 | if (machine) printf("TEXT-ELIPSIS: %g\n", dx); | 631 | if (machine) printf("TEXT-ELIPSIS: %g\n", dx); |
632 | else if (FDIFF(dx, 0.5)) printf(INDENT5 "elipsis: %g;\n", dx); | 632 | else if (FDIFF(dx, 0.5)) printf(INDENT5 "elipsis: %g;\n", dx); |
633 | 633 | ||
@@ -640,7 +640,7 @@ state_details(Evas_Object *ed, const char *part, const char *state, double value | |||
640 | const Edje_External_Param *p; | 640 | const Edje_External_Param *p; |
641 | 641 | ||
642 | params = edje_edit_state_external_params_list_get | 642 | params = edje_edit_state_external_params_list_get |
643 | (ed, part, state, value); | 643 | (ed, ppart, state, value); |
644 | 644 | ||
645 | if (params) | 645 | if (params) |
646 | { | 646 | { |
@@ -766,16 +766,16 @@ _api_name_fix(const char *orig) | |||
766 | } | 766 | } |
767 | 767 | ||
768 | static char * | 768 | static char * |
769 | _part_api_name_get(Evas_Object *ed, const char *part) | 769 | _part_api_name_get(Evas_Object *ed, const char *ppart) |
770 | { | 770 | { |
771 | const char *orig = edje_edit_part_api_name_get(ed, part); | 771 | const char *orig = edje_edit_part_api_name_get(ed, ppart); |
772 | char *fix = _api_name_fix(orig); | 772 | char *fix = _api_name_fix(orig); |
773 | edje_edit_string_free(orig); | 773 | edje_edit_string_free(orig); |
774 | return fix; | 774 | return fix; |
775 | } | 775 | } |
776 | 776 | ||
777 | static void | 777 | static void |
778 | part_details(Evas_Object *ed, const char *part) | 778 | part_details(Evas_Object *ed, const char *ppart) |
779 | { | 779 | { |
780 | Eina_List *states, *l; | 780 | Eina_List *states, *l; |
781 | Eina_Bool b; | 781 | Eina_Bool b; |
@@ -786,8 +786,8 @@ part_details(Evas_Object *ed, const char *part) | |||
786 | 786 | ||
787 | if (machine) puts("PART-DETAILS-BEGIN"); | 787 | if (machine) puts("PART-DETAILS-BEGIN"); |
788 | 788 | ||
789 | str = api =_part_api_name_get(ed, part); | 789 | str = api =_part_api_name_get(ed, ppart); |
790 | str2 = edje_edit_part_api_description_get(ed, part); | 790 | str2 = edje_edit_part_api_description_get(ed, ppart); |
791 | if (machine) | 791 | if (machine) |
792 | { | 792 | { |
793 | printf("API-NAME: %s\n", str ? str : ""); | 793 | printf("API-NAME: %s\n", str ? str : ""); |
@@ -798,67 +798,67 @@ part_details(Evas_Object *ed, const char *part) | |||
798 | free(api); | 798 | free(api); |
799 | edje_edit_string_free(str2); | 799 | edje_edit_string_free(str2); |
800 | 800 | ||
801 | b = edje_edit_part_mouse_events_get(ed, part); | 801 | b = edje_edit_part_mouse_events_get(ed, ppart); |
802 | if (machine) printf("MOUSE_EVENTS: %d\n", b); | 802 | if (machine) printf("MOUSE_EVENTS: %d\n", b); |
803 | else if (!b) puts(INDENT3 "mouse_events: 0;"); | 803 | else if (!b) puts(INDENT3 "mouse_events: 0;"); |
804 | 804 | ||
805 | if (detail > 1) | 805 | if (detail > 1) |
806 | { | 806 | { |
807 | b = edje_edit_part_repeat_events_get(ed, part); | 807 | b = edje_edit_part_repeat_events_get(ed, ppart); |
808 | if (machine) printf("REPEAT_EVENTS: %d\n", b); | 808 | if (machine) printf("REPEAT_EVENTS: %d\n", b); |
809 | else if (b) puts(INDENT3 "repeat_events: 1;"); | 809 | else if (b) puts(INDENT3 "repeat_events: 1;"); |
810 | 810 | ||
811 | b = edje_edit_part_scale_get(ed, part); | 811 | b = edje_edit_part_scale_get(ed, ppart); |
812 | if (machine) printf("SCALE: %d\n", b); | 812 | if (machine) printf("SCALE: %d\n", b); |
813 | else if (b) puts(INDENT3 "scale: 1;"); | 813 | else if (b) puts(INDENT3 "scale: 1;"); |
814 | } | 814 | } |
815 | 815 | ||
816 | str = edje_edit_part_clip_to_get(ed, part); | 816 | str = edje_edit_part_clip_to_get(ed, ppart); |
817 | if (machine) printf("CLIP_TO: %s\n", str ? str : ""); | 817 | if (machine) printf("CLIP_TO: %s\n", str ? str : ""); |
818 | else if (str) printf(INDENT3 "clip_to: \"%s\";\n", str); | 818 | else if (str) printf(INDENT3 "clip_to: \"%s\";\n", str); |
819 | edje_edit_string_free(str); | 819 | edje_edit_string_free(str); |
820 | 820 | ||
821 | str = edje_edit_part_source_get(ed, part); | 821 | str = edje_edit_part_source_get(ed, ppart); |
822 | if (machine) printf("SOURCE: %s\n", str ? str : ""); | 822 | if (machine) printf("SOURCE: %s\n", str ? str : ""); |
823 | else if (str) printf(INDENT3 "source: \"%s\";\n", str); | 823 | else if (str) printf(INDENT3 "source: \"%s\";\n", str); |
824 | edje_edit_string_free(str); | 824 | edje_edit_string_free(str); |
825 | 825 | ||
826 | if (detail > 1) | 826 | if (detail > 1) |
827 | { | 827 | { |
828 | if (edje_edit_part_type_get(ed, part) == EDJE_PART_TYPE_TEXT) | 828 | if (edje_edit_part_type_get(ed, ppart) == EDJE_PART_TYPE_TEXT) |
829 | { | 829 | { |
830 | str = text_effect_name_get(edje_edit_part_effect_get(ed, part)); | 830 | str = text_effect_name_get(edje_edit_part_effect_get(ed, ppart)); |
831 | if (machine) printf("EFFECT: %s\n", str ? str : ""); | 831 | if (machine) printf("EFFECT: %s\n", str ? str : ""); |
832 | else if (str) printf(INDENT3 "effect: %s;\n", str); | 832 | else if (str) printf(INDENT3 "effect: %s;\n", str); |
833 | /* do not free this str! */ | 833 | /* do not free this str! */ |
834 | } | 834 | } |
835 | 835 | ||
836 | if (edje_edit_part_drag_x_get(ed, part) || | 836 | if (edje_edit_part_drag_x_get(ed, ppart) || |
837 | edje_edit_part_drag_y_get(ed, part)) | 837 | edje_edit_part_drag_y_get(ed, ppart)) |
838 | { | 838 | { |
839 | int dir, step, count; | 839 | int dir, step, count; |
840 | 840 | ||
841 | if (machine) puts("DRAGABLE-BEGIN"); | 841 | if (machine) puts("DRAGABLE-BEGIN"); |
842 | else puts(INDENT3 "dragable {"); | 842 | else puts(INDENT3 "dragable {"); |
843 | 843 | ||
844 | dir = edje_edit_part_drag_x_get(ed, part); | 844 | dir = edje_edit_part_drag_x_get(ed, ppart); |
845 | step = edje_edit_part_drag_step_x_get(ed, part); | 845 | step = edje_edit_part_drag_step_x_get(ed, ppart); |
846 | count = edje_edit_part_drag_count_x_get(ed, part); | 846 | count = edje_edit_part_drag_count_x_get(ed, ppart); |
847 | if (machine) printf("DRAG-X: %d %d %d\n", dir, step, count); | 847 | if (machine) printf("DRAG-X: %d %d %d\n", dir, step, count); |
848 | else printf(INDENT4 "x: %d %d %d;\n", dir, step, count); | 848 | else printf(INDENT4 "x: %d %d %d;\n", dir, step, count); |
849 | 849 | ||
850 | dir = edje_edit_part_drag_y_get(ed, part); | 850 | dir = edje_edit_part_drag_y_get(ed, ppart); |
851 | step = edje_edit_part_drag_step_y_get(ed, part); | 851 | step = edje_edit_part_drag_step_y_get(ed, ppart); |
852 | count = edje_edit_part_drag_count_y_get(ed, part); | 852 | count = edje_edit_part_drag_count_y_get(ed, ppart); |
853 | if (machine) printf("DRAG-Y: %d %d %d\n", dir, step, count); | 853 | if (machine) printf("DRAG-Y: %d %d %d\n", dir, step, count); |
854 | else printf(INDENT4 "y: %d %d %d;\n", dir, step, count); | 854 | else printf(INDENT4 "y: %d %d %d;\n", dir, step, count); |
855 | 855 | ||
856 | str = edje_edit_part_drag_confine_get(ed, part); | 856 | str = edje_edit_part_drag_confine_get(ed, ppart); |
857 | if (machine) printf("DRAG-CONFINE: %s\n", str ? str : ""); | 857 | if (machine) printf("DRAG-CONFINE: %s\n", str ? str : ""); |
858 | else if (str) printf(INDENT4 "confine: \"%s\";\n", str); | 858 | else if (str) printf(INDENT4 "confine: \"%s\";\n", str); |
859 | edje_edit_string_free(str); | 859 | edje_edit_string_free(str); |
860 | 860 | ||
861 | str = edje_edit_part_drag_event_get(ed, part); | 861 | str = edje_edit_part_drag_event_get(ed, ppart); |
862 | if (machine) printf("DRAG-EVENTS: %s\n", str ? str : ""); | 862 | if (machine) printf("DRAG-EVENTS: %s\n", str ? str : ""); |
863 | else if (str) printf(INDENT4 "events: \"%s\";\n", str); | 863 | else if (str) printf(INDENT4 "events: \"%s\";\n", str); |
864 | edje_edit_string_free(str); | 864 | edje_edit_string_free(str); |
@@ -868,7 +868,7 @@ part_details(Evas_Object *ed, const char *part) | |||
868 | } | 868 | } |
869 | } | 869 | } |
870 | 870 | ||
871 | states = edje_edit_part_states_list_get(ed, part); | 871 | states = edje_edit_part_states_list_get(ed, ppart); |
872 | EINA_LIST_FOREACH(states, l, str) | 872 | EINA_LIST_FOREACH(states, l, str) |
873 | { | 873 | { |
874 | char state[512], *delim; | 874 | char state[512], *delim; |
@@ -879,7 +879,7 @@ part_details(Evas_Object *ed, const char *part) | |||
879 | delim++; | 879 | delim++; |
880 | value = strtod(delim, NULL); | 880 | value = strtod(delim, NULL); |
881 | state_begin(state, value); | 881 | state_begin(state, value); |
882 | state_details(ed, part, state, value); | 882 | state_details(ed, ppart, state, value); |
883 | state_end(); | 883 | state_end(); |
884 | } | 884 | } |
885 | edje_edit_string_list_free(states); | 885 | edje_edit_string_list_free(states); |
@@ -1047,9 +1047,9 @@ program_end(void) | |||
1047 | 1047 | ||
1048 | 1048 | ||
1049 | static char * | 1049 | static char * |
1050 | _program_api_name_get(Evas_Object *ed, const char *program) | 1050 | _program_api_name_get(Evas_Object *ed, const char *pprogram) |
1051 | { | 1051 | { |
1052 | const char *orig = edje_edit_program_api_name_get(ed, program); | 1052 | const char *orig = edje_edit_program_api_name_get(ed, pprogram); |
1053 | char *fix = _api_name_fix(orig); | 1053 | char *fix = _api_name_fix(orig); |
1054 | edje_edit_string_free(orig); | 1054 | edje_edit_string_free(orig); |
1055 | return fix; | 1055 | return fix; |
@@ -1071,7 +1071,7 @@ _transition_name_get(Edje_Tween_Mode mode) | |||
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | static void | 1073 | static void |
1074 | program_details(Evas_Object *ed, const char *program) | 1074 | program_details(Evas_Object *ed, const char *pprogram) |
1075 | { | 1075 | { |
1076 | const char *str, *str2; | 1076 | const char *str, *str2; |
1077 | char *api; | 1077 | char *api; |
@@ -1080,8 +1080,8 @@ program_details(Evas_Object *ed, const char *program) | |||
1080 | 1080 | ||
1081 | if (machine) puts("PROGRAM-DETAILS-BEGIN"); | 1081 | if (machine) puts("PROGRAM-DETAILS-BEGIN"); |
1082 | 1082 | ||
1083 | str = api =_program_api_name_get(ed, program); | 1083 | str = api =_program_api_name_get(ed, pprogram); |
1084 | str2 = edje_edit_program_api_description_get(ed, program); | 1084 | str2 = edje_edit_program_api_description_get(ed, pprogram); |
1085 | if (machine) | 1085 | if (machine) |
1086 | { | 1086 | { |
1087 | printf("API-NAME: %s\n", str ? str : ""); | 1087 | printf("API-NAME: %s\n", str ? str : ""); |
@@ -1092,12 +1092,12 @@ program_details(Evas_Object *ed, const char *program) | |||
1092 | free(api); | 1092 | free(api); |
1093 | edje_edit_string_free(str2); | 1093 | edje_edit_string_free(str2); |
1094 | 1094 | ||
1095 | str = edje_edit_program_signal_get(ed, program); | 1095 | str = edje_edit_program_signal_get(ed, pprogram); |
1096 | if (machine) printf("SIGNAL: %s\n", str ? str : ""); | 1096 | if (machine) printf("SIGNAL: %s\n", str ? str : ""); |
1097 | else if (str) printf(INDENT3 "signal: \"%s\";\n", str); | 1097 | else if (str) printf(INDENT3 "signal: \"%s\";\n", str); |
1098 | edje_edit_string_free(str); | 1098 | edje_edit_string_free(str); |
1099 | 1099 | ||
1100 | str = edje_edit_program_source_get(ed, program); | 1100 | str = edje_edit_program_source_get(ed, pprogram); |
1101 | if (machine) printf("SOURCE: %s\n", str ? str : ""); | 1101 | if (machine) printf("SOURCE: %s\n", str ? str : ""); |
1102 | else if (str) printf(INDENT3 "source: \"%s\";\n", str); | 1102 | else if (str) printf(INDENT3 "source: \"%s\";\n", str); |
1103 | edje_edit_string_free(str); | 1103 | edje_edit_string_free(str); |
@@ -1105,7 +1105,7 @@ program_details(Evas_Object *ed, const char *program) | |||
1105 | if (detail >= 1) | 1105 | if (detail >= 1) |
1106 | { | 1106 | { |
1107 | Eina_List *lst, *l; | 1107 | Eina_List *lst, *l; |
1108 | Edje_Action_Type type = edje_edit_program_action_get(ed, program); | 1108 | Edje_Action_Type type = edje_edit_program_action_get(ed, pprogram); |
1109 | switch (type) | 1109 | switch (type) |
1110 | { | 1110 | { |
1111 | case EDJE_ACTION_TYPE_ACTION_STOP: | 1111 | case EDJE_ACTION_TYPE_ACTION_STOP: |
@@ -1113,18 +1113,18 @@ program_details(Evas_Object *ed, const char *program) | |||
1113 | else puts(INDENT3 "action: ACTION_STOP;"); | 1113 | else puts(INDENT3 "action: ACTION_STOP;"); |
1114 | break; | 1114 | break; |
1115 | case EDJE_ACTION_TYPE_STATE_SET: | 1115 | case EDJE_ACTION_TYPE_STATE_SET: |
1116 | str = edje_edit_program_state_get(ed, program); | 1116 | str = edje_edit_program_state_get(ed, pprogram); |
1117 | if (machine) | 1117 | if (machine) |
1118 | printf("ACTION: STATE_SET\nACTION-STATE: %s %g\n", | 1118 | printf("ACTION: STATE_SET\nACTION-STATE: %s %g\n", |
1119 | str, edje_edit_program_value_get(ed, program)); | 1119 | str, edje_edit_program_value_get(ed, pprogram)); |
1120 | else | 1120 | else |
1121 | printf(INDENT3 "action: STATE_SET \"%s\" %2.1f;\n", | 1121 | printf(INDENT3 "action: STATE_SET \"%s\" %2.1f;\n", |
1122 | str, edje_edit_program_value_get(ed, program)); | 1122 | str, edje_edit_program_value_get(ed, pprogram)); |
1123 | edje_edit_string_free(str); | 1123 | edje_edit_string_free(str); |
1124 | break; | 1124 | break; |
1125 | case EDJE_ACTION_TYPE_SIGNAL_EMIT: | 1125 | case EDJE_ACTION_TYPE_SIGNAL_EMIT: |
1126 | str = edje_edit_program_state_get(ed, program); | 1126 | str = edje_edit_program_state_get(ed, pprogram); |
1127 | str2 = edje_edit_program_state2_get(ed, program); | 1127 | str2 = edje_edit_program_state2_get(ed, pprogram); |
1128 | if (machine) | 1128 | if (machine) |
1129 | printf("ACTION: SIGNAL_EMIT\nACTION-SIGNAL: %s\n" | 1129 | printf("ACTION: SIGNAL_EMIT\nACTION-SIGNAL: %s\n" |
1130 | "ACTION-SOURCE: %s\n", | 1130 | "ACTION-SOURCE: %s\n", |
@@ -1146,7 +1146,7 @@ program_details(Evas_Object *ed, const char *program) | |||
1146 | //~ eina_strbuf_append(buf, I4"action: DRAG_VAL_PAGE TODO;\n"); | 1146 | //~ eina_strbuf_append(buf, I4"action: DRAG_VAL_PAGE TODO;\n"); |
1147 | //~ break; | 1147 | //~ break; |
1148 | default: | 1148 | default: |
1149 | ERR("Unhandled program action type %d", type); | 1149 | ERR("Unhandled pprogram action type %d", type); |
1150 | break; | 1150 | break; |
1151 | } | 1151 | } |
1152 | 1152 | ||
@@ -1154,11 +1154,11 @@ program_details(Evas_Object *ed, const char *program) | |||
1154 | { | 1154 | { |
1155 | double from, range; | 1155 | double from, range; |
1156 | 1156 | ||
1157 | from = edje_edit_program_transition_time_get(ed, program); | 1157 | from = edje_edit_program_transition_time_get(ed, pprogram); |
1158 | if (from > 0.0) | 1158 | if (from > 0.0) |
1159 | { | 1159 | { |
1160 | str = _transition_name_get | 1160 | str = _transition_name_get |
1161 | (edje_edit_program_transition_get(ed, program)); | 1161 | (edje_edit_program_transition_get(ed, pprogram)); |
1162 | if (machine) | 1162 | if (machine) |
1163 | printf("TRANSITION-NAME: %s\nTRANSITION-DURATION: %g\n", | 1163 | printf("TRANSITION-NAME: %s\nTRANSITION-DURATION: %g\n", |
1164 | str, from); | 1164 | str, from); |
@@ -1166,8 +1166,8 @@ program_details(Evas_Object *ed, const char *program) | |||
1166 | /* do not free str! */ | 1166 | /* do not free str! */ |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | from = edje_edit_program_in_from_get(ed, program); | 1169 | from = edje_edit_program_in_from_get(ed, pprogram); |
1170 | range = edje_edit_program_in_range_get(ed, program); | 1170 | range = edje_edit_program_in_range_get(ed, pprogram); |
1171 | if (FDIFF(from, 0.0) || FDIFF(range, 0.0)) | 1171 | if (FDIFF(from, 0.0) || FDIFF(range, 0.0)) |
1172 | { | 1172 | { |
1173 | if (machine) | 1173 | if (machine) |
@@ -1176,13 +1176,13 @@ program_details(Evas_Object *ed, const char *program) | |||
1176 | } | 1176 | } |
1177 | } | 1177 | } |
1178 | 1178 | ||
1179 | lst = edje_edit_program_targets_get(ed, program); | 1179 | lst = edje_edit_program_targets_get(ed, pprogram); |
1180 | EINA_LIST_FOREACH(lst, l, str) | 1180 | EINA_LIST_FOREACH(lst, l, str) |
1181 | if (machine) printf("TARGET: %s\n", str); | 1181 | if (machine) printf("TARGET: %s\n", str); |
1182 | else printf(INDENT3 "target: \"%s\";\n", str); | 1182 | else printf(INDENT3 "target: \"%s\";\n", str); |
1183 | edje_edit_string_list_free(lst); | 1183 | edje_edit_string_list_free(lst); |
1184 | 1184 | ||
1185 | lst = edje_edit_program_afters_get(ed, program); | 1185 | lst = edje_edit_program_afters_get(ed, pprogram); |
1186 | EINA_LIST_FOREACH(lst, l, str) | 1186 | EINA_LIST_FOREACH(lst, l, str) |
1187 | if (machine) printf("AFTER: %s\n", str); | 1187 | if (machine) printf("AFTER: %s\n", str); |
1188 | else printf(INDENT3 "after: \"%s\";\n", str); | 1188 | else printf(INDENT3 "after: \"%s\";\n", str); |