kruskalbox.cc
author hegyi
Wed, 04 Jan 2006 18:05:55 +0000
branchgui
changeset 106 853dd852abc7
child 108 bf355fd6563e
permissions -rw-r--r--
Communication with algorithm window is developed.
hegyi@106
     1
#include <kruskalbox.h>
hegyi@106
     2
hegyi@106
     3
KruskalBox::KruskalBox(std::vector<std::string> t, std::vector<std::string> nm, std::vector<std::string> em):AlgoBox()
hegyi@106
     4
{
hegyi@106
     5
  init(t, nm, em);
hegyi@106
     6
}
hegyi@106
     7
    
hegyi@106
     8
void KruskalBox::run()
hegyi@106
     9
{
hegyi@106
    10
  std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl;
hegyi@106
    11
}
hegyi@106
    12
    
hegyi@106
    13
void KruskalBox::build_box()
hegyi@106
    14
{
hegyi@106
    15
  edgemapcbts.resize(1);
hegyi@106
    16
  Gtk::HBox * hbox=new Gtk::HBox();
hegyi@106
    17
hegyi@106
    18
  std::ostringstream o;
hegyi@106
    19
  o << "Edgecosts: ";
hegyi@106
    20
  label=new Gtk::Label(o.str());
hegyi@106
    21
hegyi@106
    22
  edgemapcbts[0]=new Gtk::ComboBoxText();
hegyi@106
    23
hegyi@106
    24
  hbox->pack_start(*label);
hegyi@106
    25
  hbox->pack_start(*(edgemapcbts[0]));
hegyi@106
    26
  pack_start(*hbox);
hegyi@106
    27
}