gui/edit_win.h
author athos
Mon, 13 Jun 2005 16:10:36 +0000
changeset 1475 21aa0195aab9
child 1478 bc7ae573d77d
permissions -rwxr-xr-x
Cplex test disabled again.
hegyi@1469
     1
// -*- C++ -*- //
hegyi@1469
     2
hegyi@1469
     3
#ifndef EDIT_WIN_H
hegyi@1469
     4
#define EDIT_WIN_H
hegyi@1469
     5
hegyi@1469
     6
#include <all_include.h>
hegyi@1469
     7
#include <mapstorage.h>
hegyi@1469
     8
#include <graph_displayer_canvas.h>
hegyi@1469
     9
#include <libgnomecanvasmm.h>
hegyi@1469
    10
#include <libgnomecanvasmm/polygon.h>
hegyi@1469
    11
hegyi@1469
    12
///This class is responsible for creating a window,
hegyi@1469
    13
///on which the wished editorial tool can be activated.
hegyi@1469
    14
class EditWin : public Gtk::Window
hegyi@1469
    15
{
hegyi@1469
    16
protected:
hegyi@1469
    17
  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
hegyi@1469
    18
  ///It has to be known for this class, because
hegyi@1469
    19
  ///when a map assigned to a certain attribute
hegyi@1469
    20
  ///a function of the \ref GraphDisplayerCanvas will be called.
hegyi@1469
    21
  GraphDisplayerCanvas & gdc;
hegyi@1469
    22
hegyi@1469
    23
  Gtk::Table table;
hegyi@1469
    24
  
hegyi@1469
    25
  Gtk::Label * label;
hegyi@1469
    26
  Gtk::Button * button;
hegyi@1469
    27
hegyi@1469
    28
public:
hegyi@1469
    29
  ///Constructor of EditWin creates the widgets shown in EditWin.
hegyi@1469
    30
  EditWin(const std::string& title, GraphDisplayerCanvas &);
hegyi@1469
    31
hegyi@1469
    32
  virtual bool close_if_escape_is_pressed(GdkEventKey*);
hegyi@1469
    33
hegyi@1469
    34
  ///Callback function in case of button pression.
hegyi@1469
    35
  ///It changes the actual tool ins editor's hand.
hegyi@1469
    36
  void makeEditorialToolChanged(int);
hegyi@1469
    37
hegyi@1469
    38
};
hegyi@1469
    39
hegyi@1469
    40
#endif //EDIT_WIN_H