ladanyi@1442: // -*- C++ -*- // ladanyi@1442: ladanyi@1442: #ifndef MAP_WIN_H ladanyi@1442: #define MAP_WIN_H ladanyi@1442: hegyi@1512: class MapWin; hegyi@1512: hegyi@1837: #include hegyi@1849: #include hegyi@1882: #include ladanyi@1442: #include ladanyi@1442: #include ladanyi@1442: ladanyi@1442: ///This class is responsible for creating a window, ladanyi@1442: ///on which the visualization attributes can be ladanyi@1442: ///assigned to maps. ladanyi@1442: class MapWin : public Gtk::Window ladanyi@1442: { ladanyi@1442: protected: hegyi@1849: NoteBookTab & mytab; ladanyi@1442: hegyi@1512: Gtk::Table * table; ladanyi@1442: hegyi@1731: MapSelector ** e_combo_array, ** n_combo_array; ladanyi@1442: hegyi@1446: Gtk::Label * label; ladanyi@1442: hegyi@1512: Gtk::VBox vbox; hegyi@1512: ladanyi@1442: public: ladanyi@1442: ///Constructor of MapWin creates the widgets shown in MapWin. hegyi@1849: MapWin(const std::string& title, std::vector, std::vector, NoteBookTab & mw); ladanyi@1442: hegyi@1838: ~MapWin(); hegyi@1838: hegyi@1838: virtual bool on_delete_event(GdkEventAny *); hegyi@1838: hegyi@1837: void nodeMapChanged(std::string, int); hegyi@1512: hegyi@1837: void edgeMapChanged(std::string, int); hegyi@1837: hegyi@1891: void newMapWinNeeded(bool); hegyi@1512: hegyi@1586: ///This function inserts name of the new edgemap in the list in the combo box hegyi@1586: void registerNewEdgeMap(std::string); hegyi@1586: hegyi@1586: ///This function inserts name of the new nodemap in the list in the combo box hegyi@1586: void registerNewNodeMap(std::string); hegyi@1586: hegyi@1524: virtual bool closeIfEscapeIsPressed(GdkEventKey*); hegyi@1586: hegyi@1837: void update(std::vector, std::vector); ladanyi@1442: }; ladanyi@1442: ladanyi@1442: #endif //MAP_WIN_H