X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/43aa212b9816129a8a2b08a8848bca407ef0129f..44b4462a9330a34738100db1408ba6517a29a299:/Constructor/item.h?ds=inline diff --git a/Constructor/item.h b/Constructor/item.h index 4bc193f..3c78eaf 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,11 +8,11 @@ #include #include #include -#include "propertywnd.h" -#include "workplace.h" +#include +#include "itemptywnd.h" class WorkPlace; - + class CItem:public Gtk::DrawingArea { public: CItem(); @@ -24,20 +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); + virtual void save(FILE *archivo) = 0; int get_position_x(); int get_position_y(); - bool is_occupied_area(int _a, int _b); - void set_id(int _id); int get_id(); - // habria que ocultarla.......................................... + int get_conector_in(); + int get_conector_out(); + 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); + Glib::ustring get_name(); WorkPlace *workplace; + Gtk::Entry *combo_entry; protected: - int ID; + int ID, conector_in, conector_out; + Glib::ustring name; + double caudal_max; Gtk::Menu menu_popup; Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea; Glib::RefPtr image; - PropertyWnd *property_wnd; + ItemPtyWnd *property_wnd; int x, y; };