COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/map_win.h @ 1579:ed7da82bbecf

Last change on this file since 1579:ed7da82bbecf was 1524:587a823bcdd0, checked in by Hegyi Péter, 19 years ago

Function names are corrected according to naming conventions.

File size: 1.8 KB
RevLine 
[1442]1// -*- C++ -*- //
2
3#ifndef MAP_WIN_H
4#define MAP_WIN_H
5
[1512]6class MapWin;
7
[1442]8#include <all_include.h>
9#include <mapstorage.h>
10#include <graph_displayer_canvas.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  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
21  ///It has to be known for this class, because
22  ///when a map assigned to a certain attribute
23  ///a function of the \ref GraphDisplayerCanvas will be called.
24  GraphDisplayerCanvas & gdc;
25
26  ///The \ref MapStorage in which the visualizable maps are stored
27  MapStorage & ms;
28
[1512]29  Gtk::Table * table;
[1442]30 
[1512]31  Gtk::Combo * e_combo_array, * n_combo_array;
[1442]32
[1446]33  Gtk::Label * label;
[1442]34
[1512]35  Gtk::VBox vbox;
36
[1442]37public:
38  ///Constructor of MapWin creates the widgets shown in MapWin.
39  MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
40
41  ///If a radiobutton is clicked, this function determines
42  ///which button was that and after that calls the
43  ///appropriate function of the \ref GraphDisplayerCanvas
44  ///to change the visible values of that attribute.
[1524]45  virtual void eComboChanged(int);
[1512]46  ///If a radiobutton is clicked, this function determines
47  ///which button was that and after that calls the
48  ///appropriate function of the \ref GraphDisplayerCanvas
49  ///to change the visible values of that attribute.
[1524]50  virtual void nComboChanged(int);
[1512]51
52  ///This function is created to set the appropriate maps on the newly created node
[1524]53  void updateNode(Graph::Node);
[1512]54
55  ///This function is created to set the appropriate maps on the newly created edge
[1524]56  void updateEdge(Graph::Edge);
[1512]57
[1524]58  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
[1442]59};
60
61#endif //MAP_WIN_H
Note: See TracBrowser for help on using the repository browser.