| 372 | } |
| 373 | |
| 374 | void AbstractMapCanvas::UpdateStatusBar() |
| 375 | { |
| 376 | wxStatusBar* sb = 0; |
| 377 | if (template_frame) { |
| 378 | sb = template_frame->GetStatusBar(); |
| 379 | } |
| 380 | if (!sb) |
| 381 | return; |
| 382 | wxString s; |
| 383 | s << _("#obs=") << project->GetNumRecords() <<" "; |
| 384 | |
| 385 | if ( highlight_state->GetTotalHighlighted() > 0) { |
| 386 | // for highlight from other windows |
| 387 | s << _("#selected=") << highlight_state->GetTotalHighlighted()<< " "; |
| 388 | } |
| 389 | if (mousemode == select && selectstate == start) { |
| 390 | if (total_hover_obs >= 1) { |
| 391 | s << _("#hover obs ") << hover_obs[0]+1; |
| 392 | } |
| 393 | if (total_hover_obs >= 2) { |
| 394 | s << ", "; |
| 395 | s << _("obs ") << hover_obs[1]+1; |
| 396 | } |
| 397 | if (total_hover_obs >= 3) { |
| 398 | s << ", "; |
| 399 | s << _("obs ") << hover_obs[2]+1; |
| 400 | } |
| 401 | if (total_hover_obs >= 4) { |
| 402 | s << ", ..."; |
| 403 | } |
| 404 | } |
| 405 | if (is_clust && a_coord) { |
| 406 | double p_val = a_coord->GetSignificanceCutoff(); |
| 407 | wxString inf_str = wxString::Format(" p <= %g", p_val); |
| 408 | s << inf_str; |
| 409 | } |
| 410 | sb->SetStatusText(s); |
| 411 | } |
| 412 | |
| 413 | IMPLEMENT_CLASS(AbstractMapFrame, MapFrame) |
| 414 | BEGIN_EVENT_TABLE(AbstractMapFrame, MapFrame) |
no test coverage detected