| 2292 | |
| 2293 | |
| 2294 | void CsvApplication::updateMacroBrowserList(Fl_Browser *macroList, int selected) { |
| 2295 | macroList->clear(); |
| 2296 | for(int i=0; i < macros.entries(); ++i) { |
| 2297 | macroList->add(macros.entry(i)); |
| 2298 | } |
| 2299 | if( selected > 0 ) { |
| 2300 | if( selected > macroList->size() ) { |
| 2301 | selected = macroList->size(); |
| 2302 | } |
| 2303 | macroList->select(selected); |
| 2304 | } |
| 2305 | } |
| 2306 | |
| 2307 | // Returns Fl_Browser index of entryName or 0 – Fl_Browser is 1-based! |
| 2308 | int CsvApplication::selectMacroBrowserEntry(Fl_Browser *macroList, std::string ) { |