COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/algowin.h @ 1877:bed340c4f960

Last change on this file since 1877:bed340c4f960 was 1876:5ad84ad1b68f, checked in by Hegyi Péter, 16 years ago

Communication with algorithm window is developed.

File size: 973 bytes
RevLine 
[1871]1// -*- C++ -*- //
2
3#ifndef ALGOWIN_H
4#define ALGOWIN_H
5
6class AlgoWin;
7
8#include <all_include.h>
9#include <algobox.h>
10#include <libgnomecanvasmm.h>
11#include <libgnomecanvasmm/polygon.h>
12
[1876]13enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
[1871]14
[1876]15class AlgoWin : public Gtk::Window
[1871]16{
17private:
18  AlgoBox * ab;
[1876]19  Gtk::Button * runbutton;
20  Gtk::Button * closebutton;
[1871]21
22protected:
23  sigc::signal<void, AlgoWin *> signal_closed; 
[1876]24  sigc::signal<void, AlgoWin *, std::string> signal_maplist_need; 
[1871]25
26public:
[1876]27  bool closeIfEscapeIsPressed(GdkEventKey* e);
[1871]28
[1876]29  sigc::signal<void, AlgoWin *> signal_closing();
30  sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
[1871]31
[1876]32  void emit_tab_change(std::string);
[1871]33
[1876]34  AlgoWin(int, std::vector<std::string>, std::vector<std::string>, std::vector<std::string>);
35
36  void update_tablist(std::vector<std::string> tabnames);
37  void update_maplist(std::vector<std::string>, std::vector<std::string>);
38
39  void on_hide();
[1871]40};
41#endif //ALGOWIN_H
Note: See TracBrowser for help on using the repository browser.