3 WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade):Gtk::Fixed(cobject)
5 refGlade->get_widget_derived("viewport",viewport);
6 viewport->workplace = this;
9 WorkPlace::~WorkPlace()
13 bool WorkPlace::on_expose_event(GdkEventExpose *event)
16 for(x=0; x<get_width(); x+=32)
17 for (y=0; y<get_height();y+=32){
18 get_window()->draw_point (get_style()->get_black_gc(), x,y);
19 get_window()->draw_point (get_style()->get_black_gc(), x,y+1);
20 get_window()->draw_point (get_style()->get_black_gc(), x,y-1);
21 get_window()->draw_point (get_style()->get_black_gc(), x+1,y);
22 get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
25 /* std::list<t_line>::iterator i = lista_lineas.begin();
26 while ( i != lista_lineas.end() ) {
28 get_window()->draw_line (get_style()->get_black_gc(), temp.x,temp.y,temp.w,temp.z);
34 void WorkPlace::delete_item(int _id)
36 std::list<CItem*>::iterator i = listaItems->begin();
37 while ( i != listaItems->end() ){
39 if ( temp->get_id() == _id ){