gui
Line | |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.