MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / GetSelectMapLayer

Method GetSelectMapLayer

Explore/MapLayerTree.cpp:274–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274AssociateLayerInt* 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
293IMPLEMENT_ABSTRACT_CLASS(MapTree, wxWindow)
294BEGIN_EVENT_TABLE(MapTree, wxWindow)

Callers

nothing calls this directly

Calls 3

GetStringMethod · 0.45
sizeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected