// -*- 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