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

Method quitApplication

src/csvapplication.cpp:805–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803
804
805void 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
829int CsvApplication::getWindowByPointer(Fl_Widget *widget) {

Callers 4

MyMenuCallbackMethod · 0.80
csvwindow.cppFile · 0.80
quitApplicationCBMethod · 0.80
closeRemainOpenWindowMethod · 0.80

Calls 4

to_stringFunction · 0.85
setMethod · 0.80
getWindowSlotUsedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected