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, 19 years ago

Communication with algorithm window is developed.

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