| 3384 | |
| 3385 | |
| 3386 | void CsvApplication::showImWorkingWindow(std::string message, bool showAlways) { |
| 3387 | int winIndex = getTopWindow(); |
| 3388 | if( windows[winIndex].table->getNumberRows() > 10000 || showAlways ) { |
| 3389 | windows[winIndex].grid->allowEvents(false); |
| 3390 | imWorkingWindow->copy_label("Processing"); |
| 3391 | imWorkingWindow->color(ColorThemes::getColor(app.getTheme(), "win_bg")); |
| 3392 | imWorkingButton->copy_label(message.c_str()); |
| 3393 | imWorkingButton->color(ColorThemes::getColor(app.getTheme(), "win_bg")); |
| 3394 | imWorkingButton->labelcolor(ColorThemes::getColor(app.getTheme(), "win_text")); |
| 3395 | imWorkingWindow->callback(showImWorkingWindowCB,0); |
| 3396 | imWorkingWindow->set_modal(); |
| 3397 | imWorkingWindow->show(); |
| 3398 | Fl::check(); |
| 3399 | } |
| 3400 | } |
| 3401 | void CsvApplication::showImWorkingWindowCB(Fl_Widget *, long ) { |
| 3402 | // intentionally empty: showImWorkingWindow must not be closed by user |
| 3403 | } |
no test coverage detected