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 UNASSIGN_PATH_COMMAND_H 9 #define UNASSIGN_PATH_COMMAND_H 10 11 12 #include "Command.h" 13 14 15 namespace BPrivate { 16 namespace Icon { 17 class Shape; 18 class VectorPath; 19 } 20 } 21 using namespace BPrivate::Icon; 22 23 class UnassignPathCommand : public Command { 24 public: 25 UnassignPathCommand(Shape* shape, 26 VectorPath* path); 27 virtual ~UnassignPathCommand(); 28 29 virtual status_t InitCheck(); 30 31 virtual status_t Perform(); 32 virtual status_t Undo(); 33 34 virtual void GetName(BString& name); 35 36 private: 37 Shape* fShape; 38 VectorPath* fPath; 39 bool fPathRemoved; 40 }; 41 42 #endif // UNASSIGN_PATH_COMMAND_H 43