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