COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/kruskalbox.cc @ 1876:5ad84ad1b68f

Last change on this file since 1876:5ad84ad1b68f was 1876:5ad84ad1b68f, checked in by Hegyi Péter, 18 years ago

Communication with algorithm window is developed.

File size: 582 bytes
RevLine 
[1876]1#include <kruskalbox.h>
2
3KruskalBox::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   
8void KruskalBox::run()
9{
10  std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl;
11}
12   
13void 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}
Note: See TracBrowser for help on using the repository browser.