SetCanvasTitleCommand.h header

#include <ew/core/SetCanvasTitleCommand.h>

Namespace ew::core

SetCanvasTitleCommand class

class ew::core::SetCanvasTitleCommand

Command that renames a research canvas. Undo restores the previous title and redo re-applies the new one.

Members

ew::core::SetCanvasTitleCommand::SetCanvasTitleCommand(Canvas &canvas, QString title)

Creates a command that sets canvas's title to title when applied.

ew::core::SetCanvasTitleCommand::~SetCanvasTitleCommand() override

Destroys the command.

void ew::core::SetCanvasTitleCommand::apply() override

Records the canvas's current title and applies the new one.

void ew::core::SetCanvasTitleCommand::undo() override

Restores the previous title.

QString ew::core::SetCanvasTitleCommand::description() const override

Returns a short description for the undo/redo UI.