diff -r 4042761b21e3 -r e9f8f44f12a3 new_map_win.h --- a/new_map_win.h Mon Nov 21 12:07:05 2005 +0000 +++ b/new_map_win.h Mon Nov 21 18:03:20 2005 +0000 @@ -14,7 +14,7 @@ ///This class is responsible for creating a window, ///on which the parameters of a new map can be set. -class NewMapWin : public Gtk::Window +class NewMapWin : public Gtk::Dialog { ///The \ref GraphDisplayerCanvas on which the graph will be drawn. ///It has to be known for this class, because @@ -31,16 +31,13 @@ }; ///Constructor of NewMapWin creates the widgets shown in NewMapWin. - NewMapWin(const std::string& title, GraphDisplayerCanvas &); - + NewMapWin(const std::string& title, GraphDisplayerCanvas &, bool itisedge=true, bool edgenode=true); ///Signal on button is connected to this function, ///Therefore this function determines whether to ///call the map/creatort function, and if yes, it //tells it the attributes.(name, default value) - virtual void buttonPressed(); - - virtual void showByPreChoose(bool); + virtual void on_response(int response_id); virtual bool closeIfEscapeIsPressed(GdkEventKey*); @@ -58,10 +55,6 @@ Gtk::Entry name, default_value; - Gtk::VBox vbox; - - Gtk::Button * button; - Gtk::Table * table; Gtk::Label * label;