1.1 --- a/dijkstrabox.h Fri Oct 13 15:14:18 2006 +0000
1.2 +++ b/dijkstrabox.h Fri Oct 13 15:31:58 2006 +0000
1.3 @@ -7,7 +7,6 @@
1.4
1.5 #include <all_include.h>
1.6 #include <algobox.h>
1.7 -#include <lemon/dijkstra.h>
1.8 #include <libgnomecanvasmm.h>
1.9 #include <libgnomecanvasmm/polygon.h>
1.10
1.11 @@ -23,6 +22,7 @@
1.12 ///-implement \ref run function
1.13 class DijkstraBox : public AlgoBox
1.14 {
1.15 +protected:
1.16 ///Shows result of Dijkstra algorithm
1.17 Gtk::Label resultlabel;
1.18
1.19 @@ -36,6 +36,9 @@
1.20 ///Combobox for select target node
1.21 Gtk::ComboBoxText target;
1.22
1.23 + ///Gets to and from node from combobox
1.24 + void get_from_to(Node &, Node &, Graph &);
1.25 +
1.26 public:
1.27 ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
1.28 DijkstraBox(std::vector<std::string> t);
1.29 @@ -46,11 +49,28 @@
1.30 ///at the moment. While Dijkstra nedds a bool map as output.
1.31 ///As postprocess this bool map should be transformed to
1.32 ///double map.
1.33 - void run();
1.34 + virtual void run();
1.35
1.36 ///Builds the graphical design of the interface.
1.37 - void build_box();
1.38 + virtual void build_box();
1.39
1.40 void maplists_updated();
1.41 };
1.42 +
1.43 +class SuurballeBox : public DijkstraBox
1.44 +{
1.45 + ///number of paths to find
1.46 + int num;
1.47 +
1.48 + ///Widget to set numbewr of paths to find
1.49 + Gtk::SpinButton * num_set;
1.50 +
1.51 + ///Holder widget
1.52 + Gtk::HBox hbox;
1.53 +
1.54 +public:
1.55 + SuurballeBox(std::vector<std::string> t);
1.56 + void run();
1.57 + void build_box();
1.58 +};
1.59 #endif //DIJKSTRABOX_H