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