X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/44b4462a9330a34738100db1408ba6517a29a299..43fc1b3f57852f2af098fa7411e83220015aaa6f:/Constructor/item.h?ds=sidebyside diff --git a/Constructor/item.h b/Constructor/item.h index 3c78eaf..7c1e771 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -24,12 +24,13 @@ public: virtual void on_menu_popup_eliminar(); virtual void on_menu_popup_conectar(); Glib::RefPtr get_image() { return image; } - virtual void save(FILE *archivo) = 0; int get_position_x(); int get_position_y(); int get_id(); int get_conector_in(); int get_conector_out(); + int get_img_actual(); + Glib::ustring get_name(); double get_caudal(); void set_position(int _x, int _y); void set_id(int _id); @@ -38,10 +39,16 @@ public: void set_conector_in(int _in); void set_conector_out(int _out); bool is_occupied_area(int _a, int _b); - Glib::ustring get_name(); + bool is_other_connection_area(int _a, int _b); + virtual void save(FILE *archivo) = 0; + virtual bool check_connection()=0; + virtual bool is_connection_area(int _a, int _b)=0; WorkPlace *workplace; Gtk::Entry *combo_entry; + std::list *listaItems; + bool is_union; protected: + int imgActual; int ID, conector_in, conector_out; Glib::ustring name; double caudal_max;