Uh, long comment arrives... Zoom update does not happen after editorial steps. Nodes initial color is light blue, if there is any item under them. Strange node-text relations disappeared. Initial values of new items are given now in a more common way. The wood-cutter way of handling default values of properties is now changed.
6 #include <all_include.h>
7 #include <mapstorage.h>
8 #include <graph_displayer_canvas.h>
9 #include <libgnomecanvasmm.h>
10 #include <libgnomecanvasmm/polygon.h>
12 ///This class is responsible for creating a window,
13 ///on which the wished editorial tool can be activated.
14 class EditWin : public Gtk::Window
17 ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
18 ///It has to be known for this class, because the appropriate
19 //callback function for each tool is implemented in that class
20 GraphDisplayerCanvas & gdc;
22 ///Table that holds the tools.
25 ///these buttons are RadioButtons with classic look
26 Gtk::RadioButton ** buttons;
29 ///Constructor of EditWin creates the widgets shown in EditWin.
30 EditWin(const std::string& title, GraphDisplayerCanvas &);
32 virtual bool closeIfEscapeIsPressed(GdkEventKey*);
34 ///Callback function in case of button pression.
35 ///It changes the actual tool ins editor's hand.
36 void makeEditorialToolChanged(int);