nbtab.cc
changeset 172 fc1e478697d3
parent 160 14a76109b561
child 173 8339178ae43d
     1.1 --- a/nbtab.cc	Tue Oct 24 07:31:31 2006 +0000
     1.2 +++ b/nbtab.cc	Wed Oct 25 13:21:24 2006 +0000
     1.3 @@ -202,6 +202,7 @@
     1.4    if(!mapwinexists)
     1.5      {
     1.6        mapwin=new MapWin("Map Setup - "+name, mapstorage.getEdgeMapList(), mapstorage.getNodeMapList(), *this);
     1.7 +      mapst2mapwin=mapstorage.signal_map_win_ch().connect(sigc::mem_fun(*mapwin, &MapWin::changeEntry));
     1.8        mapwin->show();
     1.9        mapwinexists=true;
    1.10      }
    1.11 @@ -214,7 +215,7 @@
    1.12        double attraction, propulsation;
    1.13        int iterations;
    1.14        gd_canvas->get_design_data(attraction, propulsation, iterations);
    1.15 -      designwin=new DesignWin("Design Setup - "+name, attraction, propulsation, iterations);
    1.16 +      designwin=new DesignWin("Design Setup - "+name, attraction, propulsation, iterations, *this);
    1.17  
    1.18        designwin->signal_attraction().connect(sigc::mem_fun(*this, &NoteBookTab::attraction_ch));
    1.19        designwin->signal_propulsation().connect(sigc::mem_fun(*this, &NoteBookTab::propulsation_ch));
    1.20 @@ -230,6 +231,7 @@
    1.21  
    1.22  void NoteBookTab::closeMapWin()
    1.23  {
    1.24 +  mapst2mapwin.disconnect();
    1.25    mapwinexists=false;
    1.26    delete mapwin;
    1.27  }
    1.28 @@ -278,3 +280,7 @@
    1.29    gd_canvas->set_iteration(v);
    1.30  }
    1.31  
    1.32 +void NoteBookTab::active_maps_needed()
    1.33 +{
    1.34 +  mapstorage.broadcastActiveMaps();
    1.35 +}