MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / showDefaultStatus

Method showDefaultStatus

src/csvwindow.cpp:518–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516
517
518void 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
537void CsvWindow::updateStatusbarCB(const char *msg, void *obj) {

Callers 3

handleMethod · 0.80
event_callback2Method · 0.80
find_substring_CBMethod · 0.80

Calls 2

customHeaderRowShownMethod · 0.80
getHeaderCellMethod · 0.80

Tested by

no test coverage detected