mapselector.cc
branchgui
changeset 84 09b09efab0a1
parent 81 5ad61c33487c
child 85 0b2217328320
equal deleted inserted replaced
0:9234db283e9b 1:e97f4864dd80
     1 #include "mapselector.h"
     1 #include "mapselector.h"
     2 
     2 
     3 MapSelector::MapSelector(GraphDisplayerCanvas & grdispc, MapStorage & mapst, MapWin & mapw, int identifier, bool edge):gdc(grdispc),ms(mapst),mw(mapw),id(identifier),itisedge(edge),default_state(true),node_to_update(INVALID),edge_to_update(INVALID)
     3 MapSelector::MapSelector(GraphDisplayerCanvas & grdispc, MapStorage & mapst, NewMapWin & newmapw, int identifier, bool edge):gdc(grdispc),ms(mapst),nmw(newmapw),id(identifier),itisedge(edge),default_state(true),node_to_update(INVALID),edge_to_update(INVALID)
     4 {
     4 {
     5   update_list();
     5   update_list();
     6 
     6 
     7   cbt.set_active(0);
     7   cbt.set_active(0);
     8 
     8 
    31     (
    31     (
    32      sigc::mem_fun(*this, &MapSelector::reset)
    32      sigc::mem_fun(*this, &MapSelector::reset)
    33      );
    33      );
    34 
    34 
    35   newbut=new Gtk::Button(Gtk::Stock::NEW);
    35   newbut=new Gtk::Button(Gtk::Stock::NEW);
       
    36 
       
    37   newbut->signal_pressed().connect
       
    38     (
       
    39      sigc::mem_fun(nmw, &NewMapWin::show)
       
    40      );
    36 
    41 
    37   add(*label);
    42   add(*label);
    38 
    43 
    39   add(cbt);
    44   add(cbt);
    40 
    45