diff -r d0ccb2fdeeff -r 104aab6e5d86 gui/edit_win.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gui/edit_win.h Fri Jun 10 12:11:50 2005 +0000 @@ -0,0 +1,40 @@ +// -*- C++ -*- // + +#ifndef EDIT_WIN_H +#define EDIT_WIN_H + +#include +#include +#include +#include +#include + +///This class is responsible for creating a window, +///on which the wished editorial tool can be activated. +class EditWin : public Gtk::Window +{ +protected: + ///The \ref GraphDisplayerCanvas on which the graph will be drawn. + ///It has to be known for this class, because + ///when a map assigned to a certain attribute + ///a function of the \ref GraphDisplayerCanvas will be called. + GraphDisplayerCanvas & gdc; + + Gtk::Table table; + + Gtk::Label * label; + Gtk::Button * button; + +public: + ///Constructor of EditWin creates the widgets shown in EditWin. + EditWin(const std::string& title, GraphDisplayerCanvas &); + + virtual bool close_if_escape_is_pressed(GdkEventKey*); + + ///Callback function in case of button pression. + ///It changes the actual tool ins editor's hand. + void makeEditorialToolChanged(int); + +}; + +#endif //EDIT_WIN_H