graph_displayer_canvas.cc
branchgui
changeset 55 e4ee805ca5fc
parent 53 e73d7540bd24
child 59 c38925cc6a4d
     1.1 --- a/graph_displayer_canvas.cc	Fri Jul 29 12:30:28 2005 +0000
     1.2 +++ b/graph_displayer_canvas.cc	Sun Aug 07 14:17:11 2005 +0000
     1.3 @@ -2,12 +2,14 @@
     1.4  #include "broken_edge.h"
     1.5  #include <math.h>
     1.6  
     1.7 -GraphDisplayerCanvas::GraphDisplayerCanvas(MapStorage & ms, MapWin & mw) :
     1.8 +GraphDisplayerCanvas::GraphDisplayerCanvas(MapStorage & ms, MapWin & mw, Gtk::Window * mainwin) :
     1.9    nodesmap(ms.graph), edgesmap(ms.graph), edgetextmap(ms.graph),
    1.10    nodetextmap(ms.graph), displayed_graph(*(root()), 0, 0),
    1.11    canvasentrywidget(NULL), mapstorage(ms), isbutton(0), active_item(NULL),
    1.12    target_item(NULL), nodemap_to_edit(""), edgemap_to_edit(""), mapwin(mw)
    1.13  {
    1.14 +  parentwin=mainwin;
    1.15 +
    1.16    //base event handler is move tool
    1.17    actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false);
    1.18    actual_tool=MOVE;