5 #include <gtkmm/drawingarea.h>
6 #include <gtkmm/spinbutton.h>
7 #include <gtkmm/stock.h>
10 #include <libglademm.h>
11 #include "itemptywnd.h"
15 class CItem:public Gtk::DrawingArea {
18 CItem(const char *filename);
20 virtual bool on_expose_event(GdkEventExpose* event);
21 virtual void on_menu_popup_propiedades();
22 virtual void on_menu_popup_rotar();
23 virtual void on_menu_popup_eliminar();
24 virtual void on_menu_popup_conectar();
25 Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
26 void set_position(int _x, int _y);
29 bool is_occupied_area(int _a, int _b);
32 void set_caudal(double _caudal);
34 void set_name(Glib::ustring _name);
35 Glib::ustring get_name();
42 Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea;
43 Glib::RefPtr<Gdk::Pixbuf> image;
44 ItemPtyWnd *property_wnd;