nbtab.cc
changeset 149 930e838ad5b6
parent 121 637c12cbd64c
child 154 65c1b103443d
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));