4 WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade):Gtk::Fixed(cobject)
8 WorkPlace::~WorkPlace()
12 bool WorkPlace::on_expose_event(GdkEventExpose *event)
15 for(x=0; x<get_width(); x+=32)
16 for (y=0; y<get_height();y+=32){
17 get_window()->draw_point (get_style()->get_black_gc(), x,y);
18 get_window()->draw_point (get_style()->get_black_gc(), x,y+1);
19 get_window()->draw_point (get_style()->get_black_gc(), x,y-1);
20 get_window()->draw_point (get_style()->get_black_gc(), x+1,y);
21 get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
24 std::list<t_line>::iterator i = lista_lineas.begin();
25 while ( i != lista_lineas.end() ) {
27 get_window()->draw_line (get_style()->get_black_gc(), temp.logic->get_position_x(),temp.logic->get_position_y(), temp.store->get_position_x(),temp.store->get_position_y());
33 void WorkPlace::delete_item(int _id)
35 std::list<CItem*>::iterator i = listaItems->begin();
36 while ( i != listaItems->end() ){
38 if ( temp->get_id() == _id ){
47 CItem* WorkPlace::get_logic_item(int _id)
49 std::list<CItem *>::iterator i = lista_logic_Items->begin();
50 while ( i != lista_logic_Items->end() ){
52 if ( temp->get_id() == _id )