COIN-OR::LEMON - Graph Library

Changeset 177:40f3006fba2e in glemon-0.x for nbtab.cc


Ignore:
Timestamp:
10/30/06 15:57:48 (13 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3032
Message:

Redesign parameters can now be saved and loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nbtab.cc

    r174 r177  
    236236      double attraction, propulsation;
    237237      int iterations;
    238       gd_canvas->get_design_data(attraction, propulsation, iterations);
     238      mapstorage.get_design_data(attraction, propulsation, iterations);
    239239      designwin=new DesignWin("Design Setup - "+name, attraction, propulsation, iterations, *this);
    240240
    241       designwin->signal_attraction().connect(sigc::mem_fun(*this, &NoteBookTab::attraction_ch));
    242       designwin->signal_propulsation().connect(sigc::mem_fun(*this, &NoteBookTab::propulsation_ch));
    243       designwin->signal_iteration().connect(sigc::mem_fun(*gd_canvas, &GraphDisplayerCanvas::set_iteration));
     241      designwin->signal_attraction().connect(sigc::mem_fun(mapstorage, &MapStorage::set_attraction));
     242      designwin->signal_propulsation().connect(sigc::mem_fun(mapstorage, &MapStorage::set_propulsation));
     243      designwin->signal_iteration().connect(sigc::mem_fun(mapstorage, &MapStorage::set_iteration));
    244244      designwin->close_run().connect(sigc::mem_fun(*gd_canvas, &GraphDisplayerCanvas::reDesignGraph));
    245245
    246246      designwin->signal_delete_event().connect(sigc::mem_fun(*this, &NoteBookTab::closeDesignWin));
     247
     248      mapst2designwin=mapstorage.signal_design_win_ch().connect(sigc::mem_fun(*designwin, &DesignWin::set_data));
    247249
    248250      designwin->show();
     
    263265    {
    264266      designwinexists=false;
     267      mapst2designwin.disconnect();
    265268      delete designwin;
    266269    }
     
    287290}
    288291
    289 void NoteBookTab::attraction_ch(double v)
    290 {
    291   gd_canvas->set_attraction(v);
    292 }
    293 
    294 void NoteBookTab::propulsation_ch(double v)
    295 {
    296   gd_canvas->set_propulsation(v);
    297 }
    298 
    299 void NoteBookTab::iteration_ch(int v)
    300 {
    301   gd_canvas->set_iteration(v);
    302 }
    303 
    304292void NoteBookTab::active_maps_needed()
    305293{
Note: See TracChangeset for help on using the changeset viewer.