feat: move Files to its own process; add window server messaging (multi-format clipboard, drag and drop), undo/redo, sidebar, breadcrumbs, thumbnails, file type icons, New menu and proper text fields

This commit is contained in:
daniel committed 2026-10-24 12:44:20 +02:00
1 parent 07191b1286
commit d3e49a925d
66 files changed
+6855 -905

No files matched your search

+8 -2
View File
@@ -29,11 +29,13 @@ typedef enum {
BufferTooSmall = 13,
OutOfMemory = 14,
TimedOut = 15,
WouldBlock = 16
WouldBlock = 16,
NotFound = 17,
AlreadyExists = 18
} StatusCode;
// Highest defined StatusCode; update when adding a code above.
enum { MaxStatusCode = WouldBlock };
enum { MaxStatusCode = AlreadyExists };
inline const char* GetStatusText(StatusCode statusCode) {
const char* statusText[] = {
@@ -54,6 +56,8 @@ inline const char* GetStatusText(StatusCode statusCode) {
"Out of memory", // 14
"Timed out", // 15
"Operation would block", // 16
"Not found", // 17
"Already exists", // 18
};
if (statusCode > 0 && statusCode <= MaxStatusCode) {
@@ -90,6 +94,8 @@ inline const char* GetStatusExplanationText(StatusCode statusCode) {
0, // 14
0, // 15
0, // 16
0, // 17
"Something with that name is already there.", // 18
};
if (statusCode > 0 && statusCode <= MaxStatusCode) {