gui/new_map_win.h
changeset 1823 cb082cdf3667
parent 1814 0f02ced2e2ba
child 1837 8dd6160ff699
     1.1 --- a/gui/new_map_win.h	Mon Nov 21 17:59:27 2005 +0000
     1.2 +++ b/gui/new_map_win.h	Mon Nov 21 18:03:20 2005 +0000
     1.3 @@ -14,7 +14,7 @@
     1.4  ///This class is responsible for creating a window,
     1.5  ///on which the parameters of a new map can be set.
     1.6  
     1.7 -class NewMapWin : public Gtk::Window
     1.8 +class NewMapWin : public Gtk::Dialog
     1.9  {
    1.10    ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
    1.11    ///It has to be known for this class, because
    1.12 @@ -31,16 +31,13 @@
    1.13    };
    1.14    
    1.15    ///Constructor of NewMapWin creates the widgets shown in NewMapWin.
    1.16 -  NewMapWin(const std::string& title, GraphDisplayerCanvas &);
    1.17 -
    1.18 +  NewMapWin(const std::string& title, GraphDisplayerCanvas &, bool itisedge=true, bool edgenode=true);
    1.19    
    1.20    ///Signal on button is connected to this function,
    1.21    ///Therefore this function determines whether to
    1.22    ///call the map/creatort function, and if yes, it
    1.23    //tells it the attributes.(name, default value)
    1.24 -  virtual void buttonPressed();
    1.25 -  
    1.26 -  virtual void showByPreChoose(bool);
    1.27 +  virtual void on_response(int response_id);
    1.28  
    1.29    virtual bool closeIfEscapeIsPressed(GdkEventKey*);
    1.30  
    1.31 @@ -58,10 +55,6 @@
    1.32  
    1.33    Gtk::Entry name, default_value;
    1.34  
    1.35 -  Gtk::VBox vbox;
    1.36 -
    1.37 -  Gtk::Button * button;
    1.38 -
    1.39    Gtk::Table * table;
    1.40    Gtk::Label * label;
    1.41