hegyi@1876: // -*- C++ -*- // hegyi@1876: hegyi@1876: #ifndef KRUSKALBOX_H hegyi@1876: #define KRUSKALBOX_H hegyi@1876: hegyi@1876: class KruskalBox; hegyi@1876: hegyi@1876: #include hegyi@1876: #include hegyi@1876: #include hegyi@1876: #include hegyi@1876: #include hegyi@1876: hegyi@1896: ///Graphical interface to run Kruskal algorithm. hegyi@1896: hegyi@1896: ///Child of \ref AlgoBox, hegyi@1896: ///therefore the only task to do at implementation was to hegyi@1896: /// hegyi@1896: ///-call init function with correct parameters from correctly parametrized constructor hegyi@1896: /// hegyi@1896: ///-implement \ref build_box function hegyi@1896: /// hegyi@1896: ///-implement \ref run function hegyi@1876: class KruskalBox : public AlgoBox hegyi@1876: { hegyi@1896: ///Shows result of Kruskal algorithm hegyi@1879: Gtk::Label resultlabel; hegyi@1879: hegyi@1876: public: hegyi@1896: ///Calls \ref AlgoBox::init function to initialize class properly, automatically. hegyi@1878: KruskalBox(std::vector t); hegyi@1896: hegyi@1896: ///Prepare, run and postprocess Kruskal algorithm. hegyi@1896: hegyi@1896: ///\ref glemon works only with maps filled with double values hegyi@1896: ///at the moment. While Kruskal nedds a bool map as output. hegyi@1896: ///As postprocess this bool map should be transformed to hegyi@1896: ///double map. hegyi@1876: void run(); hegyi@1896: hegyi@1896: ///Builds the graphical design of the interface. hegyi@1876: void build_box(); hegyi@1876: }; hegyi@1876: #endif //KRUSKALBOX_H