COIN-OR::LEMON - Graph Library

source: glemon-0.x/algowin.h @ 106:853dd852abc7

gui
Last change on this file since 106:853dd852abc7 was 106:853dd852abc7, checked in by Hegyi Péter, 18 years ago

Communication with algorithm window is developed.

File size: 973 bytes
Line 
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
13enum {GENERAL, KRUSKAL, ALGO_NUM}; // algorithm IDs;
14
15class AlgoWin : public Gtk::Window
16{
17private:
18  AlgoBox * ab;
19  Gtk::Button * runbutton;
20  Gtk::Button * closebutton;
21
22protected:
23  sigc::signal<void, AlgoWin *> signal_closed; 
24  sigc::signal<void, AlgoWin *, std::string> signal_maplist_need; 
25
26public:
27  bool closeIfEscapeIsPressed(GdkEventKey* e);
28
29  sigc::signal<void, AlgoWin *> signal_closing();
30  sigc::signal<void, AlgoWin *, std::string> signal_maplist_needed();
31
32  void emit_tab_change(std::string);
33
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();
40};
41#endif //ALGOWIN_H
Note: See TracBrowser for help on using the repository browser.