gui/kruskalbox.h
author ladanyi
Thu, 23 Mar 2006 19:57:14 +0000
changeset 2012 224cd6aacfc1
parent 1879 01d41844ef46
permissions -rw-r--r--
- added gettext infrastructure to the gui
- the gui has a separate configure script now
- other minor changes
hegyi@1876
     1
// -*- C++ -*- //
hegyi@1876
     2
hegyi@1876
     3
#ifndef KRUSKALBOX_H
hegyi@1876
     4
#define KRUSKALBOX_H
hegyi@1876
     5
hegyi@1876
     6
class KruskalBox;
hegyi@1876
     7
hegyi@1876
     8
#include <all_include.h>
hegyi@1876
     9
#include <algobox.h>
hegyi@1876
    10
#include <lemon/kruskal.h>
hegyi@1876
    11
#include <libgnomecanvasmm.h>
hegyi@1876
    12
#include <libgnomecanvasmm/polygon.h>
hegyi@1876
    13
hegyi@1896
    14
///Graphical interface to run Kruskal algorithm.
hegyi@1896
    15
hegyi@1896
    16
///Child of \ref AlgoBox,
hegyi@1896
    17
///therefore the only task to do at implementation was to
hegyi@1896
    18
///
hegyi@1896
    19
///-call init function with correct parameters from correctly parametrized constructor
hegyi@1896
    20
///
hegyi@1896
    21
///-implement \ref build_box function
hegyi@1896
    22
///
hegyi@1896
    23
///-implement \ref run function
hegyi@1876
    24
class KruskalBox : public AlgoBox
hegyi@1876
    25
{
hegyi@1896
    26
  ///Shows result of Kruskal algorithm
hegyi@1879
    27
  Gtk::Label resultlabel;
hegyi@1879
    28
hegyi@1876
    29
public:
hegyi@1896
    30
  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
hegyi@1878
    31
  KruskalBox(std::vector<std::string> t);
hegyi@1896
    32
hegyi@1896
    33
  ///Prepare, run and postprocess Kruskal algorithm.
hegyi@1896
    34
hegyi@1896
    35
  ///\ref glemon works only with maps filled with double values
hegyi@1896
    36
  ///at the moment. While Kruskal nedds a bool map as output.
hegyi@1896
    37
  ///As postprocess this bool map should be transformed to
hegyi@1896
    38
  ///double map.
hegyi@1876
    39
  void run();
hegyi@1896
    40
hegyi@1896
    41
  ///Builds the graphical design of the interface.
hegyi@1876
    42
  void build_box();
hegyi@1876
    43
};
hegyi@1876
    44
#endif //KRUSKALBOX_H