hegyi@10: // -*- C++ -*- // hegyi@10: hegyi@10: #ifndef EDIT_WIN_H hegyi@10: #define EDIT_WIN_H hegyi@10: hegyi@10: #include hegyi@10: #include hegyi@10: #include hegyi@10: #include hegyi@10: #include hegyi@10: hegyi@10: ///This class is responsible for creating a window, hegyi@10: ///on which the wished editorial tool can be activated. hegyi@10: class EditWin : public Gtk::Window hegyi@10: { hegyi@10: protected: hegyi@10: ///The \ref GraphDisplayerCanvas on which the graph will be drawn. hegyi@10: ///It has to be known for this class, because hegyi@10: ///when a map assigned to a certain attribute hegyi@10: ///a function of the \ref GraphDisplayerCanvas will be called. hegyi@10: GraphDisplayerCanvas & gdc; hegyi@10: hegyi@10: Gtk::Table table; hegyi@10: hegyi@10: Gtk::Label * label; hegyi@10: Gtk::Button * button; hegyi@10: hegyi@10: public: hegyi@10: ///Constructor of EditWin creates the widgets shown in EditWin. hegyi@10: EditWin(const std::string& title, GraphDisplayerCanvas &); hegyi@10: hegyi@10: virtual bool close_if_escape_is_pressed(GdkEventKey*); hegyi@10: hegyi@10: ///Callback function in case of button pression. hegyi@10: ///It changes the actual tool ins editor's hand. hegyi@10: void makeEditorialToolChanged(int); hegyi@10: hegyi@10: }; hegyi@10: hegyi@10: #endif //EDIT_WIN_H