]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/item.h
casi no se solapan items, y ademas se pueden eliminar
[z.facultad/75.42/plaqui.git] / Constructor / item.h
index 01b8f87eb6f1808ab13174a704eb3f52a44cf972..1e188c15cce8df1bc13806b0fd8cbb5ab9a29dd2 100644 (file)
@@ -1,21 +1,44 @@
-
-
 #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H
 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
 
 #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H
 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
 
+#include <iostream>
 #include <gtkmm/drawingarea.h>
 #include <gtkmm/drawingarea.h>
+#include <gtkmm/spinbutton.h>
+#include <gtkmm/stock.h>
+#include <gtkmm.h>
 #include <gdkmm.h>
 #include <gdkmm.h>
+#include <libglademm.h>
+#include "propertywnd.h"
+#include "workplace.h"
+
+class WorkPlace;
 
 
-//Custom drawing area with modified expose_event.
 class CItem:public Gtk::DrawingArea {
 public:
        CItem();
        CItem(const char *filename);
 class CItem:public Gtk::DrawingArea {
 public:
        CItem();
        CItem(const char *filename);
-       ~CItem();
+       virtual ~CItem();
        virtual bool on_expose_event(GdkEventExpose* event);
        virtual bool on_expose_event(GdkEventExpose* event);
+       virtual void on_menu_popup_propiedades();
+       virtual void on_menu_popup_rotar();
+       virtual void on_menu_popup_eliminar();
+       virtual void on_menu_popup_conectar();
        Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
        Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
+       void set_position(int, int);
+       int get_position_x();
+       int get_position_y();
+       bool is_occupied_area(int, int);
+       void set_id(int);
+       int get_id();
+       // habria que ocultarla..........................................
+       WorkPlace *workplace;
 protected:
 protected:
+       int ID; 
+       Gtk::Menu menu_popup;
+       Gtk::Image menu_image_delete, menu_image_rotar, menu_image_propiedades, menu_image_linea;
        Glib::RefPtr<Gdk::Pixbuf> image;
        Glib::RefPtr<Gdk::Pixbuf> image;
+       PropertyWnd *property_wnd;
+       int x, y;
 };
 
 };
 
-#endif //GTKMM_EXAMPLE_DRAWINGAREALINES_H
+#endif