hegyi@1871
|
1 |
// -*- C++ -*- //
|
hegyi@1871
|
2 |
|
hegyi@1871
|
3 |
#ifndef ALGOWIN_H
|
hegyi@1871
|
4 |
#define ALGOWIN_H
|
hegyi@1871
|
5 |
|
hegyi@1871
|
6 |
class AlgoWin;
|
hegyi@1871
|
7 |
|
hegyi@1871
|
8 |
#include <all_include.h>
|
hegyi@1879
|
9 |
//#include <mapstorage.h>
|
hegyi@1871
|
10 |
#include <algobox.h>
|
hegyi@1871
|
11 |
#include <libgnomecanvasmm.h>
|
hegyi@1871
|
12 |
#include <libgnomecanvasmm/polygon.h>
|
hegyi@1871
|
13 |
|
hegyi@1879
|
14 |
class MapStorage;
|
hegyi@1879
|
15 |
|
hegyi@1876
|
16 |
enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
|
hegyi@1871
|
17 |
|
hegyi@1876
|
18 |
class AlgoWin : public Gtk::Window
|
hegyi@1871
|
19 |
{
|
hegyi@1871
|
20 |
private:
|
hegyi@1871
|
21 |
AlgoBox * ab;
|
hegyi@1876
|
22 |
Gtk::Button * runbutton;
|
hegyi@1876
|
23 |
Gtk::Button * closebutton;
|
hegyi@1871
|
24 |
|
hegyi@1871
|
25 |
protected:
|
hegyi@1871
|
26 |
sigc::signal<void, AlgoWin *> signal_closed;
|
hegyi@1876
|
27 |
sigc::signal<void, AlgoWin *, std::string> signal_maplist_need;
|
hegyi@1884
|
28 |
sigc::signal<void, std::string, bool> signal_newmapwin_need;
|
hegyi@1871
|
29 |
|
hegyi@1871
|
30 |
public:
|
hegyi@1876
|
31 |
bool closeIfEscapeIsPressed(GdkEventKey* e);
|
hegyi@1871
|
32 |
|
hegyi@1876
|
33 |
sigc::signal<void, AlgoWin *> signal_closing();
|
hegyi@1876
|
34 |
sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
|
hegyi@1884
|
35 |
sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;};
|
hegyi@1871
|
36 |
|
hegyi@1876
|
37 |
void emit_tab_change(std::string);
|
hegyi@1884
|
38 |
void emit_new_map_signal(std::string tabname, bool itisedge){signal_newmapwin_need.emit(tabname, itisedge);};
|
hegyi@1871
|
39 |
|
hegyi@1878
|
40 |
AlgoWin(int, std::vector<std::string>);
|
hegyi@1876
|
41 |
|
hegyi@1876
|
42 |
void update_tablist(std::vector<std::string> tabnames);
|
hegyi@1879
|
43 |
void update_maplist(MapStorage *);
|
hegyi@1876
|
44 |
|
hegyi@1876
|
45 |
void on_hide();
|
hegyi@1871
|
46 |
};
|
hegyi@1871
|
47 |
#endif //ALGOWIN_H
|