1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef MOVE_TRANSFORMERS_COMMAND_H 10 #define MOVE_TRANSFORMERS_COMMAND_H 11 12 #include "Command.h" 13 14 // TODO: make a templated "move items" command? 15 16 class Shape; 17 class Transformer; 18 19 class MoveTransformersCommand : public Command { 20 public: 21 MoveTransformersCommand( 22 Shape* shape, 23 Transformer** transformers, 24 int32 count, 25 int32 toIndex); 26 virtual ~MoveTransformersCommand(); 27 28 virtual status_t InitCheck(); 29 30 virtual status_t Perform(); 31 virtual status_t Undo(); 32 33 virtual void GetName(BString& name); 34 35 private: 36 Shape* fContainer; 37 Transformer** fTransformers; 38 int32* fIndices; 39 int32 fToIndex; 40 int32 fCount; 41 }; 42 43 #endif // MOVE_TRANSFORMERS_COMMAND_H 44