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@12: ///It has to be known for this class, because the appropriate hegyi@12: //callback function for each tool is implemented in that class hegyi@10: GraphDisplayerCanvas & gdc; hegyi@10: hegyi@12: ///Table that holds the tools. hegyi@10: Gtk::Table table; hegyi@10: hegyi@12: ///these buttons are RadioButtons with classic look hegyi@12: Gtk::RadioButton ** buttons; 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@30: virtual bool closeIfEscapeIsPressed(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