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

Method undoCB

src/csvapplication.cpp:428–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 app.quitApplication(true);
427}
428void CsvApplication::undoCB(Fl_Widget *, void *) {
429 int winIndex = app.getTopWindow();
430 if( windows[winIndex].hasUndoStates() ) {
431 app.showImWorkingWindow("Undoing last step ...");
432 windows[winIndex].undo();
433 app.hideImWorkingWindow();
434 } else {
435 // myFlChoice("Info", "No Undo state available.", {"Okay"});
436 }
437
438}
439
440void CsvApplication::disableUndoCB(Fl_Widget *, void *, bool confirmDialog) {
441 int winIndex = app.getTopWindow();

Callers 1

MyMenuCallbackMethod · 0.80

Calls 5

getTopWindowMethod · 0.80
hasUndoStatesMethod · 0.80
showImWorkingWindowMethod · 0.80
undoMethod · 0.80
hideImWorkingWindowMethod · 0.80

Tested by

no test coverage detected