]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Constructor/workplace.h
6d81e4f0ff9f091af1ca0ff7a55729c83afb35f7
[z.facultad/75.42/plaqui.git] / Constructor / workplace.h
1 #ifndef _H_WORKPLACE_
2 #define _H_WORKPLACE_
3
4 #include <gtkmm/fixed.h>
5 #include <gdkmm/gc.h>
6 #include <gtkmm.h>
7 #include <libglademm.h>
8 #include "activezone.h"
9 #include "item.h"
10
11 typedef struct {
12         int x,y,w,z;
13 }t_line;
14
15 class CItem;
16
17 class WorkPlace:public Gtk::Fixed {
18         public:
19                 WorkPlace(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade);
20                 virtual ~WorkPlace();
21                 virtual bool on_expose_event(GdkEventExpose *event);
22                 virtual bool on_button_press_event(GdkEventButton *event);
23                 virtual bool on_button_release_event(GdkEventButton *event);
24                 void delete_item(int _id);      
25                 std::list<t_line> lista_lineas;
26                 t_line temp;
27                 std::list<CItem *> *listaItems;
28                 ActiveZone *viewport;
29 };
30
31 #endif