Reformatting: too long code lines. gui
authoralpar
Fri, 06 Jan 2006 10:42:58 +0000
branchgui
changeset 11099935b512b1c
parent 109 9f8dc346ac6e
child 111 ab3107255754
Reformatting: too long code lines.
kruskalbox.cc
     1.1 --- a/kruskalbox.cc	Thu Jan 05 16:54:34 2006 +0000
     1.2 +++ b/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()