COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/edit_win.h @ 1469:104aab6e5d86

Last change on this file since 1469:104aab6e5d86 was 1469:104aab6e5d86, checked in by Hegyi Péter, 19 years ago

Sorry, forgot to commit two new files.

  • Property exe set to *
File size: 1.0 KB
Line 
1// -*- C++ -*- //
2
3#ifndef EDIT_WIN_H
4#define EDIT_WIN_H
5
6#include <all_include.h>
7#include <mapstorage.h>
8#include <graph_displayer_canvas.h>
9#include <libgnomecanvasmm.h>
10#include <libgnomecanvasmm/polygon.h>
11
12///This class is responsible for creating a window,
13///on which the wished editorial tool can be activated.
14class EditWin : public Gtk::Window
15{
16protected:
17  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
18  ///It has to be known for this class, because
19  ///when a map assigned to a certain attribute
20  ///a function of the \ref GraphDisplayerCanvas will be called.
21  GraphDisplayerCanvas & gdc;
22
23  Gtk::Table table;
24 
25  Gtk::Label * label;
26  Gtk::Button * button;
27
28public:
29  ///Constructor of EditWin creates the widgets shown in EditWin.
30  EditWin(const std::string& title, GraphDisplayerCanvas &);
31
32  virtual bool close_if_escape_is_pressed(GdkEventKey*);
33
34  ///Callback function in case of button pression.
35  ///It changes the actual tool ins editor's hand.
36  void makeEditorialToolChanged(int);
37
38};
39
40#endif //EDIT_WIN_H
Note: See TracBrowser for help on using the repository browser.