Rev | Line | |
---|
[1871] | 1 | // -*- C++ -*- // |
---|
| 2 | |
---|
| 3 | #ifndef ALGOBOX_H |
---|
| 4 | #define ALGOBOX_H |
---|
| 5 | |
---|
| 6 | class AlgoBox; |
---|
| 7 | |
---|
| 8 | #include <all_include.h> |
---|
[1878] | 9 | #include <mapstorage.h> |
---|
[1884] | 10 | #include <mapselector.h> |
---|
[1871] | 11 | #include <libgnomecanvasmm.h> |
---|
| 12 | #include <libgnomecanvasmm/polygon.h> |
---|
| 13 | |
---|
| 14 | class AlgoBox : public Gtk::VBox |
---|
| 15 | { |
---|
[1876] | 16 | sigc::signal<void, std::string> signal_maplist_need; |
---|
[1884] | 17 | sigc::signal<void, std::string, bool> signal_newmapwin_need; |
---|
[1876] | 18 | |
---|
| 19 | protected: |
---|
[1884] | 20 | Gtk::ComboBoxText tabcbt; |
---|
| 21 | std::vector<MapSelector *> nodemapcbts; |
---|
| 22 | std::vector<MapSelector *> edgemapcbts; |
---|
[1878] | 23 | |
---|
| 24 | MapStorage * mapstorage; |
---|
| 25 | |
---|
[1876] | 26 | public: |
---|
| 27 | AlgoBox(){}; |
---|
[1878] | 28 | AlgoBox(std::vector<std::string>); |
---|
[1871] | 29 | |
---|
[1878] | 30 | virtual void init(std::vector<std::string>); |
---|
[1871] | 31 | |
---|
[1876] | 32 | sigc::signal<void, std::string> signal_maplist_needed(); |
---|
[1884] | 33 | sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;}; |
---|
[1876] | 34 | void emit_tab_change(); |
---|
[1871] | 35 | |
---|
[1876] | 36 | void update_tablist( std::vector< std::string > tl ); |
---|
[1879] | 37 | void update_maplist( MapStorage * ); |
---|
[1878] | 38 | |
---|
| 39 | void nodemaplist_changed(std::string); |
---|
| 40 | void edgemaplist_changed(std::string); |
---|
[1871] | 41 | |
---|
[1876] | 42 | void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &); |
---|
| 43 | |
---|
| 44 | virtual void run(); |
---|
| 45 | |
---|
| 46 | virtual void build_box(); |
---|
[1884] | 47 | |
---|
| 48 | virtual void emit_new_map_signal(bool); |
---|
[1871] | 49 | }; |
---|
| 50 | #endif //ALGOBOX_H |
---|
Note: See
TracBrowser
for help on using the repository browser.