gui/edit_win.h
changeset 1469 104aab6e5d86
child 1478 bc7ae573d77d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gui/edit_win.h	Fri Jun 10 12:11:50 2005 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +// -*- C++ -*- //
     1.5 +
     1.6 +#ifndef EDIT_WIN_H
     1.7 +#define EDIT_WIN_H
     1.8 +
     1.9 +#include <all_include.h>
    1.10 +#include <mapstorage.h>
    1.11 +#include <graph_displayer_canvas.h>
    1.12 +#include <libgnomecanvasmm.h>
    1.13 +#include <libgnomecanvasmm/polygon.h>
    1.14 +
    1.15 +///This class is responsible for creating a window,
    1.16 +///on which the wished editorial tool can be activated.
    1.17 +class EditWin : public Gtk::Window
    1.18 +{
    1.19 +protected:
    1.20 +  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
    1.21 +  ///It has to be known for this class, because
    1.22 +  ///when a map assigned to a certain attribute
    1.23 +  ///a function of the \ref GraphDisplayerCanvas will be called.
    1.24 +  GraphDisplayerCanvas & gdc;
    1.25 +
    1.26 +  Gtk::Table table;
    1.27 +  
    1.28 +  Gtk::Label * label;
    1.29 +  Gtk::Button * button;
    1.30 +
    1.31 +public:
    1.32 +  ///Constructor of EditWin creates the widgets shown in EditWin.
    1.33 +  EditWin(const std::string& title, GraphDisplayerCanvas &);
    1.34 +
    1.35 +  virtual bool close_if_escape_is_pressed(GdkEventKey*);
    1.36 +
    1.37 +  ///Callback function in case of button pression.
    1.38 +  ///It changes the actual tool ins editor's hand.
    1.39 +  void makeEditorialToolChanged(int);
    1.40 +
    1.41 +};
    1.42 +
    1.43 +#endif //EDIT_WIN_H