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