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
8namespace yaze {
9namespace editor {
10
11// System history manager, undo and redo.
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
std::vector< const char * > history_
std::stack< const char * > redo_
void Add(const char *data)
std::stack< const char * > undo_
Editors are the view controllers for the application.
Main namespace for the application.
Definition controller.cc:18