COIN-OR::LEMON - Graph Library

source: glemon-0.x/algowin.h @ 108:bf355fd6563e

gui
Last change on this file since 108:bf355fd6563e was 108:bf355fd6563e, checked in by Hegyi Péter, 14 years ago

Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.

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