libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / icon-o-matic / style / MoveStylesCommand.h
blob0ee83d0a3a5ac06c9ee1e1a8b239a1c422c39ca9
1 /*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef MOVE_STYLES_COMMAND_H
9 #define MOVE_STYLES_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 // TODO: make a templated "move items" command?
18 _BEGIN_ICON_NAMESPACE
19 class Style;
20 class StyleContainer;
21 _END_ICON_NAMESPACE
23 _USING_ICON_NAMESPACE
26 class MoveStylesCommand : public Command {
27 public:
28 MoveStylesCommand(
29 StyleContainer* container,
30 Style** styles,
31 int32 count,
32 int32 toIndex);
33 virtual ~MoveStylesCommand();
35 virtual status_t InitCheck();
37 virtual status_t Perform();
38 virtual status_t Undo();
40 virtual void GetName(BString& name);
42 private:
43 StyleContainer* fContainer;
44 Style** fStyles;
45 int32* fIndices;
46 int32 fToIndex;
47 int32 fCount;
50 #endif // MOVE_STYLES_COMMAND_H