X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/65e0e3da6246674b0014c3a7c10aeecb61499725..5f3d1517e8f6cd322669c60257ca28400e0399ab:/Constructor/src/workplace.cpp?ds=sidebyside diff --git a/Constructor/src/workplace.cpp b/Constructor/src/workplace.cpp index 1d93082..548b771 100644 --- a/Constructor/src/workplace.cpp +++ b/Constructor/src/workplace.cpp @@ -23,11 +23,14 @@ bool WorkPlace::on_expose_event(GdkEventExpose *event) get_window()->draw_point (get_style()->get_black_gc(), x-1,y); } - Glib::RefPtr gc = get_style()->get_black_gc(); - Gdk::Color color; - color.set_rgb(255,0,0); - gc->set_rgb_bg_color(color); - get_style()->set_black(color); + if ( *logica ) { + std::list::iterator j = listaItems->begin(); + while ( j != listaItems->end() ) { + (*j)->draw_connectors(); + j++; + } + } + int a, b, w, z; std::list::iterator i = lista_lineas_in.begin(); while ( i != lista_lineas_in.end() ) { @@ -60,7 +63,6 @@ void WorkPlace::delete_item(int _id) while ( i != listaItems->end() ){ CItem *temp = *i; if ( temp->get_id() == _id ){ -// delete_line(_id); listaItems->erase(i); delete temp; break; @@ -71,7 +73,6 @@ void WorkPlace::delete_item(int _id) while ( i != lista_logic_Items->end() ){ CItem *temp = *i; if ( temp->get_id() == _id ){ -// delete_line(_id); lista_logic_Items->erase(i); delete temp; break;