mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:07:46 +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:
parent
7bd0ebb1ab
commit
22575c9370
7 changed files with 59 additions and 31 deletions
|
@ -22,6 +22,20 @@
|
|||
|
||||
namespace Spreadsheet {
|
||||
|
||||
class CellChange {
|
||||
public:
|
||||
CellChange(Cell&, String const&);
|
||||
|
||||
auto& cell() { return m_cell; }
|
||||
auto& previous_data() { return m_previous_data; }
|
||||
auto& new_data() { return m_new_data; }
|
||||
|
||||
private:
|
||||
Cell& m_cell;
|
||||
String m_previous_data;
|
||||
String m_new_data;
|
||||
};
|
||||
|
||||
class Sheet : public Core::Object {
|
||||
C_OBJECT(Sheet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue