1 /* 2 * Copyright 2009, Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef ROTATE_PATH_INDICES_COMMAND_H 6 #define ROTATE_PATH_INDICES_COMMAND_H 7 8 #include "PathCommand.h" 9 10 class RotatePathIndicesCommand : public PathCommand { 11 public: 12 RotatePathIndicesCommand(VectorPath* path, 13 bool clockWise); 14 virtual ~RotatePathIndicesCommand(); 15 16 virtual status_t InitCheck(); 17 18 virtual status_t Perform(); 19 virtual status_t Undo(); 20 21 virtual void GetName(BString& name); 22 23 private: 24 status_t _Rotate(bool clockWise); 25 26 bool fClockWise; 27 }; 28 29 #endif // ROTATE_PATH_INDICES_COMMAND_H 30