COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/map_win.h @ 1882:2c3f6c7e01b4

Last change on this file since 1882:2c3f6c7e01b4 was 1882:2c3f6c7e01b4, checked in by Hegyi Péter, 19 years ago

MapSelector? has become a standalone class.

File size: 1.2 KB
Line 
1// -*- C++ -*- //
2
3#ifndef MAP_WIN_H
4#define MAP_WIN_H
5
6class MapWin;
7
8#include <all_include.h>
9#include <nbtab.h>
10#include <mapselector.h>
11#include <libgnomecanvasmm.h>
12#include <libgnomecanvasmm/polygon.h>
13
14///This class is responsible for creating a window,
15///on which the visualization attributes can be
16///assigned to maps.
17class MapWin : public Gtk::Window
18{
19protected:
20  NoteBookTab & mytab;
21
22  Gtk::Table * table;
23 
24  MapSelector ** e_combo_array, ** n_combo_array;
25
26  Gtk::Label * label;
27
28  Gtk::VBox vbox;
29
30public:
31  ///Constructor of MapWin creates the widgets shown in MapWin.
32  MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, NoteBookTab & mw);
33
34  ~MapWin();
35
36  virtual bool on_delete_event(GdkEventAny *);
37
38  void nodeMapChanged(std::string, int);
39
40  void edgeMapChanged(std::string, int);
41
42  void newMapWinNeeded(bool, int);
43
44  ///This function inserts name of the new edgemap in the list in the combo box
45  void registerNewEdgeMap(std::string);
46
47  ///This function inserts name of the new nodemap in the list in the combo box
48  void registerNewNodeMap(std::string);
49
50  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
51
52  void update(std::vector<std::string>, std::vector<std::string>);
53};
54
55#endif //MAP_WIN_H
Note: See TracBrowser for help on using the repository browser.