gui/algobox.h
author hegyi
Thu, 12 Jan 2006 15:24:24 +0000
changeset 1893 4a35c7847c77
parent 1884 9c061834b33b
child 1896 92ef660710f1
permissions -rw-r--r--
Documenatation of MapWin.
     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   void addMapSelector(std::string, bool);
    51 };
    52 #endif //ALGOBOX_H