1 /* 2 * Copyright 2006-2007, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 #ifndef ASSIGN_STYLE_COMMAND_H 9 #define ASSIGN_STYLE_COMMAND_H 10 11 12 #include "Command.h" 13 14 #include <InterfaceDefs.h> 15 16 17 namespace BPrivate { 18 namespace Icon { 19 class Shape; 20 class Style; 21 } 22 } 23 using namespace BPrivate::Icon; 24 25 class AssignStyleCommand : public Command { 26 public: 27 AssignStyleCommand(Shape* shape, 28 Style* style); 29 virtual ~AssignStyleCommand(); 30 31 virtual status_t InitCheck(); 32 33 virtual status_t Perform(); 34 virtual status_t Undo(); 35 36 virtual void GetName(BString& name); 37 38 private: 39 Shape* fShape; 40 Style* fOldStyle; 41 Style* fNewStyle; 42 }; 43 44 #endif // ASSIGN_STYLE_COMMAND_H 45