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