]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/workplace.h
puse un boton que simula unos layers, en realidad desactiva el dnd, miren lo del...
[z.facultad/75.42/plaqui.git] / Constructor / workplace.h
index 7054a354e43afdbc6c6bf1afa658ce5ed8aa3d28..67ba45ec2fac202e42f50196d16700d612a4300d 100644 (file)
@@ -8,17 +8,23 @@
 #include <libglademm.h>
 #include "item.h"
 
 #include <libglademm.h>
 #include "item.h"
 
+typedef struct {
+       int x,y,w,z;
+}t_line;
+
 class CItem;
 
 class WorkPlace:public Gtk::Fixed {
 class CItem;
 
 class WorkPlace:public Gtk::Fixed {
-public:
-       WorkPlace(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade);
-       virtual ~WorkPlace() {}
-       virtual bool on_expose_event(GdkEventExpose *);
-       virtual bool on_button_pressed(GdkEventButton *);
-       void delete_item(int);  
-               
-       std::list<CItem *> *listaItems;
+       public:
+               WorkPlace(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade);
+               virtual ~WorkPlace() {}
+               virtual bool on_expose_event(GdkEventExpose *);
+               virtual bool on_button_press_event(GdkEventButton *event);
+               virtual bool on_button_release_event(GdkEventButton *event);
+               void delete_item(int);  
+               std::list<CItem *> *listaItems;
+               std::list<t_line> lista_lineas;
+               t_line temp;
 };
 
 #endif
 };
 
 #endif