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

Method selectMacroBrowserEntry

src/csvapplication.cpp:2308–2317  ·  view source on GitHub ↗

Returns Fl_Browser index of entryName or 0 – Fl_Browser is 1-based!

Source from the content-addressed store, hash-verified

2306
2307// Returns Fl_Browser index of entryName or 0 – Fl_Browser is 1-based!
2308int CsvApplication::selectMacroBrowserEntry(Fl_Browser *macroList, std::string ) {
2309 int ret = 0;
2310 for( int t=1; t<=macroList->size(); t++ ) {
2311 if( app.lastChoosenMacroName == macroList->text(t) ) {
2312 macroList->select(t);
2313 ret = t;
2314 }
2315 }
2316 return ret;
2317}
2318
2319// executeMacroListCB: click into the Macro list on the left
2320void CsvApplication::executeMacroListCB(Fl_Widget *widget, void *data) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected