1 /* 2 * Copyright 2006, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef RESET_TRANSFORM_COMMAND_H 10 #define RESET_TRANSFORM_COMMAND_H 11 12 #include "Command.h" 13 14 class Transformable; 15 16 class ResetTransformationCommand : public Command { 17 public: 18 ResetTransformationCommand( 19 Transformable** const objects, 20 int32 count); 21 virtual ~ResetTransformationCommand(); 22 23 // Command interface 24 virtual status_t InitCheck(); 25 26 virtual status_t Perform(); 27 virtual status_t Undo(); 28 29 virtual void GetName(BString& name); 30 31 protected: 32 Transformable** fObjects; 33 double* fOriginals; 34 int32 fCount; 35 }; 36 37 #endif // RESET_TRANSFORM_COMMAND_H 38