Returns Fl_Browser index of entryName or 0 – Fl_Browser is 1-based!
| 2306 | |
| 2307 | // Returns Fl_Browser index of entryName or 0 – Fl_Browser is 1-based! |
| 2308 | int 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 |
| 2320 | void CsvApplication::executeMacroListCB(Fl_Widget *widget, void *data) { |