X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/fe35ed0badc6a1a01237027effb74b82acbdb9e5..4ddd90e71988f16c5ea79f5de86a9fcb63973ded:/Constructor/src/item.cpp?ds=sidebyside diff --git a/Constructor/src/item.cpp b/Constructor/src/item.cpp index d3624db..cbba331 100644 --- a/Constructor/src/item.cpp +++ b/Constructor/src/item.cpp @@ -61,7 +61,7 @@ bool CItem::on_expose_event(GdkEventExpose* event) // XXX Esto no deberia ser necesario! en todo caso devolves false en // vez de true para que siga llamando a los otros handlers :) //Gtk::DrawingArea::on_expose_event(event); - if (logic_connect && !is_logic) { + if (CItem::logic_connect) { draw_connectors(); } return true; @@ -113,6 +113,7 @@ Glib::ustring CItem::get_name() Glib::ustring CItem::get_other_name(int _id) { std::list::iterator i = listaItems->begin(); + std::cout << name << " " << _id << std::endl; while ( i != listaItems->end() ) { if ( (*i)->get_id() == _id ) return (*i)->get_name(); @@ -197,6 +198,11 @@ void CItem::get_out_logic_connect_position(int& _a, int& _b) _b = y; } +bool CItem::get_out_logic_connect() +{ + return false; +} + void CItem::update_logic_position() { }