Mapselector widget reached its first release, but there are still work to do on it, I know...
8 #include "all_include.h"
9 #include "graph_displayer_canvas.h"
10 #include "mapstorage.h"
11 #include "mapselector.h"
12 #include <libgnomecanvasmm.h>
13 #include <libgnomecanvasmm/polygon.h>
15 ///This class is responsible for creating a window,
16 ///on which the visualization attributes can be
18 class MapWin : public Gtk::Window
21 ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
22 ///It has to be known for this class, because
23 ///when a map assigned to a certain attribute
24 ///a function of the \ref GraphDisplayerCanvas will be called.
25 GraphDisplayerCanvas & gdc;
27 ///The \ref MapStorage in which the visualizable maps are stored
32 MapSelector ** e_combo_array, ** n_combo_array;
39 ///Constructor of MapWin creates the widgets shown in MapWin.
40 MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
42 ///This function is created to set the appropriate maps on the newly created node
43 void updateNode(Graph::Node);
45 ///This function is created to set the appropriate maps on the newly created edge
46 void updateEdge(Graph::Edge);
48 ///This function inserts name of the new edgemap in the list in the combo box
49 void registerNewEdgeMap(std::string);
51 ///This function inserts name of the new nodemap in the list in the combo box
52 void registerNewNodeMap(std::string);
54 virtual bool closeIfEscapeIsPressed(GdkEventKey*);