]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/conduct.cpp
algunos cambios menores
[z.facultad/75.42/plaqui.git] / Constructor / conduct.cpp
index 4b7fa17032c46822b554a42c12db99f3862dfba0..aa1c0922c2cfba26ae075ec2859bd937dda3ffaa 100644 (file)
@@ -8,16 +8,7 @@ Conduct::Conduct()
        imgActual = 0;
        image = imageN;
        set_size_request(image->get_width(), image->get_height());
        imgActual = 0;
        image = imageN;
        set_size_request(image->get_width(), image->get_height());
-       
-       Glib::RefPtr<Gnome::Glade::Xml> ref;
-       try {
-               ref = Gnome::Glade::Xml::create("constructor.glade", "conduct_pty_wnd");
-       }
-       catch(const Gnome::Glade::XmlError &ex) {
-               std::cerr << ex.what() << std::endl;
-       }
-       //tengo que crear una clase para esta ventana..!!!
-       ref->get_widget_derived("conduct_pty_wnd",property_wnd);
+       property_wnd->set_title("Propiedades del Tubo");
 }
 
 Conduct::~Conduct()
 }
 
 Conduct::~Conduct()
@@ -49,10 +40,9 @@ bool Conduct::on_button_press_event(GdkEventButton *event)
        }
        
        if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
        }
        
        if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){
-               if( property_wnd->is_open() == false ){
-                       property_wnd->show();
-                       property_wnd->set_open (true);
-               } 
+               property_wnd->spin_caudal->set_value( caudal_max );
+               property_wnd->txt_item_name->set_text (name);
+               property_wnd->show();
        }
        return true;
 }
        }
        return true;
 }