COIN-OR::LEMON - Graph Library

source: glemon-0.x/edit_win.h @ 31:66e85f44a66f

gui
Last change on this file since 31:66e85f44a66f was 30:f70bbee5350a, checked in by Hegyi Péter, 16 years ago

Function names are corrected according to naming conventions.

  • Property exe set to *
File size: 1.1 KB
RevLine 
[10]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.
[12]18  ///It has to be known for this class, because the appropriate
19  //callback function for each tool is implemented in that class
[10]20  GraphDisplayerCanvas & gdc;
21
[12]22  ///Table that holds the tools.
[10]23  Gtk::Table table;
24 
[12]25  ///these buttons are RadioButtons with classic look
26  Gtk::RadioButton ** buttons;
[10]27
28public:
29  ///Constructor of EditWin creates the widgets shown in EditWin.
30  EditWin(const std::string& title, GraphDisplayerCanvas &);
31
[30]32  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
[10]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.