OpenCPN Partial API docs
Loading...
Searching...
No Matches
undo_defs.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2012 Jesper Weissglas *
3 * Copyright (C) 2012 by David S. Register *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
25#ifndef UnDO_DefS_h
26#define UnDO_DefS_h
27
28enum UndoType {
29 Undo_CreateWaypoint,
30 Undo_DeleteWaypoint,
31 Undo_AppendWaypoint,
32 Undo_MoveWaypoint
33};
34
35enum UndoBeforePointerType { Undo_IsOrphanded, Undo_NeedsCopy, Undo_HasParent };
36
37typedef void* UndoItemPointer;
38
40public:
42 wxString Description();
43
44 UndoType type;
45 std::vector<UndoItemPointer> before;
46 std::vector<UndoBeforePointerType> beforeType;
47 std::vector<UndoItemPointer> after;
48 std::vector<UndoItemPointer> selectable;
49};
50
51#endif // UnDO_DefS_h