X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/07f4e929e15451f6af8ec4d941bcee6742917d0d..34fb46485db0fb44f8dcc532866d988f8e54caa2:/Constructor/item.h diff --git a/Constructor/item.h b/Constructor/item.h index f9e460c..7c1e771 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -1,5 +1,5 @@ -#ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H -#define GTKMM_EXAMPLE_DRAWINGAREALINES_H +#ifndef _ITEM_H_ +#define _ITEM_H_ #include #include @@ -8,8 +8,8 @@ #include #include #include +#include #include "itemptywnd.h" -#include "workplace.h" class WorkPlace; @@ -24,19 +24,32 @@ 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(); + Glib::ustring get_name(); 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); - Glib::ustring get_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; WorkPlace *workplace; + Gtk::Entry *combo_entry; + std::list *listaItems; + bool is_union; protected: - int ID; + int imgActual; + int ID, conector_in, conector_out; Glib::ustring name; double caudal_max; Gtk::Menu menu_popup;