| 803 | |
| 804 | |
| 805 | void CsvApplication::quitApplication(bool forceClose) { |
| 806 | searchWin->hide(); |
| 807 | if( forceClose ) { |
| 808 | #ifdef __APPLE__ |
| 809 | remainOpenWin->hide(); |
| 810 | #endif |
| 811 | } |
| 812 | // Store Open Recent… |
| 813 | for( size_t i = 0; i < TCRUNCHER_PREF_RECENT_FILES_NUM; ++i ) { |
| 814 | std::string tmp_key = TCRUNCHER_PREF_RECENT_FILES_STUB + std::to_string(i); |
| 815 | std::string tmp_val = ""; |
| 816 | tmp_val = recentFiles.get(i); |
| 817 | preferences.set( tmp_key.c_str(), tmp_val.c_str() ); |
| 818 | } |
| 819 | // Close windows |
| 820 | for( int i = 0; i < TCRUNCHER_MAX_WINDOWS; ++i ) { |
| 821 | if( windows[i].getWindowSlotUsed() ) { |
| 822 | // std::cerr << "Closing window: " << windows[i].getPath() << std::endl; |
| 823 | closeWindow(i, forceClose); |
| 824 | } |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | |
| 829 | int CsvApplication::getWindowByPointer(Fl_Widget *widget) { |
no test coverage detected