kruskalbox.cc
author ladanyi
Thu, 05 Jan 2006 01:54:24 +0000
branchgui
changeset 107 b1be10a9a2b6
child 108 bf355fd6563e
permissions -rw-r--r--
Set the move tool active by default.
     1 #include <kruskalbox.h>
     2 
     3 KruskalBox::KruskalBox(std::vector<std::string> t, std::vector<std::string> nm, std::vector<std::string> em):AlgoBox()
     4 {
     5   init(t, nm, em);
     6 }
     7     
     8 void KruskalBox::run()
     9 {
    10   std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl;
    11 }
    12     
    13 void KruskalBox::build_box()
    14 {
    15   edgemapcbts.resize(1);
    16   Gtk::HBox * hbox=new Gtk::HBox();
    17 
    18   std::ostringstream o;
    19   o << "Edgecosts: ";
    20   label=new Gtk::Label(o.str());
    21 
    22   edgemapcbts[0]=new Gtk::ComboBoxText();
    23 
    24   hbox->pack_start(*label);
    25   hbox->pack_start(*(edgemapcbts[0]));
    26   pack_start(*hbox);
    27 }