X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/235ee3a1e830ab839163ad2585c11d760bcd841c..10118a94647fab1466bf51f17c131ee34e3c0766:/Constructor/conduct.cpp diff --git a/Constructor/conduct.cpp b/Constructor/conduct.cpp index a28aa79..aa1c092 100644 --- a/Constructor/conduct.cpp +++ b/Constructor/conduct.cpp @@ -8,15 +8,7 @@ Conduct::Conduct() imgActual = 0; image = imageN; set_size_request(image->get_width(), image->get_height()); - - Glib::RefPtr ref; - try { - ref = Gnome::Glade::Xml::create("constructor.glade", "conduct_pty_wnd"); - } - catch(const Gnome::Glade::XmlError &ex) { - std::cerr << ex.what() << std::endl; - } - ref->get_widget_derived("conduct_pty_wnd",property_wnd); + property_wnd->set_title("Propiedades del Tubo"); } Conduct::~Conduct() @@ -48,7 +40,9 @@ bool Conduct::on_button_press_event(GdkEventButton *event) } if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){ - property_wnd->show(); + property_wnd->spin_caudal->set_value( caudal_max ); + property_wnd->txt_item_name->set_text (name); + property_wnd->show(); } return true; }