8 #include "all_include.h"
9 #include "graph_displayer_canvas.h"
10 #include "mapstorage.h"
11 #include "new_map_win.h"
12 #include "mapselector.h"
13 #include <libgnomecanvasmm.h>
14 #include <libgnomecanvasmm/polygon.h>
16 ///This class is responsible for creating a window,
17 ///on which the visualization attributes can be
19 class MapWin : public Gtk::Window
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;
28 ///The \ref MapStorage in which the visualizable maps are stored
35 MapSelector ** e_combo_array, ** n_combo_array;
42 ///Constructor of MapWin creates the widgets shown in MapWin.
43 MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &, NewMapWin &);
45 ///This function is created to set the appropriate maps on the newly created node
46 void updateNode(Graph::Node);
48 ///This function is created to set the appropriate maps on the newly created edge
49 void updateEdge(Graph::Edge);
51 ///This function inserts name of the new edgemap in the list in the combo box
52 void registerNewEdgeMap(std::string);
54 ///This function inserts name of the new nodemap in the list in the combo box
55 void registerNewNodeMap(std::string);
57 virtual bool closeIfEscapeIsPressed(GdkEventKey*);