Reformatting: too long code lines.
authoralpar
Fri, 06 Jan 2006 10:42:58 +0000
changeset 18800d6da6e6a775
parent 1879 01d41844ef46
child 1881 f40cdc2057c2
Reformatting: too long code lines.
gui/kruskalbox.cc
     1.1 --- a/gui/kruskalbox.cc	Thu Jan 05 16:54:34 2006 +0000
     1.2 +++ b/gui/kruskalbox.cc	Fri Jan 06 10:42:58 2006 +0000
     1.3 @@ -10,7 +10,8 @@
     1.4  void KruskalBox::run()
     1.5  {
     1.6    Graph g=mapstorage->graph;
     1.7 -  Graph::EdgeMap<double> * inputmap=((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
     1.8 +  Graph::EdgeMap<double> * inputmap=
     1.9 +    ((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
    1.10    Graph::EdgeMap<bool> outputmap(g);
    1.11    double res=kruskal(g, *inputmap, outputmap);
    1.12  
    1.13 @@ -18,20 +19,24 @@
    1.14    {
    1.15      if(outputmap[i])
    1.16        {
    1.17 -	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=1;
    1.18 +	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
    1.19 +					 get_active_text()]))[i]=1;
    1.20        }
    1.21      else
    1.22        {
    1.23 -	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->get_active_text()]))[i]=0;
    1.24 +	(*((mapstorage->edgemap_storage)[(edgemapcbts[OUTPUT])->
    1.25 +					 get_active_text()]))[i]=0;
    1.26        }
    1.27    }
    1.28  
    1.29    std::ostringstream o;
    1.30    o << "Result: " << res;
    1.31    resultlabel.set_text(o.str());
    1.32 -
    1.33 -  mapstorage->changeActiveMap(true, E_COLOR, (edgemapcbts[OUTPUT])->get_active_text());
    1.34 -  mapstorage->changeActiveMap(true, E_TEXT, (edgemapcbts[INPUT])->get_active_text());
    1.35 +  
    1.36 +  mapstorage->changeActiveMap(true, E_COLOR,
    1.37 +			      (edgemapcbts[OUTPUT])->get_active_text());
    1.38 +  mapstorage->changeActiveMap(true, E_TEXT,
    1.39 +			      (edgemapcbts[INPUT])->get_active_text());
    1.40  }
    1.41      
    1.42  void KruskalBox::build_box()