]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/workplace.h
cambios menores, la aplicacion no modifico su funcionamiento
[z.facultad/75.42/plaqui.git] / Constructor / workplace.h
index 7054a354e43afdbc6c6bf1afa658ce5ed8aa3d28..005eb8d35c37f33643fb2b1eeb4be69bc75ba14a 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef _H_WORKPLACE_
 #define _H_WORKPLACE_
 
 #ifndef _H_WORKPLACE_
 #define _H_WORKPLACE_
 
@@ -8,17 +7,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 *event);
+               virtual bool on_button_press_event(GdkEventButton *event);
+               virtual bool on_button_release_event(GdkEventButton *event);
+               void delete_item(int _id);      
+               std::list<t_line> lista_lineas;
+               t_line temp;
+               std::list<CItem *> *listaItems;
 };
 
 #endif
 };
 
 #endif