void Constructor::on_item_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context, CItem *item)
{
context->set_icon(item->get_image(), 5, 5);
- std::list<CItem *>::iterator i = listaItems.begin();
- while ( i != listaItems.end() ){
- (*i)->set_default_connector();
- i++;
- }
}
void Constructor::on_item_drag_data_get(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time)
void Constructor::on_btn_check_clicked()
{
std::list<CItem *>::iterator i = listaItems.begin();
+ while ( i != listaItems.end() ){
+ (*i)->set_default_connector();
+ (*i)->is_connected = false;
+ i++;
+ }
+
+ i = listaItems.begin();
if ( !listaItems.empty() ) {
while ( i != listaItems.end() ) {
CItem *temp = *i;
+ std::cout<< "item="<<temp->get_name()<<" "<<"check= "<<temp->check_connection()<<std::endl;
if ( !temp->check_connection() ) {
dlg_connect->set_title("Error");
dlg_label->set_text("Los elementos no estan conectados\n\t\tcorrectamente");