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

Method addUndoStateTable

src/csvwindow.cpp:742–755  ·  view source on GitHub ↗

* Stores the complete table as Undo state */

Source from the content-addressed store, hash-verified

740 * Stores the complete table as Undo state
741 */
742void CsvWindow::addUndoStateTable(std::string descr) {
743 if( undoDisabled )
744 return;
745 CsvUndo ustate;
746 int row_top, row_bottom, col_top, col_bottom;
747 grid->get_selection(row_top, col_top, row_bottom, col_bottom);
748 table->s_top = row_top;
749 table->s_bottom = row_bottom;
750 table->s_left = col_top;
751 table->s_right = col_bottom;
752 ustate.createUndoStateTable(*table, descr);
753 undoList.push_back(ustate);
754 app.setUndoMenuItem(true);
755}
756
757/*
758 * Stores just a single cell as an Undo state

Callers 14

deleteSelectionMethod · 0.80
pasteMethod · 0.80
find_replaceMethod · 0.80
find_replaceAll_CBMethod · 0.80
sortMethod · 0.80
deleteFlaggedCBMethod · 0.80
executeMacroCBMethod · 0.80
moveColsMethod · 0.80
addColMethod · 0.80
addRowMethod · 0.80
delColsMethod · 0.80
delRowsMethod · 0.80

Calls 3

createUndoStateTableMethod · 0.80
push_backMethod · 0.80
setUndoMenuItemMethod · 0.80

Tested by

no test coverage detected