btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / shape / commands / ReversePathCommand.cpp
blobdabf957435d7070c4e57a7989218521f406dc7b4
1 /*
2 * Copyright 2006, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
9 #include "ReversePathCommand.h"
11 #include <stdio.h>
13 #include <Catalog.h>
14 #include <Locale.h>
16 #include "VectorPath.h"
19 #undef B_TRANSLATION_CONTEXT
20 #define B_TRANSLATION_CONTEXT "Icon-O-Matic-ReversePathCmd"
23 // constructor
24 ReversePathCommand::ReversePathCommand(VectorPath* path)
25 : PathCommand(path)
29 // destructor
30 ReversePathCommand::~ReversePathCommand()
34 // Perform
35 status_t
36 ReversePathCommand::Perform()
38 fPath->Reverse();
40 return B_OK;
43 // Undo
44 status_t
45 ReversePathCommand::Undo()
47 return Perform();
50 // GetName
51 void
52 ReversePathCommand::GetName(BString& name)
54 name << B_TRANSLATE("Reverse Path");