Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
unre.h
Go to the documentation of this file.
1/*
2 * Kage Studio - a simple free and open source vector-based 2D animation software
3 * Copyright (C) 2011~2024 Mj Mendoza IV
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 3 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, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA. Or, see <https://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GTKMM_KAGE_MANAGER_UNRE_UNRE_H
23 #define GTKMM_KAGE_MANAGER_UNRE_UNRE_H
24
25 #include <vector>
26 #include <iostream>
27
28 #include "../data/vectordata.h"
29 #include "../data/point.h"
30
31 #include "../document.h"
32
33 class Kage;//forward declaration
34
35 class UnRe {
36 public:
37 UnRe();
38 virtual ~UnRe();
39
40 void stackDocument(KageDocument p_document);
44
45 void clear();
46 protected:
47 unsigned int _stackIndex;
49 std::vector<KageDocument*> _undoStack;
50 };
51#endif //GTKMM_KAGE_MANAGER_UNRE_UNRE_H
Definition document.h:69
Definition kage.h:74
virtual ~UnRe()
Definition unre.cpp:29
KageDocument redoDocument()
Definition unre.cpp:62
UnRe()
Definition unre.cpp:24
KageDocument undoDocument()
Definition unre.cpp:53
KageDocument * _kageDocument
Definition unre.h:48
unsigned int _stackIndex
Definition unre.h:47
KageDocument previewUndoDocument()
Definition unre.cpp:85
void clear()
Definition unre.cpp:33
void stackDocument(KageDocument p_document)
Definition unre.cpp:38
std::vector< KageDocument * > _undoStack
Definition unre.h:49