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