Files
kte/UndoNode.h
Kyle Isom e4cd4877cc Introduce file picker and GUI configuration with enhancements.
- Add visual file picker for GUI with toggle support.
- Introduce `GUIConfig` class for loading GUI settings from configuration file.
- Refactor window initialization to support dynamic sizing based on configuration.
- Add macOS-specific handling for fullscreen behavior.
- Improve header inclusion order and minor code cleanup.
2025-11-30 18:35:12 -08:00

26 lines
359 B
C++

#ifndef KTE_UNDONODE_H
#define KTE_UNDONODE_H
#include <string>
enum class UndoType : uint8_t {
Insert,
Delete,
Paste,
Newline,
DeleteRow,
};
struct UndoNode {
UndoType type{};
int row{};
int col{};
std::string text;
UndoNode *child = nullptr; // next in current timeline
UndoNode *next = nullptr; // redo branch
};
#endif // KTE_UNDONODE_H