* Stores the complete table as Undo state */
| 740 | * Stores the complete table as Undo state |
| 741 | */ |
| 742 | void 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 |
no test coverage detected