changeset 1826 | e07a7a8acd77 |
parent 1819 | fd82adfbe905 |
child 1837 | 8dd6160ff699 |
0:f67d5415bb08 | 1:64cf28671a4c |
---|---|
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(); |