SetMediaCaptionCommand.h header

#include <ew/core/SetMediaCaptionCommand.h>

Namespace ew::core

SetMediaCaptionCommand class

class ew::core::SetMediaCaptionCommand

Command that sets a media object's caption. Undo restores the previous caption and redo re-applies the new one.

Members

ew::core::SetMediaCaptionCommand::SetMediaCaptionCommand(Media &media, QString caption)

Creates a command that sets media's caption to caption when applied.

ew::core::SetMediaCaptionCommand::~SetMediaCaptionCommand() override

Destroys the command.

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

Records the current caption and sets the new one.

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

Restores the previous caption.

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

Returns a short description for the undo/redo UI.