From: Ricardo Markiewicz Date: Tue, 2 Dec 2003 02:16:33 +0000 (+0000) Subject: * 2 nuevos ejemplos (el 2_circuitos no tiene desperdicio) X-Git-Tag: svn_import~83 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/b9778a55f39686e24601531af313ec09163a59c8 * 2 nuevos ejemplos (el 2_circuitos no tiene desperdicio) * se arreglan las coordenadas de dibujo sobre la union --- diff --git a/Client/src/item_union.cpp b/Client/src/item_union.cpp index 27791a2..c6a1615 100644 --- a/Client/src/item_union.cpp +++ b/Client/src/item_union.cpp @@ -45,16 +45,16 @@ bool ViewUnion::on_image_expose_event(GdkEventExpose *e) image.get_window()->draw_rectangle(gc, 1, 0, 13, w, 6); break; case 1: - image.get_window()->draw_rectangle(gc, 1, 0, h/2-3, w/2, 6); - image.get_window()->draw_rectangle(gc, 1, 51, 0, 6, h); + image.get_window()->draw_rectangle(gc, 1, 0, h/2-3, 48, 6); + image.get_window()->draw_rectangle(gc, 1, 45, 0, 6, h); break; case 2: - image.get_window()->draw_rectangle(gc, 1, w/2-3, 0, 6, h/2); - image.get_window()->draw_rectangle(gc, 1, 0, 51, w, 6); + image.get_window()->draw_rectangle(gc, 1, w/2-3, 0, 6, 48); + image.get_window()->draw_rectangle(gc, 1, 0, 45, w, 6); break; case 3: - image.get_window()->draw_rectangle(gc, 1, w/2, h/2-3, w/2, 6); - image.get_window()->draw_rectangle(gc, 1, 16, 0, 6, h); + image.get_window()->draw_rectangle(gc, 1, 16, h/2-3, 48, 6); + image.get_window()->draw_rectangle(gc, 1, 13, 0, 6, h); } } return true; diff --git a/Samples/2_circuitos.xml b/Samples/2_circuitos.xml new file mode 100644 index 0000000..09601e7 --- /dev/null +++ b/Samples/2_circuitos.xml @@ -0,0 +1,193 @@ + + + + 10,00 + + 51609 + 41037 + 27677 + + + union1 + + 0 + 64 + 96 + + + union + + bomba0 + bomba2 + tubo3 + + 10,00 + 0 + 160 + 96 + + + 10,00 + + 51984 + 48747 + 23713 + + + union1 + + 1 + 256 + 96 + + + 10,00 + + union1 + drenaje4 + + 0 + 192 + 160 + + + + tubo3 + + 0 + 192 + 256 + + + 10,00 + + 65535 + 65535 + 0 + + + division7 + + 0 + 32 + 480 + + + 10,00 + + 0 + 65535 + 65535 + + + division11 + + 1 + 416 + 480 + + + division + + codo9 + codo12 + bomba5 + + 10,00 + 1 + 128 + 448 + + + union + + codo10 + codo9 + drenaje17 + + 10,00 + 2 + 224 + 352 + + + 10,00 + + division7 + union8 + + 3 + 160 + 384 + + + 10,00 + + union8 + division11 + + 0 + 320 + 384 + + + division + + codo13 + codo10 + bomba6 + + 10,00 + 3 + 352 + 448 + + + 10,00 + + union14 + division7 + + 2 + 160 + 544 + + + 10,00 + + division11 + union14 + + 1 + 320 + 544 + + + union + + codo12 + codo13 + drenaje16 + + 10,00 + 0 + 224 + 576 + + + + union14 + + 0 + 256 + 640 + + + + union8 + + 2 + 256 + 320 + + diff --git a/Samples/test_de_fuego.xml b/Samples/test_de_fuego.xml new file mode 100644 index 0000000..c3c34f3 --- /dev/null +++ b/Samples/test_de_fuego.xml @@ -0,0 +1,223 @@ + + + + 10,00 + + 65535 + 61958 + 0 + + + union1 + + 0 + 64 + 128 + + + union + + bomba0 + division2 + tubo11 + + 10,00 + 0 + 160 + 128 + + + division + + union5 + union1 + codo3 + + 10,00 + 2 + 256 + 96 + + + 10,00 + + bomba4 + division2 + + 0 + 256 + 32 + + + 10,00 + + 65535 + 0 + 0 + + + codo3 + + 0 + 160 + 32 + + + union + + division2 + bomba6 + exclusa9 + + 10,00 + 0 + 352 + 128 + + + 10,00 + + 65535 + 0 + 52020 + + + union5 + + 1 + 448 + 128 + + + 100,00 + 0,00 + + 0 + 0 + 0 + + + exclusa9 + drenaje10 + + + 80 + 20 + + 0 + 384 + 256 + + + + union5 + tanque7 + + 1 + 1 + 384 + 192 + + + + tanque7 + + 3 + 448 + 288 + + + 10,00 + + union1 + union12 + + 0 + 192 + 192 + + + union + + codo13 + tubo11 + codo15 + + 10,00 + 3 + 192 + 288 + + + 10,00 + + union12 + bomba14 + + 1 + 160 + 384 + + + 10,00 + + 0 + 62485 + 65535 + + + codo13 + + 0 + 64 + 416 + + + 10,00 + + union12 + tanque16 + + 0 + 256 + 320 + + + 100,00 + 0,00 + + 0 + 0 + 0 + + + codo15 + tubo17 + + + 80 + 20 + + 0 + 288 + 384 + + + 10,00 + + tanque16 + drenaje18 + + 1 + 352 + 416 + + + + tubo17 + + 3 + 448 + 416 + +