/* * Copyright 2006, 2023, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Stephan Aßmus * Zardshard */ #include "MoveShapesCommand.h" #include #include #include #include "Shape.h" #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT "Icon-O-Matic-MoveShapesCommand" MoveShapesCommand::MoveShapesCommand(Container* container, Shape** shapes, int32 count, int32 toIndex) : MoveCommand(container, shapes, count, toIndex) { } MoveShapesCommand::~MoveShapesCommand() { } void MoveShapesCommand::GetName(BString& name) { static BStringFormat format(B_TRANSLATE("Move {0, plural, " "one{shape} other{shapes}}")); format.Format(name, fCount); }