| 272 | } |
| 273 | |
| 274 | AssociateLayerInt* SetAssociationDlg::GetSelectMapLayer(int irow) |
| 275 | { |
| 276 | int idx = layer_list[irow]->GetSelection(); |
| 277 | if (idx > 0) { |
| 278 | wxString map_name = layer_list[irow]->GetString(idx); |
| 279 | bool found = false; |
| 280 | AssociateLayerInt* ml = NULL; |
| 281 | for (int i=0; i<all_layers.size(); i++) { |
| 282 | if (all_layers[i]->GetName() == map_name) { |
| 283 | ml = all_layers[i]; |
| 284 | found = true; |
| 285 | break; |
| 286 | } |
| 287 | } |
| 288 | return ml; |
| 289 | } |
| 290 | return NULL; |
| 291 | } |
| 292 | |
| 293 | IMPLEMENT_ABSTRACT_CLASS(MapTree, wxWindow) |
| 294 | BEGIN_EVENT_TABLE(MapTree, wxWindow) |