diff -r 70e3c3646283 -r 2cd447b0bd3a dijkstrabox.h --- a/dijkstrabox.h Fri Oct 13 15:14:18 2006 +0000 +++ b/dijkstrabox.h Fri Oct 13 15:31:58 2006 +0000 @@ -7,7 +7,6 @@ #include #include -#include #include #include @@ -23,6 +22,7 @@ ///-implement \ref run function class DijkstraBox : public AlgoBox { +protected: ///Shows result of Dijkstra algorithm Gtk::Label resultlabel; @@ -36,6 +36,9 @@ ///Combobox for select target node Gtk::ComboBoxText target; + ///Gets to and from node from combobox + void get_from_to(Node &, Node &, Graph &); + public: ///Calls \ref AlgoBox::init function to initialize class properly, automatically. DijkstraBox(std::vector t); @@ -46,11 +49,28 @@ ///at the moment. While Dijkstra nedds a bool map as output. ///As postprocess this bool map should be transformed to ///double map. - void run(); + virtual void run(); ///Builds the graphical design of the interface. - void build_box(); + virtual void build_box(); void maplists_updated(); }; + +class SuurballeBox : public DijkstraBox +{ + ///number of paths to find + int num; + + ///Widget to set numbewr of paths to find + Gtk::SpinButton * num_set; + + ///Holder widget + Gtk::HBox hbox; + +public: + SuurballeBox(std::vector t); + void run(); + void build_box(); +}; #endif //DIJKSTRABOX_H