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_COLOR_COMMAND_H 10 #define SET_COLOR_COMMAND_H 11 12 #include <InterfaceDefs.h> 13 14 #include "Command.h" 15 16 class Style; 17 18 class SetColorCommand : public Command { 19 public: 20 SetColorCommand(Style* style, 21 const rgb_color& color); 22 virtual ~SetColorCommand(); 23 24 virtual status_t InitCheck(); 25 26 virtual status_t Perform(); 27 virtual status_t Undo(); 28 29 virtual void GetName(BString& name); 30 31 virtual bool CombineWithNext(const Command* next); 32 33 private: 34 Style* fStyle; 35 rgb_color fColor; 36 }; 37 38 #endif // SET_COLOR_COMMAND_H 39