Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/data/src Modified Files: e_logo.edc test.edc Log Message: fully supported message queues now. that was a chunk of work! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/data/src/e_logo.edc,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- e_logo.edc 19 May 2004 02:54:52 -0000 1.34 +++ e_logo.edc 2 Jul 2004 10:17:25 -0000 1.35 @@ -147,17 +147,59 @@ public global_float; public global_str; + public global_click_count; + public timer_cb(val) { emit("PROGRAAAAAAAM", "[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]"); } - public anim_cb(val, Float: pos) + public anim_cb(val, Float: pos) { new buf[100]; snprintf(buf, 100, "val = %i, pos = %f", val, pos); emit("PR AAAAAAAAANIM", buf); } + + public message(Msg_Type:type, id, ...) + { + emit("MSG", "PROCESS"); + if (type == MSG_NONE) + { + new buf[100]; + + snprintf(buf, sizeof(buf), "ID: %i", id); + emit("MESSAGE_NONE", buf); + } + else if (type == MSG_STRING) + { + new str[100]; + new buf[100]; + + snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id); + for (new j = 0; j < (sizeof(str) - 1); j++) + { + str[j] = getarg(2, j); + if (str[j] == 0) break; + } + emit(buf, str); + } + else if (type == MSG_INT_SET) + { + new buf[100]; + + snprintf(buf, sizeof(buf), "MESSAGE INT SET ID: %i", id); + for (new i = 2; i < numargs(); i++) + { + new val; + new str[100]; + + val = getarg(i); + snprintf(str, sizeof(str), "V %i", val); + emit(buf, str); + } + } + } } parts { part { @@ -632,6 +674,20 @@ } program { name: "logo_click_d2"; + signal: "mouse,down,2"; + source: "logo"; + script { + new i = get_int(global_click_count); + set_int(global_click_count, i + 1); + + if (i < 5) + send_message(MSG_NONE, 777); + else if (i < 10) + send_message(MSG_STRING, 123, "blah blah panties"); + } + } + program { + name: "logo_click_d3"; signal: "mouse,down,3"; source: "logo"; action: DRAG_VAL_STEP -1.0 -1.0; =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/data/src/test.edc,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- test.edc 1 Jul 2004 06:38:36 -0000 1.18 +++ test.edc 2 Jul 2004 10:17:25 -0000 1.19 @@ -66,27 +66,40 @@ // handle messages from apps public message(Msg_Type:type, id, ...) { + emit("MSG", "PROCESS"); if (type == MSG_NONE) { + new buf[100]; + + snprintf(buf, sizeof(buf), "ID: %i", id); + emit("MESSAGE_NONE", buf); } else if (type == MSG_STRING) { new str[100]; + new buf[100]; + snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id); for (new j = 0; j < (sizeof(str) - 1); j++) { str[j] = getarg(2, j); if (str[j] == 0) break; } + emit(buf, str); } else if (type == MSG_INT_SET) { + new buf[100]; + + snprintf(buf, sizeof(buf), "MESSAGE INT SET ID: %i", id); for (new i = 2; i < numargs(); i++) { new val; + new str[100]; val = getarg(i); - if (val > 9999) break; + snprintf(str, sizeof(str), "V %i", val); + emit(buf, str); } } } ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs