author | hegyi |
Wed, 04 Jan 2006 18:05:55 +0000 | |
branch | gui |
changeset 106 | 853dd852abc7 |
parent 103 | 3a263e57e1d9 |
child 108 | bf355fd6563e |
permissions | -rw-r--r-- |
hegyi@103 | 1 |
// -*- C++ -*- // |
hegyi@103 | 2 |
|
hegyi@103 | 3 |
#ifndef ALGOBOX_H |
hegyi@103 | 4 |
#define ALGOBOX_H |
hegyi@103 | 5 |
|
hegyi@103 | 6 |
class AlgoBox; |
hegyi@103 | 7 |
|
hegyi@103 | 8 |
#include <all_include.h> |
hegyi@103 | 9 |
#include <libgnomecanvasmm.h> |
hegyi@103 | 10 |
#include <libgnomecanvasmm/polygon.h> |
hegyi@103 | 11 |
|
hegyi@103 | 12 |
class AlgoBox : public Gtk::VBox |
hegyi@103 | 13 |
{ |
hegyi@106 | 14 |
sigc::signal<void, std::string> signal_maplist_need; |
hegyi@103 | 15 |
|
hegyi@106 | 16 |
Gtk::ComboBoxText tabcbt; |
hegyi@106 | 17 |
|
hegyi@106 | 18 |
protected: |
hegyi@103 | 19 |
Gtk::Label * label; |
hegyi@106 | 20 |
std::vector<Gtk::ComboBoxText *> nodemapcbts; |
hegyi@106 | 21 |
std::vector<Gtk::ComboBoxText *> edgemapcbts; |
hegyi@103 | 22 |
|
hegyi@106 | 23 |
public: |
hegyi@106 | 24 |
AlgoBox(){}; |
hegyi@106 | 25 |
AlgoBox(std::vector<std::string>, std::vector<std::string>, std::vector<std::string>); |
hegyi@103 | 26 |
|
hegyi@106 | 27 |
virtual void init(std::vector<std::string>, std::vector<std::string>, std::vector<std::string>); |
hegyi@103 | 28 |
|
hegyi@106 | 29 |
sigc::signal<void, std::string> signal_maplist_needed(); |
hegyi@106 | 30 |
void emit_tab_change(); |
hegyi@103 | 31 |
|
hegyi@106 | 32 |
void update_tablist( std::vector< std::string > tl ); |
hegyi@106 | 33 |
void update_maplist( std::vector< std::string >, std::vector< std::string >); |
hegyi@103 | 34 |
|
hegyi@106 | 35 |
void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &); |
hegyi@106 | 36 |
|
hegyi@106 | 37 |
virtual void run(); |
hegyi@106 | 38 |
|
hegyi@106 | 39 |
virtual void build_box(); |
hegyi@103 | 40 |
}; |
hegyi@103 | 41 |
#endif //ALGOBOX_H |