mw-mapselector.cc
branchgui
changeset 93 56eb90299693
parent 89 4042761b21e3
child 94 adfdc2f70548
equal deleted inserted replaced
0:a8a2971bd95e 1:77f4ef19472d
     1 #include "map_win.h"
     1 #include "map_win.h"
     2 
     2 
     3 MapWin::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),set_new_map(false),node_to_update(INVALID),edge_to_update(INVALID)
     3 MapWin::MapSelector::MapSelector(GraphDisplayerCanvas & grdispc, MapStorage & mapst, int identifier, bool edge):gdc(grdispc),ms(mapst),id(identifier),itisedge(edge),default_state(true),set_new_map(false),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 
    48 }
    48 }
    49 
    49 
    50 void MapWin::MapSelector::new_but_pressed()
    50 void MapWin::MapSelector::new_but_pressed()
    51 {
    51 {
    52   set_new_map=true;
    52   set_new_map=true;
    53   nmw.showByPreChoose(itisedge);
    53   (new NewMapWin("NewMapWin", gdc, itisedge, false))->run();
    54 }
    54 }
    55 
    55 
    56 void MapWin::MapSelector::update_list()
    56 void MapWin::MapSelector::update_list()
    57 {
    57 {
    58   cbt.clear();
    58   cbt.clear();