1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:17:36 +00:00

Spreadsheet: Make undo operation handle multiple cells at a time

Instead of having the undo operation only be able to undo one cell
for a given undo, make it able to handle multiple cells at a time.
 Please enter the commit message for your changes. Lines starting
This commit is contained in:
martinfalisse 2022-04-07 23:04:36 +02:00 committed by Ali Mohammad Pur
parent 7bd0ebb1ab
commit 22575c9370
7 changed files with 59 additions and 31 deletions

View file

@ -40,4 +40,16 @@ private:
NonnullRefPtr<Sheet> m_sheet;
};
class CellsUndoCommand : public GUI::Command {
public:
CellsUndoCommand(Cell&, String const&);
CellsUndoCommand(Vector<CellChange>);
virtual void undo() override;
virtual void redo() override;
private:
Vector<CellChange> m_cell_changes;
};
}