COIN-OR::LEMON - Graph Library

source: glemon-0.x/algowin.h @ 114:0ace7edbb06f

gui
Last change on this file since 114:0ace7edbb06f was 114:0ace7edbb06f, checked in by Hegyi Péter, 19 years ago

In algorithm window maps can be selected and reated through MapSelector? widget.

File size: 1.2 KB
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  sigc::signal<void, std::string, bool> signal_newmapwin_need; 
29
30public:
31  bool closeIfEscapeIsPressed(GdkEventKey* e);
32
33  sigc::signal<void, AlgoWin *> signal_closing();
34  sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
35  sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;}; 
36
37  void emit_tab_change(std::string);
38  void emit_new_map_signal(std::string tabname, bool itisedge){signal_newmapwin_need.emit(tabname, itisedge);};
39
40  AlgoWin(int, std::vector<std::string>);
41
42  void update_tablist(std::vector<std::string> tabnames);
43  void update_maplist(MapStorage *);
44
45  void on_hide();
46};
47#endif //ALGOWIN_H
Note: See TracBrowser for help on using the repository browser.