| 516 | |
| 517 | |
| 518 | void CsvWindow::showDefaultStatus() { |
| 519 | DEBUG_PRINTF("#### CsvWindow::showDefaultStatus\n"); |
| 520 | std::stringstream sstr; |
| 521 | std::string sep = ""; // Separator string between column name and row |
| 522 | int s_left, s_top, s_right, s_bottom; |
| 523 | if( table->customHeaderRowShown() ) { |
| 524 | sep = ":"; |
| 525 | } |
| 526 | grid->get_selection(s_top, s_left, s_bottom, s_right); |
| 527 | if( s_top == s_bottom && s_left == s_right ) { |
| 528 | sstr << "Selection: " << table->getHeaderCell(s_left, false) << sep << (s_top+1); |
| 529 | } else { |
| 530 | sstr << "Selection: " << table->getHeaderCell(s_left, false) << sep << (s_top+1) << " > " << table->getHeaderCell(s_right, false) << sep << (s_bottom+1); |
| 531 | } |
| 532 | updateStatusbar(sstr.str()); |
| 533 | DEBUG_PRINTF("<<<< CsvWindow::showDefaultStatus\n"); |
| 534 | } |
| 535 | |
| 536 | |
| 537 | void CsvWindow::updateStatusbarCB(const char *msg, void *obj) { |
no test coverage detected