X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/33cdbee1bf8051f1a4c9174aa518107793709fdd..a9318661e45dfb9853c6aba811670571a5ec3ea2:/Constructor/item.h diff --git a/Constructor/item.h b/Constructor/item.h index 9b8eabd..5b8b583 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "itemptywnd.h" class WorkPlace; @@ -23,19 +24,31 @@ public: virtual void on_menu_popup_eliminar(); virtual void on_menu_popup_conectar(); Glib::RefPtr get_image() { return image; } - void set_position(int _x, int _y); int get_position_x(); int get_position_y(); - bool is_occupied_area(int _a, int _b); - void set_id(int _id); int get_id(); - void set_caudal(double _caudal); + int get_conector_in(); + int get_conector_out(); + int get_img_actual(); double get_caudal(); + void set_position(int _x, int _y); + void set_id(int _id); + void set_caudal(double _caudal); void set_name(Glib::ustring _name); + void set_conector_in(int _in); + void set_conector_out(int _out); + bool is_occupied_area(int _a, int _b); + 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; Glib::ustring get_name(); WorkPlace *workplace; + Gtk::Entry *combo_entry; + std::list *listaItems; protected: - int ID; + int imgActual; + int ID, conector_in, conector_out; Glib::ustring name; double caudal_max; Gtk::Menu menu_popup;