author | hegyi |
Fri, 17 Jun 2005 14:53:28 +0000 | |
branch | gui |
changeset 23 | d0e4ac77bafe |
parent 10 | 43ddd0c9d881 |
child 30 | f70bbee5350a |
permissions | -rwxr-xr-x |
hegyi@10 | 1 |
// -*- C++ -*- // |
hegyi@10 | 2 |
|
hegyi@10 | 3 |
#ifndef EDIT_WIN_H |
hegyi@10 | 4 |
#define EDIT_WIN_H |
hegyi@10 | 5 |
|
hegyi@10 | 6 |
#include <all_include.h> |
hegyi@10 | 7 |
#include <mapstorage.h> |
hegyi@10 | 8 |
#include <graph_displayer_canvas.h> |
hegyi@10 | 9 |
#include <libgnomecanvasmm.h> |
hegyi@10 | 10 |
#include <libgnomecanvasmm/polygon.h> |
hegyi@10 | 11 |
|
hegyi@10 | 12 |
///This class is responsible for creating a window, |
hegyi@10 | 13 |
///on which the wished editorial tool can be activated. |
hegyi@10 | 14 |
class EditWin : public Gtk::Window |
hegyi@10 | 15 |
{ |
hegyi@10 | 16 |
protected: |
hegyi@10 | 17 |
///The \ref GraphDisplayerCanvas on which the graph will be drawn. |
hegyi@12 | 18 |
///It has to be known for this class, because the appropriate |
hegyi@12 | 19 |
//callback function for each tool is implemented in that class |
hegyi@10 | 20 |
GraphDisplayerCanvas & gdc; |
hegyi@10 | 21 |
|
hegyi@12 | 22 |
///Table that holds the tools. |
hegyi@10 | 23 |
Gtk::Table table; |
hegyi@10 | 24 |
|
hegyi@12 | 25 |
///these buttons are RadioButtons with classic look |
hegyi@12 | 26 |
Gtk::RadioButton ** buttons; |
hegyi@10 | 27 |
|
hegyi@10 | 28 |
public: |
hegyi@10 | 29 |
///Constructor of EditWin creates the widgets shown in EditWin. |
hegyi@10 | 30 |
EditWin(const std::string& title, GraphDisplayerCanvas &); |
hegyi@10 | 31 |
|
hegyi@10 | 32 |
virtual bool close_if_escape_is_pressed(GdkEventKey*); |
hegyi@10 | 33 |
|
hegyi@10 | 34 |
///Callback function in case of button pression. |
hegyi@10 | 35 |
///It changes the actual tool ins editor's hand. |
hegyi@10 | 36 |
void makeEditorialToolChanged(int); |
hegyi@10 | 37 |
|
hegyi@10 | 38 |
}; |
hegyi@10 | 39 |
|
hegyi@10 | 40 |
#endif //EDIT_WIN_H |