algobox.h
author hegyi
Fri, 06 Jan 2006 23:16:51 +0000
branchgui
changeset 115 9e5196647a5a
parent 109 9f8dc346ac6e
child 116 2bd795bb9984
permissions -rw-r--r--
Forgotten file committed.
     1 // -*- C++ -*- //
     2 
     3 #ifndef ALGOBOX_H
     4 #define ALGOBOX_H
     5 
     6 class AlgoBox;
     7 
     8 #include <all_include.h>
     9 #include <mapstorage.h>
    10 #include <mapselector.h>
    11 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm/polygon.h>
    13 
    14 class AlgoBox : public Gtk::VBox
    15 {
    16   sigc::signal<void, std::string> signal_maplist_need;  
    17   sigc::signal<void, std::string, bool> signal_newmapwin_need;  
    18 
    19 protected:
    20   Gtk::ComboBoxText tabcbt;
    21   std::vector<MapSelector *> nodemapcbts;
    22   std::vector<MapSelector *> edgemapcbts;
    23 
    24   MapStorage * mapstorage;
    25 
    26 public:
    27   AlgoBox(){};
    28   AlgoBox(std::vector<std::string>);
    29 
    30   virtual void init(std::vector<std::string>);
    31 
    32   sigc::signal<void, std::string> signal_maplist_needed();  
    33   sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;};  
    34   void emit_tab_change();
    35 
    36   void update_tablist( std::vector< std::string > tl );
    37   void update_maplist( MapStorage * );
    38 
    39   void nodemaplist_changed(std::string);
    40   void edgemaplist_changed(std::string);
    41 
    42   void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &);
    43   
    44   virtual void run();
    45   
    46   virtual void build_box();
    47 
    48   virtual void emit_new_map_signal(bool);
    49 };
    50 #endif //ALGOBOX_H