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