X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/07f4e929e15451f6af8ec4d941bcee6742917d0d..3a8788fb198a1e0590823745f39fbff81056db09:/Constructor/itemptywnd.cpp diff --git a/Constructor/itemptywnd.cpp b/Constructor/itemptywnd.cpp index d1d00c8..44d7392 100644 --- a/Constructor/itemptywnd.cpp +++ b/Constructor/itemptywnd.cpp @@ -1,9 +1,16 @@ #include "itemptywnd.h" +#include "item.h" ItemPtyWnd::ItemPtyWnd(BaseObjectType* cobject, const Glib::RefPtr& refGlade):PropertyWnd(cobject,refGlade) { refGlade->get_widget("spin_caudal", spin_caudal); refGlade->get_widget("txt_item_name",txt_item_name); + refGlade->get_widget("rd_btn_division", rd_btn_division); + refGlade->get_widget("rd_btn_union", rd_btn_union); + refGlade->get_widget("lb_type", lb_type); + + 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)); } ItemPtyWnd::~ItemPtyWnd() @@ -27,3 +34,13 @@ void ItemPtyWnd::on_btn_cancel_clicked() { hide(); } + +void ItemPtyWnd::on_rd_btn_union_clicked() +{ + item->is_union = true; +} + +void ItemPtyWnd::on_rd_btn_division_clicked() +{ + item->is_union = false; +}