2 #include "item_union.h"
5 ViewUnion::ViewUnion(Glib::ustring _name, int orientacion):ViewItem(_name)
9 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/y_n.png");
12 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/y_e.png");
15 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/y_s.png");
18 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/y_o.png");
25 ViewUnion::~ViewUnion()
29 bool ViewUnion::on_image_expose_event(GdkEventExpose *e)
31 Glib::RefPtr<Gdk::Colormap> colormap = image.get_colormap();
32 colormap->alloc_color(color);
33 gc->set_foreground(color);
34 gc->set_background(color);
36 w = image.get_width();
37 h = image.get_height();
38 if (actual_flow > 0) {
41 image.get_window()->draw_rectangle(gc, 1, w/2-3, 16, 6, h-16);
42 image.get_window()->draw_rectangle(gc, 1, 0, 13, w, 6);
45 image.get_window()->draw_rectangle(gc, 1, 0, h/2-3, w/2, 6);
46 image.get_window()->draw_rectangle(gc, 1, 51, 0, 6, h);
49 image.get_window()->draw_rectangle(gc, 1, w/2-3, 0, 6, h/2);
50 image.get_window()->draw_rectangle(gc, 1, 0, 51, w, 6);
53 image.get_window()->draw_rectangle(gc, 1, w/2, h/2-3, w/2, 6);
54 image.get_window()->draw_rectangle(gc, 1, 16, 0, 6, h);