COIN-OR::LEMON - Graph Library

source: glemon-0.x/kruskalbox.cc @ 108:bf355fd6563e

gui
Last change on this file since 108:bf355fd6563e was 108:bf355fd6563e, checked in by Hegyi Péter, 14 years ago

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.

File size: 519 bytes
Line 
1#include <kruskalbox.h>
2
3KruskalBox::KruskalBox(std::vector<std::string> t):AlgoBox()
4{
5  init(t);
6}
7   
8void KruskalBox::run()
9{
10 
11  std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl;
12}
13   
14void KruskalBox::build_box()
15{
16  edgemapcbts.resize(1);
17  Gtk::HBox * hbox=new Gtk::HBox();
18
19  std::ostringstream o;
20  o << "Edgecosts: ";
21  label=new Gtk::Label(o.str());
22
23  edgemapcbts[0]=new Gtk::ComboBoxText();
24
25  hbox->pack_start(*label);
26  hbox->pack_start(*(edgemapcbts[0]));
27  pack_start(*hbox);
28}
Note: See TracBrowser for help on using the repository browser.