X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/43fc1b3f57852f2af098fa7411e83220015aaa6f..31b3e321726d5c3fe720dd216687d3138523714f:/Constructor/itemptywnd.cpp?ds=sidebyside diff --git a/Constructor/itemptywnd.cpp b/Constructor/itemptywnd.cpp index 44d7392..7810e7c 100644 --- a/Constructor/itemptywnd.cpp +++ b/Constructor/itemptywnd.cpp @@ -8,7 +8,7 @@ ItemPtyWnd::ItemPtyWnd(BaseObjectType* cobject, const Glib::RefPtrget_widget("rd_btn_division", rd_btn_division); refGlade->get_widget("rd_btn_union", rd_btn_union); refGlade->get_widget("lb_type", lb_type); - + refGlade->get_widget("lb_max_fluid", lb_max_fluid); rd_btn_division->signal_clicked().connect(SigC::slot(*this,&ItemPtyWnd::on_rd_btn_division_clicked)); rd_btn_union->signal_clicked().connect(SigC::slot(*this,&ItemPtyWnd::on_rd_btn_union_clicked)); } @@ -37,10 +37,16 @@ void ItemPtyWnd::on_btn_cancel_clicked() void ItemPtyWnd::on_rd_btn_union_clicked() { + item->connect_vec[0].type = IN; + item->connect_vec[1].type = IN; + item->connect_vec[2].type = OUT; item->is_union = true; } void ItemPtyWnd::on_rd_btn_division_clicked() { + item->connect_vec[0].type = OUT; + item->connect_vec[1].type = OUT; + item->connect_vec[2].type = IN; item->is_union = false; }