SetSpreadsheetLinkedCategoryCommand.h header
#include <ew/core/SetSpreadsheetLinkedCategoryCommand.h>
Namespace ew::core
SetSpreadsheetLinkedCategoryCommand class
class ew::core::SetSpreadsheetLinkedCategoryCommand
Command that links (or unlinks) a spreadsheet to a taxonomy category, making it a data table for that category's entities. Undo restores the previous link.
Members
ew::core::SetSpreadsheetLinkedCategoryCommand::SetSpreadsheetLinkedCategoryCommand(Spreadsheet &sheet, CategoryId categoryId)
Creates a command that sets sheet's linked category to categoryId when applied.
ew::core::SetSpreadsheetLinkedCategoryCommand::~SetSpreadsheetLinkedCategoryCommand() override
Destroys the command.
void ew::core::SetSpreadsheetLinkedCategoryCommand::apply() override
Records the sheet's current linked category and applies the new one.
void ew::core::SetSpreadsheetLinkedCategoryCommand::undo() override
Restores the previous linked category.
QString ew::core::SetSpreadsheetLinkedCategoryCommand::description() const override
Returns a short description for the undo/redo UI.