gui/algobox.h
author hegyi
Thu, 12 Jan 2006 13:28:54 +0000
changeset 1891 56a718d144c4
parent 1884 9c061834b33b
child 1896 92ef660710f1
permissions -rw-r--r--
Documentation of NoteBookTab. Redundant function parameters are removed from other classes as well.
hegyi@1871
     1
// -*- C++ -*- //
hegyi@1871
     2
hegyi@1871
     3
#ifndef ALGOBOX_H
hegyi@1871
     4
#define ALGOBOX_H
hegyi@1871
     5
hegyi@1871
     6
class AlgoBox;
hegyi@1871
     7
hegyi@1871
     8
#include <all_include.h>
hegyi@1878
     9
#include <mapstorage.h>
hegyi@1884
    10
#include <mapselector.h>
hegyi@1871
    11
#include <libgnomecanvasmm.h>
hegyi@1871
    12
#include <libgnomecanvasmm/polygon.h>
hegyi@1871
    13
hegyi@1871
    14
class AlgoBox : public Gtk::VBox
hegyi@1871
    15
{
hegyi@1876
    16
  sigc::signal<void, std::string> signal_maplist_need;  
hegyi@1884
    17
  sigc::signal<void, std::string, bool> signal_newmapwin_need;  
hegyi@1876
    18
hegyi@1876
    19
protected:
hegyi@1884
    20
  Gtk::ComboBoxText tabcbt;
hegyi@1884
    21
  std::vector<MapSelector *> nodemapcbts;
hegyi@1884
    22
  std::vector<MapSelector *> edgemapcbts;
hegyi@1878
    23
hegyi@1878
    24
  MapStorage * mapstorage;
hegyi@1878
    25
hegyi@1876
    26
public:
hegyi@1876
    27
  AlgoBox(){};
hegyi@1878
    28
  AlgoBox(std::vector<std::string>);
hegyi@1871
    29
hegyi@1878
    30
  virtual void init(std::vector<std::string>);
hegyi@1871
    31
hegyi@1876
    32
  sigc::signal<void, std::string> signal_maplist_needed();  
hegyi@1884
    33
  sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;};  
hegyi@1876
    34
  void emit_tab_change();
hegyi@1871
    35
hegyi@1876
    36
  void update_tablist( std::vector< std::string > tl );
hegyi@1879
    37
  void update_maplist( MapStorage * );
hegyi@1878
    38
hegyi@1878
    39
  void nodemaplist_changed(std::string);
hegyi@1878
    40
  void edgemaplist_changed(std::string);
hegyi@1871
    41
hegyi@1876
    42
  void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &);
hegyi@1876
    43
  
hegyi@1876
    44
  virtual void run();
hegyi@1876
    45
  
hegyi@1876
    46
  virtual void build_box();
hegyi@1884
    47
hegyi@1884
    48
  virtual void emit_new_map_signal(bool);
hegyi@1886
    49
hegyi@1886
    50
  void addMapSelector(std::string, bool);
hegyi@1871
    51
};
hegyi@1871
    52
#endif //ALGOBOX_H