Last change
on this file since 1878:409a31271efd was
1878:409a31271efd,
checked in by Hegyi Péter, 17 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 | |
---|
3 | KruskalBox::KruskalBox(std::vector<std::string> t):AlgoBox() |
---|
4 | { |
---|
5 | init(t); |
---|
6 | } |
---|
7 | |
---|
8 | void KruskalBox::run() |
---|
9 | { |
---|
10 | |
---|
11 | std::cout << "Kruskal inditasa, de meg nincsen keszen." << std::endl; |
---|
12 | } |
---|
13 | |
---|
14 | void 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.