gui/algobox.h
author hegyi
Wed, 04 Jan 2006 18:05:55 +0000
changeset 1876 5ad84ad1b68f
parent 1871 3905d347112c
child 1878 409a31271efd
permissions -rw-r--r--
Communication with algorithm window is developed.
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@1871
     9
#include <libgnomecanvasmm.h>
hegyi@1871
    10
#include <libgnomecanvasmm/polygon.h>
hegyi@1871
    11
hegyi@1871
    12
class AlgoBox : public Gtk::VBox
hegyi@1871
    13
{
hegyi@1876
    14
  sigc::signal<void, std::string> signal_maplist_need;  
hegyi@1871
    15
  
hegyi@1876
    16
  Gtk::ComboBoxText tabcbt;
hegyi@1876
    17
hegyi@1876
    18
protected:
hegyi@1871
    19
  Gtk::Label * label;
hegyi@1876
    20
  std::vector<Gtk::ComboBoxText *> nodemapcbts;
hegyi@1876
    21
  std::vector<Gtk::ComboBoxText *> edgemapcbts;
hegyi@1871
    22
  
hegyi@1876
    23
public:
hegyi@1876
    24
  AlgoBox(){};
hegyi@1876
    25
  AlgoBox(std::vector<std::string>, std::vector<std::string>, std::vector<std::string>);
hegyi@1871
    26
hegyi@1876
    27
  virtual void init(std::vector<std::string>, std::vector<std::string>, std::vector<std::string>);
hegyi@1871
    28
hegyi@1876
    29
  sigc::signal<void, std::string> signal_maplist_needed();  
hegyi@1876
    30
  void emit_tab_change();
hegyi@1871
    31
hegyi@1876
    32
  void update_tablist( std::vector< std::string > tl );
hegyi@1876
    33
  void update_maplist( std::vector< std::string >, std::vector< std::string >);
hegyi@1871
    34
hegyi@1876
    35
  void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &);
hegyi@1876
    36
  
hegyi@1876
    37
  virtual void run();
hegyi@1876
    38
  
hegyi@1876
    39
  virtual void build_box();
hegyi@1871
    40
};
hegyi@1871
    41
#endif //ALGOBOX_H