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