COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/algobox.h @ 1895:5b01801efbc0

Last change on this file since 1895:5b01801efbc0 was 1886:8b225c2935e7, checked in by Hegyi Péter, 14 years ago

Creation of algorithm dialog is even simpler by the usage of the newly created addMapSelector function.

File size: 1.2 KB
Line 
1// -*- C++ -*- //
2
3#ifndef ALGOBOX_H
4#define ALGOBOX_H
5
6class 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
14class 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
19protected:
20  Gtk::ComboBoxText tabcbt;
21  std::vector<MapSelector *> nodemapcbts;
22  std::vector<MapSelector *> edgemapcbts;
23
24  MapStorage * mapstorage;
25
26public:
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
Note: See TracBrowser for help on using the repository browser.