COIN-OR::LEMON - Graph Library

source: glemon-0.x/algowin.h @ 109:9f8dc346ac6e

gui
Last change on this file since 109:9f8dc346ac6e was 109:9f8dc346ac6e, checked in by Hegyi Péter, 18 years ago

Kruskal algorithm can be run from GUI from now on.

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