SetSpreadsheetTitleCommand.h header
#include <ew/core/SetSpreadsheetTitleCommand.h>
Namespace ew::core
SetSpreadsheetTitleCommand class
class ew::core::SetSpreadsheetTitleCommand
Command that renames a spreadsheet. Undo restores the previous title and redo re-applies the new one.
Members
ew::core::SetSpreadsheetTitleCommand::SetSpreadsheetTitleCommand(Spreadsheet &spreadsheet, QString title)
Creates a command that sets spreadsheet's title to title when applied.
ew::core::SetSpreadsheetTitleCommand::~SetSpreadsheetTitleCommand() override
Destroys the command.
void ew::core::SetSpreadsheetTitleCommand::apply() override
Records the spreadsheet's current title and applies the new one.
void ew::core::SetSpreadsheetTitleCommand::undo() override
Restores the previous title.
QString ew::core::SetSpreadsheetTitleCommand::description() const override
Returns a short description for the undo/redo UI.