COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/algowin.h @ 1879:01d41844ef46

Last change on this file since 1879:01d41844ef46 was 1879:01d41844ef46, checked in by Hegyi Péter, 16 years ago

Kruskal algorithm can be run from GUI from now on.

File size: 928 bytes
RevLine 
[1871]1// -*- C++ -*- //
2
3#ifndef ALGOWIN_H
4#define ALGOWIN_H
5
6class AlgoWin;
7
8#include <all_include.h>
[1879]9//#include <mapstorage.h>
[1871]10#include <algobox.h>
11#include <libgnomecanvasmm.h>
12#include <libgnomecanvasmm/polygon.h>
13
[1879]14class MapStorage;
15
[1876]16enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
[1871]17
[1876]18class AlgoWin : public Gtk::Window
[1871]19{
20private:
21  AlgoBox * ab;
[1876]22  Gtk::Button * runbutton;
23  Gtk::Button * closebutton;
[1871]24
25protected:
26  sigc::signal<void, AlgoWin *> signal_closed; 
[1876]27  sigc::signal<void, AlgoWin *, std::string> signal_maplist_need; 
[1871]28
29public:
[1876]30  bool closeIfEscapeIsPressed(GdkEventKey* e);
[1871]31
[1876]32  sigc::signal<void, AlgoWin *> signal_closing();
33  sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
[1871]34
[1876]35  void emit_tab_change(std::string);
[1871]36
[1878]37  AlgoWin(int, std::vector<std::string>);
[1876]38
39  void update_tablist(std::vector<std::string> tabnames);
[1879]40  void update_maplist(MapStorage *);
[1876]41
42  void on_hide();
[1871]43};
44#endif //ALGOWIN_H
Note: See TracBrowser for help on using the repository browser.