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

Method find

src/csvapplication.cpp:1607–1631  ·  view source on GitHub ↗

* Show the Find & Replace Window */

Source from the content-addressed store, hash-verified

1605 * Show the Find & Replace Window
1606 */
1607void CsvApplication::find() {
1608 int winIndex = app.getTopWindow();
1609 Fl_Window *topWin = Fl::first_window();
1610 searchWin->callback(find_substring_CB);
1611 std::string scopeMsg = "Scope: " + windows[winIndex].humanReadableSelection();
1612
1613 searchWinScope->copy_label(scopeMsg.c_str());
1614 searchWin->show();
1615 while( searchWin->shown() ) {
1616 Fl::wait();
1617 }
1618 searchWinScope->copy_label("");
1619 searchWinLabel->copy_label("");
1620 searchWin->hide();
1621 app.lastFound = {-1,-1};
1622 windows[winIndex].grid->redraw();
1623
1624 Fl::check();
1625 // restore active window
1626 if( topWin ) {
1627 Fl::first_window(topWin);
1628 topWin->show();
1629 topWin->take_focus();
1630 }
1631}
1632void CsvApplication::updateSearchWindow() {
1633 int winIndex = app.getTopWindow();
1634 std::string scopeMsg = "Scope: " + windows[winIndex].humanReadableSelection();

Callers 15

delRowsMethod · 0.80
findSubstringMethod · 0.80
findInCellMethod · 0.80
replaceUtf8StringMethod · 0.80
findHeaderRowMethod · 0.80
isFlaggedMethod · 0.80
flagInconsistentDataMethod · 0.80
MyMenuCallbackMethod · 0.80
guessHasHeaderMethod · 0.80
splitStringMethod · 0.80
cellContainsLineBreakMethod · 0.80
saveFileMethod · 0.80

Calls 3

checkFunction · 0.85
getTopWindowMethod · 0.80

Tested by 2

toStringFunction · 0.64
DOCTEST_DEFINE_DECORATORFunction · 0.64