]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/item.h
Ahora el tanque gira bien
[z.facultad/75.42/plaqui.git] / Constructor / item.h
index 01b8f87eb6f1808ab13174a704eb3f52a44cf972..5aef5c60a4d9716de0e08b6a49c84dc71b62a244 100644 (file)
@@ -4,18 +4,24 @@
 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
 
 #include <gtkmm/drawingarea.h>
 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
 
 #include <gtkmm/drawingarea.h>
+#include <gtkmm/stock.h>
+#include <gtkmm.h>
 #include <gdkmm.h>
 
 #include <gdkmm.h>
 
-//Custom drawing area with modified expose_event.
 class CItem:public Gtk::DrawingArea {
 public:
        CItem();
        CItem(const char *filename);
        ~CItem();
        virtual bool on_expose_event(GdkEventExpose* event);
 class CItem:public Gtk::DrawingArea {
 public:
        CItem();
        CItem(const char *filename);
        ~CItem();
        virtual bool on_expose_event(GdkEventExpose* event);
+       virtual void on_menu_popup_opcion();
+       virtual void on_menu_popup_rotar();
+       virtual void on_menu_popup_eliminar();
        Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
 protected:
        Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
 protected:
+       Gtk::Menu menu_popup;
+       Gtk::Image menu_image;
        Glib::RefPtr<Gdk::Pixbuf> image;
 };
 
        Glib::RefPtr<Gdk::Pixbuf> image;
 };
 
-#endif //GTKMM_EXAMPLE_DRAWINGAREALINES_H
+#endif