map_win.cc
branchgui
changeset 53 e73d7540bd24
parent 48 b8ec84524fa2
child 62 80eefca04b1e
     1.1 --- a/map_win.cc	Thu Jul 28 19:09:39 2005 +0000
     1.2 +++ b/map_win.cc	Fri Jul 29 12:01:37 2005 +0000
     1.3 @@ -1,4 +1,4 @@
     1.4 -#include <map_win.h>
     1.5 +#include "map_win.h"
     1.6  #include <set>
     1.7  
     1.8  bool MapWin::closeIfEscapeIsPressed(GdkEventKey* e)
     1.9 @@ -120,6 +120,41 @@
    1.10  
    1.11  }
    1.12  
    1.13 +void MapWin::update()
    1.14 +{
    1.15 +  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    1.16 +  {
    1.17 +    //filling in combo box with choices
    1.18 +    std::list<Glib::ustring> listStrings;
    1.19 +
    1.20 +    listStrings.push_back("Default");
    1.21 +
    1.22 +    std::map< std::string,Graph::EdgeMap<double> * >::iterator emsi=ms.beginOfEdgeMaps();
    1.23 +    for(;emsi!=ms.endOfEdgeMaps();emsi++)
    1.24 +    {
    1.25 +      listStrings.push_back(emsi->first);
    1.26 +    }
    1.27 +
    1.28 +    e_combo_array[i].set_popdown_strings(listStrings);
    1.29 +  }
    1.30 +  for(int i=0;i<NODE_PROPERTY_NUM;i++)
    1.31 +  {
    1.32 +    //filling in combo box with choices
    1.33 +    std::list<Glib::ustring> listStrings;
    1.34 +
    1.35 +    listStrings.push_back("Default");
    1.36 +
    1.37 +    std::map< std::string,Graph::NodeMap<double> * >::iterator emsi=ms.beginOfNodeMaps();
    1.38 +
    1.39 +    for(;emsi!=ms.endOfNodeMaps();emsi++)
    1.40 +    {
    1.41 +      listStrings.push_back(emsi->first);
    1.42 +    }
    1.43 +
    1.44 +    n_combo_array[i].set_popdown_strings(listStrings);
    1.45 +  }
    1.46 +}
    1.47 +
    1.48  void MapWin::eComboChanged(int prop)
    1.49  {
    1.50