COIN-OR::LEMON - Graph Library

source: glemon-0.x/map_win.h @ 82:ee009c0f4bcf

gui
Last change on this file since 82:ee009c0f4bcf was 82:ee009c0f4bcf, checked in by Hegyi Péter, 16 years ago

MapSelector? widget is able to pop up NewMap? window. At the moment I hope MapSelector? widget is done.

File size: 1.6 KB
RevLine 
[6]1// -*- C++ -*- //
2
3#ifndef MAP_WIN_H
4#define MAP_WIN_H
5
[28]6class MapWin;
7
[53]8#include "all_include.h"
9#include "graph_displayer_canvas.h"
10#include "mapstorage.h"
[82]11#include "new_map_win.h"
[81]12#include "mapselector.h"
[6]13#include <libgnomecanvasmm.h>
14#include <libgnomecanvasmm/polygon.h>
15
16///This class is responsible for creating a window,
17///on which the visualization attributes can be
18///assigned to maps.
19class MapWin : public Gtk::Window
20{
21protected:
22  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
23  ///It has to be known for this class, because
24  ///when a map assigned to a certain attribute
25  ///a function of the \ref GraphDisplayerCanvas will be called.
26  GraphDisplayerCanvas & gdc;
27
28  ///The \ref MapStorage in which the visualizable maps are stored
29  MapStorage & ms;
30
[82]31  NewMapWin & nmw;
32
[28]33  Gtk::Table * table;
[6]34 
[81]35  MapSelector ** e_combo_array, ** n_combo_array;
[6]36
[8]37  Gtk::Label * label;
[6]38
[28]39  Gtk::VBox vbox;
40
[6]41public:
42  ///Constructor of MapWin creates the widgets shown in MapWin.
[82]43  MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &, NewMapWin &);
[6]44
[28]45  ///This function is created to set the appropriate maps on the newly created node
[30]46  void updateNode(Graph::Node);
[28]47
48  ///This function is created to set the appropriate maps on the newly created edge
[30]49  void updateEdge(Graph::Edge);
[28]50
[38]51  ///This function inserts name of the new edgemap in the list in the combo box
52  void registerNewEdgeMap(std::string);
53
54  ///This function inserts name of the new nodemap in the list in the combo box
55  void registerNewNodeMap(std::string);
56
[30]57  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
[38]58
[53]59  void update();
[6]60};
61
62#endif //MAP_WIN_H
Note: See TracBrowser for help on using the repository browser.