hegyi@1593: // -*- C++ -*- // hegyi@1593: hegyi@1593: #ifndef NEWMAPWIN_H hegyi@1593: #define NEWMAPWIN_H hegyi@1593: hegyi@1593: class NewMapWin; hegyi@1593: hegyi@1593: #include hegyi@1593: #include hegyi@1593: #include hegyi@1593: #include hegyi@1593: hegyi@1593: ///This class is responsible for creating a window, hegyi@1593: ///on which the parameters of a new map can be set. hegyi@1593: hegyi@1593: class NewMapWin : public Gtk::Window hegyi@1593: { hegyi@1593: ///The \ref GraphDisplayerCanvas on which the graph will be drawn. hegyi@1593: ///It has to be known for this class, because hegyi@1593: ///when a map is created hegyi@1593: ///a function of the \ref GraphDisplayerCanvas will be called. hegyi@1593: GraphDisplayerCanvas & gdc; hegyi@1593: hegyi@1593: public: hegyi@1593: ///Constructor of NewMapWin creates the widgets shown in NewMapWin. hegyi@1593: NewMapWin(const std::string& title, GraphDisplayerCanvas &); hegyi@1593: hegyi@1593: hegyi@1593: ///Signal on button is connected to this function, hegyi@1593: ///Therefore this function determines whether to hegyi@1593: ///call the map/creatort function, and if yes, it hegyi@1593: //tells it the attributes.(name, default value) hegyi@1593: virtual void buttonPressed(); hegyi@1593: hegyi@1593: virtual bool closeIfEscapeIsPressed(GdkEventKey*); hegyi@1593: hegyi@1593: Gtk::Entry name, default_value; hegyi@1593: hegyi@1593: Gtk::VBox vbox; hegyi@1593: hegyi@1593: Gtk::Button * button; hegyi@1593: hegyi@1593: Gtk::Table * table; hegyi@1593: Gtk::Label * label; hegyi@1593: hegyi@1593: Gtk::RadioButton node, edge; hegyi@1593: }; hegyi@1593: hegyi@1593: #endif //NEWMAPWIN_H