COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/algowin.h @ 1881:f40cdc2057c2

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

Kruskal algorithm can be run from GUI from now on.

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