-
-
#include "workplace.h"
-#include "item.h"
+
WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade):Gtk::Fixed(cobject)
{
-
}
-
bool WorkPlace::on_expose_event(GdkEventExpose *e)
{
int x, y;
}
return true;
}
+
+
+bool WorkPlace::on_button_pressed(GdkEventButton *e)
+{
+ return true;
+}
+
+void WorkPlace::delete_item(int id)
+{
+ std::list<CItem*>::iterator i = listaItems->begin();
+ while ( i != listaItems->end() ){
+ CItem *temp = *i;
+ if ( temp->get_id() == id ){
+ listaItems->erase(i);
+ delete temp;
+ break;
+ }
+ i++;
+ }
+}