1 /* 2 * Copyright 2006-2007, 2023, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 * Zardshard 8 */ 9 #ifndef REMOVE_PATHS_COMMAND_H 10 #define REMOVE_PATHS_COMMAND_H 11 12 13 #include "Command.h" 14 #include "IconBuild.h" 15 #include "RemoveCommand.h" 16 17 18 class BList; 19 20 _BEGIN_ICON_NAMESPACE 21 template <class Type> class Container; 22 class VectorPath; 23 _END_ICON_NAMESPACE 24 25 _USING_ICON_NAMESPACE 26 27 28 class RemovePathsCommand : public RemoveCommand<VectorPath> { 29 public: 30 RemovePathsCommand( 31 Container<VectorPath>* container, 32 const int32* indices, 33 int32 count); 34 virtual ~RemovePathsCommand(); 35 36 virtual status_t InitCheck(); 37 38 virtual status_t Perform(); 39 virtual status_t Undo(); 40 41 virtual void GetName(BString& name); 42 43 private: 44 BList* fShapes; 45 }; 46 47 #endif // REMOVE_PATHS_COMMAND_H 48