1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef SET_GRADIENT_COMMAND_H 10 #define SET_GRADIENT_COMMAND_H 11 12 #include "Command.h" 13 14 class Gradient; 15 class Style; 16 17 class SetGradientCommand : public Command { 18 public: 19 SetGradientCommand(Style* style, 20 const Gradient* gradient); 21 virtual ~SetGradientCommand(); 22 23 virtual status_t InitCheck(); 24 25 virtual status_t Perform(); 26 virtual status_t Undo(); 27 28 virtual void GetName(BString& name); 29 30 virtual bool CombineWithNext(const Command* next); 31 32 private: 33 Style* fStyle; 34 Gradient* fGradient; 35 }; 36 37 #endif // CHANGE_GRADIENT_COMMAND_H 38