X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e5f9e15b59fc1ade287321c796ec7c4b9aa27600..d3ea2ff01c51df0df95cd23157267048e2c2fdcd:/Constructor/item.h?ds=inline diff --git a/Constructor/item.h b/Constructor/item.h index 01b8f87..87aaaed 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -1,21 +1,43 @@ - - #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H #define GTKMM_EXAMPLE_DRAWINGAREALINES_H +#include #include +#include +#include +#include #include +#include +#include "propertywnd.h" +#include "workplace.h" -//Custom drawing area with modified expose_event. +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 _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(); + WorkPlace *workplace; protected: + int ID; + Gtk::Menu menu_popup; + Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea; Glib::RefPtr image; + PropertyWnd *property_wnd; + int x, y; }; -#endif //GTKMM_EXAMPLE_DRAWINGAREALINES_H +#endif