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