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