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

Method disableUndoCB

src/csvapplication.cpp:440–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void CsvApplication::disableUndoCB(Fl_Widget *, void *, bool confirmDialog) {
441 int winIndex = app.getTopWindow();
442 int choice = 0;
443 if( confirmDialog ) {
444 choice = CsvApplication::myFlChoice("Confirmation", "Do you really want to disable Undo functionality?<br><small>Only recommended for really large tables.</small>", {"Yes", "No"});
445 }
446 if( choice == 0 ) {
447 windows[winIndex].disableUndo();
448 app.updateMenu(winIndex);
449 }
450}
451
452void CsvApplication::enableUndoCB(Fl_Widget *, void *) {
453 int winIndex = app.getTopWindow();

Callers 1

MyMenuCallbackMethod · 0.80

Calls 3

getTopWindowMethod · 0.80
disableUndoMethod · 0.80
updateMenuMethod · 0.80

Tested by

no test coverage detected