/* * Copyright 2006-2007, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Stephan Aßmus */ #ifndef SET_COLOR_COMMAND_H #define SET_COLOR_COMMAND_H #include "Command.h" #include namespace BPrivate { namespace Icon { class Style; } } using namespace BPrivate::Icon; class SetColorCommand : public Command { public: SetColorCommand(Style* style, const rgb_color& color); virtual ~SetColorCommand(); virtual status_t InitCheck(); virtual status_t Perform(); virtual status_t Undo(); virtual void GetName(BString& name); virtual bool CombineWithNext(const Command* next); private: Style* fStyle; rgb_color fColor; }; #endif // SET_COLOR_COMMAND_H