-
#ifndef _H_WORKPLACE_
#define _H_WORKPLACE_
#include <gdkmm/gc.h>
#include <gtkmm.h>
#include <libglademm.h>
+#include "item.h"
+
+typedef struct {
+ int x,y,w,z;
+}t_line;
+
+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 *);
+ 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