kruskalbox.cc
author hegyi
Thu, 05 Jan 2006 12:30:09 +0000
branchgui
changeset 108 bf355fd6563e
parent 106 853dd852abc7
child 109 9f8dc346ac6e
permissions -rw-r--r--
Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
hegyi@106
     1
#include <kruskalbox.h>
hegyi@106
     2
hegyi@108
     3
KruskalBox::KruskalBox(std::vector<std::string> t):AlgoBox()
hegyi@106
     4
{
hegyi@108
     5
  init(t);
hegyi@106
     6
}
hegyi@106
     7
    
hegyi@106
     8
void KruskalBox::run()
hegyi@106
     9
{
hegyi@108
    10
  
hegyi@106
    11
  std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl;
hegyi@106
    12
}
hegyi@106
    13
    
hegyi@106
    14
void KruskalBox::build_box()
hegyi@106
    15
{
hegyi@106
    16
  edgemapcbts.resize(1);
hegyi@106
    17
  Gtk::HBox * hbox=new Gtk::HBox();
hegyi@106
    18
hegyi@106
    19
  std::ostringstream o;
hegyi@106
    20
  o << "Edgecosts: ";
hegyi@106
    21
  label=new Gtk::Label(o.str());
hegyi@106
    22
hegyi@106
    23
  edgemapcbts[0]=new Gtk::ComboBoxText();
hegyi@106
    24
hegyi@106
    25
  hbox->pack_start(*label);
hegyi@106
    26
  hbox->pack_start(*(edgemapcbts[0]));
hegyi@106
    27
  pack_start(*hbox);
hegyi@106
    28
}