]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Constructor/item.h
900e335271b89298efa9d1db7c775f9745878759
[z.facultad/75.42/plaqui.git] / Constructor / item.h
1 #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H
2 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
3
4 #include <iostream>
5 #include <gtkmm/drawingarea.h>
6 #include <gtkmm/stock.h>
7 #include <gtkmm.h>
8 #include <gdkmm.h>
9 #include <libglademm.h>
10 #include "propertywnd.h"
11
12 class CItem:public Gtk::DrawingArea {
13 public:
14         CItem();
15         CItem(const char *filename);
16         ~CItem();
17         virtual bool on_expose_event(GdkEventExpose* event);
18         virtual void on_menu_popup_propiedades();
19         virtual void on_menu_popup_rotar();
20         virtual void on_menu_popup_eliminar();
21         Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
22 protected:
23         Gtk::Menu menu_popup;
24         Gtk::Image menu_image_delete, menu_image_rotar;
25         Glib::RefPtr<Gdk::Pixbuf> image;
26         PropertyWnd *property_wnd;
27 };
28
29 #endif