FieldType.h header

#include <ew/core/FieldType.h>

Namespace ew::core

Enumerations

enum class FieldType { Text, Number, Boolean, Date, Reference, Choice, Url }

The data type of a user-defined codex field (a per-category attribute, see Taxonomy). It governs how the value is edited, validated, and rendered. Serialized as a stable lowercase token so a project's taxonomy survives on disk.

Functions

std::optional< FieldType > ew::core::fieldTypeFromToken(QStringView token)

Parses a field type from its serialization token; std::nullopt if unrecognized.

QString ew::core::toToken(FieldType type)

Returns the stable serialization token for type (e.g. "text").