root/src/apps/icon-o-matic/shape/commands/UnassignPathCommand.h
/*
 * Copyright 2006-2007, Haiku.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *              Stephan Aßmus <superstippi@gmx.de>
 */
#ifndef UNASSIGN_PATH_COMMAND_H
#define UNASSIGN_PATH_COMMAND_H


#include "Command.h"
#include "IconBuild.h"


_BEGIN_ICON_NAMESPACE
        class PathSourceShape;
        class VectorPath;
_END_ICON_NAMESPACE

_USING_ICON_NAMESPACE


class UnassignPathCommand : public Command {
 public:
                                                                UnassignPathCommand(PathSourceShape* shape,
                                                                                                        VectorPath* path);
        virtual                                         ~UnassignPathCommand();

        virtual status_t                        InitCheck();

        virtual status_t                        Perform();
        virtual status_t                        Undo();

        virtual void                            GetName(BString& name);

 private:
                        PathSourceShape*        fShape;
                        VectorPath*                     fPath;
                        bool                            fPathRemoved;
};

#endif // UNASSIGN_PATH_COMMAND_H