Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
FileDialogState.h File Reference

Pure, platform-independent bookkeeping for the editor's native file dialogs: default-directory memory and an in-process recent-files list. More...

#include <cstddef>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for FileDialogState.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::editor::FileDialogFilter
 A single file-type filter offered by a native open/save dialog. More...
class  donner::editor::FileDialogState
 Tracks the directory the user last browsed to and the most-recently opened/saved files, so the next dialog can seed a sensible starting directory and (on platforms without an OS recents list) an in-editor recent-files menu. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

std::vector< FileDialogFilterdonner::editor::SvgFileDialogFilters ()
 The editor's canonical filter set: SVG documents.

Detailed Description

Pure, platform-independent bookkeeping for the editor's native file dialogs: default-directory memory and an in-process recent-files list.

The actual NSOpenPanel / NSSavePanel presentation lives in the platform layer (NativeFileDialog.h); this module holds only the logic that can be exercised headlessly under unit test.