1 /* 2 * Copyright 2006-2007, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 #ifndef ADD_POINT_COMMAND_H 9 #define ADD_POINT_COMMAND_H 10 11 12 #include "PathCommand.h" 13 14 #include <Point.h> 15 16 17 class AddPointCommand : public PathCommand { 18 public: 19 AddPointCommand(VectorPath* path, 20 int32 index, 21 const int32* selected, 22 int32 count); 23 virtual ~AddPointCommand(); 24 25 virtual status_t Perform(); 26 virtual status_t Undo(); 27 virtual status_t Redo(); 28 29 virtual void GetName(BString& name); 30 31 private: 32 int32 fIndex; 33 BPoint fPoint; 34 BPoint fPointIn; 35 BPoint fPointOut; 36 37 int32* fOldSelection; 38 int32 fOldSelectionCount; 39 }; 40 41 #endif // ADD_POINT_COMMAND_H 42