COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/algobox.h @ 1879:01d41844ef46

Last change on this file since 1879:01d41844ef46 was 1879:01d41844ef46, checked in by Hegyi Péter, 18 years ago

Kruskal algorithm can be run from GUI from now on.

File size: 998 bytes
RevLine 
[1871]1// -*- C++ -*- //
2
3#ifndef ALGOBOX_H
4#define ALGOBOX_H
5
6class AlgoBox;
7
8#include <all_include.h>
[1878]9#include <mapstorage.h>
[1871]10#include <libgnomecanvasmm.h>
11#include <libgnomecanvasmm/polygon.h>
12
13class AlgoBox : public Gtk::VBox
14{
[1876]15  sigc::signal<void, std::string> signal_maplist_need; 
[1871]16 
[1876]17  Gtk::ComboBoxText tabcbt;
18
19protected:
[1871]20  Gtk::Label * label;
[1876]21  std::vector<Gtk::ComboBoxText *> nodemapcbts;
22  std::vector<Gtk::ComboBoxText *> edgemapcbts;
[1878]23
24  MapStorage * mapstorage;
25
[1876]26public:
27  AlgoBox(){};
[1878]28  AlgoBox(std::vector<std::string>);
[1871]29
[1878]30  virtual void init(std::vector<std::string>);
[1871]31
[1876]32  sigc::signal<void, std::string> signal_maplist_needed(); 
33  void emit_tab_change();
[1871]34
[1876]35  void update_tablist( std::vector< std::string > tl );
[1879]36  void update_maplist( MapStorage * );
[1878]37
38  void nodemaplist_changed(std::string);
39  void edgemaplist_changed(std::string);
[1871]40
[1876]41  void update_cbt( std::vector< std::string > tl, Gtk::ComboBoxText &);
42 
43  virtual void run();
44 
45  virtual void build_box();
[1871]46};
47#endif //ALGOBOX_H
Note: See TracBrowser for help on using the repository browser.