5 imageN = Gdk::Pixbuf::create_from_file("canio_n.png");
6 imageS = Gdk::Pixbuf::create_from_file("canio_s.png");
7 null = Gdk::Pixbuf::create_from_file("null.png");
10 set_size_request(image->get_width(), image->get_height());
11 property_wnd->set_title("Propiedades del Tubo");
18 bool Conduct::on_button_press_event(GdkEventButton *event)
21 if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==2)){
23 image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0);
33 get_size_request(w, h);
34 set_size_request(h, w);
35 image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0);
37 if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){
38 menu_popup.popup(event->button, event->time);
39 return true; //It has been handled.
42 if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
43 property_wnd->spin_caudal->set_value( caudal_max );
44 property_wnd->txt_item_name->set_text (name);
50 void Conduct::on_menu_popup_rotar()
53 event.type = GDK_BUTTON_PRESS;
55 Conduct::on_button_press_event(&event);
58 void Conduct::on_menu_popup_propiedades()
61 event.type = GDK_2BUTTON_PRESS;
63 Conduct::on_button_press_event(&event);