map_win.cc
changeset 172 fc1e478697d3
parent 146 afd1d8bfcccd
child 174 95872af46fc4
     1.1 --- a/map_win.cc	Tue Oct 24 07:31:31 2006 +0000
     1.2 +++ b/map_win.cc	Wed Oct 25 13:21:24 2006 +0000
     1.3 @@ -20,6 +20,8 @@
     1.4  
     1.5    signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed));
     1.6  
     1.7 +  mytab.signal_title_ch().connect(sigc::mem_fun(*this, &MapWin::set_title));
     1.8 +
     1.9    e_combo_array=new MapSelector * [EDGE_PROPERTY_NUM];
    1.10  
    1.11    table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false);
    1.12 @@ -90,6 +92,8 @@
    1.13    {
    1.14      n_combo_array[i]->update_list(nml);
    1.15    }
    1.16 +
    1.17 +  mytab.active_maps_needed();
    1.18  }
    1.19  
    1.20  void MapWin::registerNewEdgeMap(std::string newmapname)
    1.21 @@ -116,3 +120,20 @@
    1.22    mytab.closeMapWin();
    1.23    return true;
    1.24  }
    1.25 +
    1.26 +void MapWin::changeEntry(bool isitedge, int prop, std::string mapname)
    1.27 +{
    1.28 +  if(isitedge)
    1.29 +    {
    1.30 +      e_combo_array[prop]->set_active_text(mapname);
    1.31 +    }
    1.32 +  else
    1.33 +    {
    1.34 +      n_combo_array[prop]->set_active_text(mapname);
    1.35 +    }
    1.36 +}
    1.37 +
    1.38 +void MapWin::set_title(std::string tabname)
    1.39 +{
    1.40 +  Gtk::Window::set_title("Map Setup - "+tabname);
    1.41 +}