- a = new Splitter();
- else if (strcmp((const char *)selection_data->data, "canio_n.png")==0)
- a = new Conduct();
- else if (strcmp((const char *)selection_data->data, "y_n.png")==0)
- a = new Union();
- else if (strcmp((const char *)selection_data->data, "tanque_e.png")==0)
- a = new Cistern();
- else if (strcmp((const char *)selection_data->data, "bomba_e.png")==0)
- a =new Pump();
- else if (strcmp((const char *)selection_data->data, "exclusa_h.png")==0)
- a = new Exclusa();
- else if (strcmp((const char *)selection_data->data, "and_e.png")==0)
- a = new And();
- else if (strcmp((const char *)selection_data->data, "or_e.png")==0)
- a = new Or();
- else if (strcmp((const char *)selection_data->data, "not_e.png")==0)
- a = new Not();
+ a = new Splitter();
+ else if (strcmp((const char *)selection_data->data, "canio_n.png")==0)
+ a = new Conduct();
+ else if (strcmp((const char *)selection_data->data, "y_n.png")==0)
+ a = new Union();
+ else if (strcmp((const char *)selection_data->data, "tanque_e.png")==0)
+ a = new Cistern();
+ else if (strcmp((const char *)selection_data->data, "bomba_e.png")==0)
+ a =new Pump();
+ else if (strcmp((const char *)selection_data->data, "exclusa_h.png")==0)
+ a = new Exclusa();
+ else if (strcmp((const char *)selection_data->data, "drain_n.png")==0)
+ a = new Drain();
+ else if (strcmp((const char *)selection_data->data, "and_e.png")==0){
+ a = new And(); a->is_logic = true;
+ } else if (strcmp((const char *)selection_data->data, "or_e.png")==0) {
+ a = new Or(); a->is_logic = true;
+ } else if (strcmp((const char *)selection_data->data, "not_e.png")==0) {
+ a = new Not(); a->is_logic = true;
+ }