diff -r 06f1f9a8d51f -r f1b70894b953 new_map_win.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/new_map_win.h Tue Jul 26 21:20:01 2005 +0000 @@ -0,0 +1,49 @@ +// -*- C++ -*- // + +#ifndef NEWMAPWIN_H +#define NEWMAPWIN_H + +class NewMapWin; + +#include +#include +#include +#include + +///This class is responsible for creating a window, +///on which the parameters of a new map can be set. + +class NewMapWin : public Gtk::Window +{ + ///The \ref GraphDisplayerCanvas on which the graph will be drawn. + ///It has to be known for this class, because + ///when a map is created + ///a function of the \ref GraphDisplayerCanvas will be called. + GraphDisplayerCanvas & gdc; + + public: + ///Constructor of NewMapWin creates the widgets shown in NewMapWin. + NewMapWin(const std::string& title, GraphDisplayerCanvas &); + + + ///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 bool closeIfEscapeIsPressed(GdkEventKey*); + + Gtk::Entry name, default_value; + + Gtk::VBox vbox; + + Gtk::Button * button; + + Gtk::Table * table; + Gtk::Label * label; + + Gtk::RadioButton node, edge; +}; + +#endif //NEWMAPWIN_H