X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/15963eadb3f1cf8685de602f461c12d715d39c30..c90e905d76aed75379d220478e97fda0d34ec59b:/Constructor/src/constructor.cpp diff --git a/Constructor/src/constructor.cpp b/Constructor/src/constructor.cpp index 8229a48..4ab3b19 100644 --- a/Constructor/src/constructor.cpp +++ b/Constructor/src/constructor.cpp @@ -274,6 +274,7 @@ void Constructor::on_load_from_xml() file_open_selection->hide(); id = listaItems.size()+lista_logic_Items.size()+1; } + void Constructor::on_btn_file_ok_clicked() { std::list::iterator i = listaItems.begin(); @@ -282,8 +283,12 @@ void Constructor::on_btn_file_ok_clicked() fprintf(archivo, "\n"); fprintf (archivo,"\n"); while ( i != listaItems.end() ){ - CItem *temp = *i; - temp->save(archivo); + (*i)->save(archivo); + i++; + } + i = lista_logic_Items.begin(); + while ( i != lista_logic_Items.end() ) { + (*i)->save(archivo); i++; } fprintf(archivo,"\n"); @@ -469,6 +474,8 @@ void Constructor::on_item_drop_drag_received(const Glib::RefPtrdrag_finish(false, false, time); } + workplace->update_logic_position(); + workplace->queue_draw(); } void Constructor::on_btn_check_clicked() @@ -497,6 +504,14 @@ void Constructor::on_btn_check_clicked() dlg_label->set_text("Los elementos estan conectados\n\t\tcorrectamente"); dlg_connect->show(); } + std::cout<<"check_connection logic"<::iterator j = lista_logic_Items.begin(); + while ( j != lista_logic_Items.end() ) { + (*j)->check_connection(); + j++; + } + + } Pump *Constructor::loadBomba(xmlNodePtr nodo)