author | hegyi |
Fri, 06 Jan 2006 13:58:49 +0000 | |
changeset 1881 | f40cdc2057c2 |
parent 1878 | 409a31271efd |
child 1884 | 9c061834b33b |
permissions | -rw-r--r-- |
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@1871 | 28 |
|
hegyi@1871 | 29 |
public: |
hegyi@1876 | 30 |
bool closeIfEscapeIsPressed(GdkEventKey* e); |
hegyi@1871 | 31 |
|
hegyi@1876 | 32 |
sigc::signal<void, AlgoWin *> signal_closing(); |
hegyi@1876 | 33 |
sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed(); |
hegyi@1871 | 34 |
|
hegyi@1876 | 35 |
void emit_tab_change(std::string); |
hegyi@1871 | 36 |
|
hegyi@1878 | 37 |
AlgoWin(int, std::vector<std::string>); |
hegyi@1876 | 38 |
|
hegyi@1876 | 39 |
void update_tablist(std::vector<std::string> tabnames); |
hegyi@1879 | 40 |
void update_maplist(MapStorage *); |
hegyi@1876 | 41 |
|
hegyi@1876 | 42 |
void on_hide(); |
hegyi@1871 | 43 |
}; |
hegyi@1871 | 44 |
#endif //ALGOWIN_H |