X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..8c6ff4ec334bdde66833cda6ea1eee4c0b187650:/Constructor/src/propertywnd.cpp diff --git a/Constructor/src/propertywnd.cpp b/Constructor/src/propertywnd.cpp index b233ca9..54e6d20 100644 --- a/Constructor/src/propertywnd.cpp +++ b/Constructor/src/propertywnd.cpp @@ -6,10 +6,14 @@ PropertyWnd::PropertyWnd(BaseObjectType* cobject, const Glib::RefPtrget_widget("btn_cancel", btn_cancel); refGlade->get_widget("btn_apply", btn_apply); refGlade->get_widget("btn_accept", btn_accept); + Glib::RefPtr ref = Gnome::Glade::Xml::create(PACKAGE_DATA_DIR"/plaqui-constructor/dialogs/constructor.glade", "dlg_name"); + ref->get_widget("dlg_name", dlg_name); + ref->get_widget("btn_dlg_ok", btn_dlg_ok); btn_cancel->signal_clicked().connect(SigC::slot(*this, &PropertyWnd::on_btn_cancel_clicked)); btn_accept->signal_clicked().connect(SigC::slot(*this, &PropertyWnd::on_btn_accept_clicked)); btn_apply->signal_clicked().connect(SigC::slot(*this, &PropertyWnd::on_btn_apply_clicked)); + btn_dlg_ok->signal_clicked().connect(SigC::slot(*this, &PropertyWnd::on_btn_dlg_name_clicked)); } PropertyWnd::~PropertyWnd() @@ -29,3 +33,8 @@ void PropertyWnd::on_btn_accept_clicked() void PropertyWnd::on_btn_apply_clicked() { } + +void PropertyWnd::on_btn_dlg_name_clicked() +{ + dlg_name->hide(); +}