Import a simple text editor I started working on.

This commit is contained in:
Andreas Kling
2018-12-04 00:27:16 +01:00
parent 405383fd2f
commit ca6847b5bb
59 changed files with 895 additions and 39 deletions

14
Editor/UndoStack.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include "cuki.h"
#include "UndoStack.h"
void UndoStack::push(OwnPtr<Operation>&& op)
{
m_stack.push(std::move(op));
}
OwnPtr<Operation> UndoStack::pop()
{
OwnPtr<Operation> op = std::move(m_stack.top());
m_stack.pop();
return op;
}