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

Method CanModifyGrpAndShowMsgIfNot

Project.cpp:1383–1393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383bool Project::CanModifyGrpAndShowMsgIfNot(TableState* table_state,
1384 const wxString& grp_nm)
1385{
1386 int n = table_state->GetNumDisallowGroupModify(grp_nm);
1387 if (n == 0)
1388 return true;
1389 wxString msg(table_state->GetDisallowGroupModifyMsg(grp_nm));
1390 wxMessageDialog dlg(NULL, msg, _("Warning"), wxOK | wxICON_WARNING);
1391 dlg.ShowModal();
1392 return false;
1393}
1394
1395WeightsMetaInfo::DistanceMetricEnum Project::GetDefaultDistMetric()
1396{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected