1 #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H
2 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
5 #include <gtkmm/drawingarea.h>
6 #include <gtkmm/spinbutton.h>
7 #include <gtkmm/stock.h>
10 #include <libglademm.h>
11 #include "propertywnd.h"
12 #include "workplace.h"
16 class CItem:public Gtk::DrawingArea {
19 CItem(const char *filename);
21 virtual bool on_expose_event(GdkEventExpose* event);
22 virtual void on_menu_popup_propiedades();
23 virtual void on_menu_popup_rotar();
24 virtual void on_menu_popup_eliminar();
25 virtual void on_menu_popup_conectar();
26 Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
27 void set_position(int _x, int _y);
30 bool is_occupied_area(int _a, int _b);
37 Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea;
38 Glib::RefPtr<Gdk::Pixbuf> image;
39 PropertyWnd *property_wnd;