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

Method flagSelectedRowsCB

src/csvapplication.cpp:1973–1983  ·  view source on GitHub ↗

* Flag all selected rows */

Source from the content-addressed store, hash-verified

1971 * Flag all selected rows
1972 */
1973void CsvApplication::flagSelectedRowsCB() {
1974 int topWinIndex = app.getTopWindow();
1975 std::vector<int> selection = windows[topWinIndex].grid->getSelection();
1976 showImWorkingWindow("Flagging rows ...");
1977 for( int r = selection[0]; r <= selection[2]; ++r ) {
1978 windows[topWinIndex].table->flagRow(r, true);
1979 }
1980 hideImWorkingWindow();
1981 windows[topWinIndex].grid->redraw();
1982 Fl::check();
1983}
1984
1985
1986

Callers 1

MyMenuCallbackMethod · 0.80

Calls 4

checkFunction · 0.85
getTopWindowMethod · 0.80
flagRowMethod · 0.80
getSelectionMethod · 0.45

Tested by

no test coverage detected