ladanyi@6: // -*- C++ -*- // ladanyi@6: ladanyi@6: #ifndef MAP_WIN_H ladanyi@6: #define MAP_WIN_H ladanyi@6: hegyi@28: class MapWin; hegyi@28: ladanyi@53: #include "all_include.h" ladanyi@53: #include "graph_displayer_canvas.h" ladanyi@53: #include "mapstorage.h" hegyi@82: #include "new_map_win.h" hegyi@81: #include "mapselector.h" ladanyi@6: #include ladanyi@6: #include ladanyi@6: ladanyi@6: ///This class is responsible for creating a window, ladanyi@6: ///on which the visualization attributes can be ladanyi@6: ///assigned to maps. ladanyi@6: class MapWin : public Gtk::Window ladanyi@6: { ladanyi@6: protected: ladanyi@6: ///The \ref GraphDisplayerCanvas on which the graph will be drawn. ladanyi@6: ///It has to be known for this class, because ladanyi@6: ///when a map assigned to a certain attribute ladanyi@6: ///a function of the \ref GraphDisplayerCanvas will be called. ladanyi@6: GraphDisplayerCanvas & gdc; ladanyi@6: ladanyi@6: ///The \ref MapStorage in which the visualizable maps are stored ladanyi@6: MapStorage & ms; ladanyi@6: hegyi@82: NewMapWin & nmw; hegyi@82: hegyi@28: Gtk::Table * table; ladanyi@6: hegyi@81: MapSelector ** e_combo_array, ** n_combo_array; ladanyi@6: hegyi@8: Gtk::Label * label; ladanyi@6: hegyi@28: Gtk::VBox vbox; hegyi@28: ladanyi@6: public: ladanyi@6: ///Constructor of MapWin creates the widgets shown in MapWin. hegyi@82: MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &, NewMapWin &); ladanyi@6: hegyi@28: ///This function is created to set the appropriate maps on the newly created node hegyi@30: void updateNode(Graph::Node); hegyi@28: hegyi@28: ///This function is created to set the appropriate maps on the newly created edge hegyi@30: void updateEdge(Graph::Edge); hegyi@28: hegyi@38: ///This function inserts name of the new edgemap in the list in the combo box hegyi@38: void registerNewEdgeMap(std::string); hegyi@38: hegyi@38: ///This function inserts name of the new nodemap in the list in the combo box hegyi@38: void registerNewNodeMap(std::string); hegyi@38: hegyi@30: virtual bool closeIfEscapeIsPressed(GdkEventKey*); hegyi@38: ladanyi@53: void update(); ladanyi@6: }; ladanyi@6: ladanyi@6: #endif //MAP_WIN_H