]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/splitter.cpp
algunos cambios menores
[z.facultad/75.42/plaqui.git] / Constructor / splitter.cpp
index d017bc61564911edbe8bbcdcf086bbdda78f2dff..a9510de03795957dc02b40fdcfa329612cb74aad 100644 (file)
@@ -10,6 +10,7 @@ Splitter::Splitter()
        imgActual = 0;
        image = imageO;
        set_size_request(image->get_width(), image->get_height());
        imgActual = 0;
        image = imageO;
        set_size_request(image->get_width(), image->get_height());
+       property_wnd->set_title("Propiedades del Codo");        
 }
 
 Splitter::~Splitter()
 }
 
 Splitter::~Splitter()
@@ -43,12 +44,26 @@ bool Splitter::on_button_press_event(GdkEventButton *event)
                menu_popup.popup(event->button, event->time);
                 return true; //It has been handled.
        }
                menu_popup.popup(event->button, event->time);
                 return true; //It has been handled.
        }
+       
+       if ((event->type == GDK_2BUTTON_PRESS) && ( event->button == 1)){
+               property_wnd->spin_caudal->set_value( caudal_max );
+               property_wnd->txt_item_name->set_text( name );
+               property_wnd->show();
+       }
        return true;
 }
 void Splitter::on_menu_popup_rotar()
 {
        GdkEventButton event; 
        return true;
 }
 void Splitter::on_menu_popup_rotar()
 {
        GdkEventButton event; 
-               event.type = GDK_BUTTON_PRESS;
-               event.button = 2;
+       event.type = GDK_BUTTON_PRESS;
+       event.button = 2;
+       Splitter::on_button_press_event(&event);
+}
+
+void Splitter::on_menu_popup_propiedades()
+{
+       GdkEventButton event;
+       event.type = GDK_2BUTTON_PRESS;
+       event.button = 1;
        Splitter::on_button_press_event(&event);
 }
        Splitter::on_button_press_event(&event);
 }