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