yaze
0.2.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
history_manager.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
2
#define YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
3
4
#include <cstddef>
5
#include <stack>
6
#include <vector>
7
8
namespace
yaze
{
9
namespace
editor
{
10
11
// System history manager, undo and redo.
12
class
HistoryManager
{
13
public
:
14
HistoryManager
() =
default
;
15
~HistoryManager
() =
default
;
16
17
void
Add
(
const
char
* data);
18
void
Undo
();
19
void
Redo
();
20
21
private
:
22
std::vector<const char*>
history_
;
23
std::stack<const char*>
undo_
;
24
std::stack<const char*>
redo_
;
25
};
26
27
}
// namespace editor
28
}
// namespace yaze
29
30
#endif
// YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
yaze::editor::HistoryManager::history_
std::vector< const char * > history_
Definition
history_manager.h:22
yaze::editor::HistoryManager::~HistoryManager
~HistoryManager()=default
yaze::editor::HistoryManager::redo_
std::stack< const char * > redo_
Definition
history_manager.h:24
yaze::editor::HistoryManager::Redo
void Redo()
yaze::editor::HistoryManager::HistoryManager
HistoryManager()=default
yaze::editor::HistoryManager::Add
void Add(const char *data)
yaze::editor::HistoryManager::undo_
std::stack< const char * > undo_
Definition
history_manager.h:23
yaze::editor::HistoryManager::Undo
void Undo()
yaze::editor
Editors are the view controllers for the application.
Definition
assembly_editor.cc:13
yaze
Main namespace for the application.
Definition
controller.cc:18
src
app
editor
system
history_manager.h
Generated by
1.13.2