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

Method setFocusByWinIndex

src/csvapplication.cpp:1448–1457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446
1447
1448void CsvApplication::setFocusByWinIndex(int winIndex) {
1449 Fl::check();
1450 for( int i = 0; i < TCRUNCHER_MAX_WINDOWS; ++i ) {
1451 if( windows[i].getWindowSlotUsed() && windows[i].windowMenuIndex == winIndex ) {
1452 windows[i].win->show();
1453 windows[i].win->take_focus();
1454 break;
1455 }
1456 }
1457}
1458
1459void CsvApplication::copySelection() {
1460 table_index_t row_top, row_bottom, col_top, col_bottom;

Callers

nothing calls this directly

Calls 2

checkFunction · 0.85
getWindowSlotUsedMethod · 0.80

Tested by

no test coverage detected