gui/nbtab.cc
changeset 2068 6936f130bba2
parent 1891 56a718d144c4
equal deleted inserted replaced
3:610d785d9d3d 4:616f8f08f034
     1 #include <nbtab.h>
     1 #include <nbtab.h>
     2 
     2 
     3 NoteBookTab::NoteBookTab():mapwinexists(false)
     3 NoteBookTab::NoteBookTab():mapwinexists(false)
     4 {
     4 {
       
     5   Gtk::ScrolledWindow *pScrolledWindow = manage(new Gtk::ScrolledWindow);
     5   gd_canvas=new GraphDisplayerCanvas(*this);
     6   gd_canvas=new GraphDisplayerCanvas(*this);
     6   add(*gd_canvas);
     7   pScrolledWindow->add(*gd_canvas);
       
     8   add(*pScrolledWindow);
     7 
     9 
     8   //connecting signals - controller character
    10   //connecting signals - controller character
     9   mapstorage.signal_prop_ch().connect(sigc::mem_fun(*gd_canvas, &GraphDisplayerCanvas::propertyChange));
    11   mapstorage.signal_prop_ch().connect(sigc::mem_fun(*gd_canvas, &GraphDisplayerCanvas::propertyChange));
    10   mapstorage.signal_node_map_ch().connect(sigc::mem_fun(*this, &NoteBookTab::registerNewNodeMap));
    12   mapstorage.signal_node_map_ch().connect(sigc::mem_fun(*this, &NoteBookTab::registerNewNodeMap));
    11   mapstorage.signal_edge_map_ch().connect(sigc::mem_fun(*this, &NoteBookTab::registerNewEdgeMap));
    13   mapstorage.signal_edge_map_ch().connect(sigc::mem_fun(*this, &NoteBookTab::registerNewEdgeMap));