edit_win.h
author hegyi
Mon, 25 Jul 2005 11:17:23 +0000
branchgui
changeset 38 9cab23d9b124
parent 12 1db7a6dd17f8
permissions -rwxr-xr-x
Continuing adding new maps.
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@30
    32
  virtual bool closeIfEscapeIsPressed(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