X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e963d0f06ef9f5002bd3083cea62e7590323623f..67143e098c00b0ee414bde39a78441d8e11fed8b:/Constructor/item.h diff --git a/Constructor/item.h b/Constructor/item.h index 900e335..1e188c1 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -3,27 +3,42 @@ #include #include +#include #include #include #include #include #include "propertywnd.h" +#include "workplace.h" + +class WorkPlace; class CItem:public Gtk::DrawingArea { public: CItem(); CItem(const char *filename); - ~CItem(); + virtual ~CItem(); virtual bool on_expose_event(GdkEventExpose* event); virtual void on_menu_popup_propiedades(); virtual void on_menu_popup_rotar(); virtual void on_menu_popup_eliminar(); + virtual void on_menu_popup_conectar(); Glib::RefPtr get_image() { return image; } + void set_position(int, int); + int get_position_x(); + int get_position_y(); + bool is_occupied_area(int, int); + void set_id(int); + int get_id(); + // habria que ocultarla.......................................... + WorkPlace *workplace; protected: + int ID; Gtk::Menu menu_popup; - Gtk::Image menu_image_delete, menu_image_rotar; + Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea; Glib::RefPtr image; PropertyWnd *property_wnd; + int x, y; }; #endif